# How to get \<PARAMETER\> info from CryptoContext

**URL:** https://openfhe.discourse.group/t/how-to-get-parameter-info-from-cryptocontext/1781
**Category:** Library Questions
**Created:** [December 16, 2024, 9:18pm UTC](https://openfhe.discourse.group/t/how-to-get-parameter-info-from-cryptocontext/1781 "2024-12-16T21:18:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![malioboro](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@malioboro](https://openfhe.discourse.group/u/malioboro)
#### Post date: [December 16, 2024, 9:18pm UTC](https://openfhe.discourse.group/t/how-to-get-parameter-info-from-cryptocontext/1781/1 "2024-12-16T21:18:16Z")

</div>

So my inital question is how to get Multiplicative depth info from cryptocontext?

This question is similar to [this one](https://openfhe.discourse.group/t/batchsize-from-cryptocontext/462), but I can’t use it to get multiplicative depth information. How can I get multiplicative depth information from CryptoContext?

* * *

In addition, as a user who is relatively new to this topic (and C++), I found it difficult to understand where the parameters are placed. Is there any guidance for this, or is there any intuition on what I should look if I want to check where a parameter is located?

For example, I need to use different ways to get these parameters, and I found this with a lot of trial errors a while ago.

```auto
std::cout << "Get Ring Dimension: " << cc->GetRingDimension() << std::endl;
std::cout << "Get Plaintext modulus " << cc->GetCryptoParameters()->GetPlaintextModulus() << std::endl;
std::cout << " Get Batch size " << cc->GetCryptoParameters()->GetEncodingParams()->GetBatchSize() << std::endl;
std::cout << "Get Ciphertext modulus q = " << cc->GetCryptoParameters()->GetElementParams()->GetModulus() << std::endl;

```

---

<div class="post-metadata">

### Author: ![Caesar](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/caesar/32/63_2.png) [@Caesar](https://openfhe.discourse.group/u/Caesar)
#### Post date: [December 16, 2024, 10:55pm UTC](https://openfhe.discourse.group/t/how-to-get-parameter-info-from-cryptocontext/1781/2 "2024-12-16T22:55:17Z")

</div>

Parameters are scattered across different modules within the codebase. There is no one place that includes all parameters. I am afraid you will need to search through the codebase if you want to modify it internally.

Multiplicative depth is an input parameter that is set by the developer. It can be considered a public parameter, even in server-client applications. I do not think there is a direct method to get the multiplicative depth from crypto-context.
