package config
- Alphabetic
- Public
- Protected
Type Members
- final case class PublicServerConfig(address: String = "127.0.0.1", internalPort: Option[Port] = None, tls: Option[TlsBaseServerConfig] = None, keepAliveServer: Option[BasicKeepAliveServerConfig] = Some(
BasicKeepAliveServerConfig()
), nonceExpirationInterval: NonNegativeFiniteDuration = NonNegativeFiniteDuration.ofMinutes(1), maxTokenExpirationInterval: NonNegativeFiniteDuration = NonNegativeFiniteDuration.ofHours(1), useExponentialRandomTokenExpiration: Boolean = false, overrideMaxRequestSize: Option[NonNegativeInt] = None) extends ServerConfig with UniformCantonConfigValidation with Product with Serializable
The public server configuration ServerConfig used by the synchronizer.
The public server configuration ServerConfig used by the synchronizer.
- nonceExpirationInterval
Expiration interval for a nonce that is generated for an authentication challenge. As an authentication request is expected to be followed up with almost immediately to generate an authentication token the nonce expiry should be short. The nonce is automatically invalided on use.
- maxTokenExpirationInterval
Expiration time interval for authentication tokens. Tokens are used to authenticate participants. Choose a shorter interval for better security and a longer interval for better performance.
- useExponentialRandomTokenExpiration
If enabled, the token expiration interval will be exponentially distributed with the following parameters:
scale
of0.75 * maxTokenExpirationInterval
;- value is re-sampled to fit into the interval [maxTokenExpirationInterval / 2, maxTokenExpirationInterval]. This is useful to avoid the thundering herd problem when many tokens expire at the same time and should result in nearly uniform distribution of token expiration intervals. If disabled, the token expiration interval will be constant.
- overrideMaxRequestSize
overrides the default maximum request size in bytes on the sequencer node
- final case class SynchronizerParametersConfig(requiredSigningAlgorithmSpecs: Option[NonEmpty[Set[SigningAlgorithmSpec]]] = None, requiredSigningKeySpecs: Option[NonEmpty[Set[SigningKeySpec]]] = None, requiredEncryptionAlgorithmSpecs: Option[NonEmpty[Set[EncryptionAlgorithmSpec]]] = None, requiredEncryptionKeySpecs: Option[NonEmpty[Set[EncryptionKeySpec]]] = None, requiredSymmetricKeySchemes: Option[NonEmpty[Set[SymmetricKeyScheme]]] = None, requiredHashAlgorithms: Option[NonEmpty[Set[HashAlgorithm]]] = None, requiredCryptoKeyFormats: Option[NonEmpty[Set[CryptoKeyFormat]]] = None, requiredSignatureFormats: Option[NonEmpty[Set[SignatureFormat]]] = None, sessionSigningKeys: SessionSigningKeysConfig = SessionSigningKeysConfig.disabled, alphaVersionSupport: Boolean = false, betaVersionSupport: Boolean = false, dontWarnOnDeprecatedPV: Boolean = false) extends ProtocolConfig with PrettyPrinting with Product with Serializable
Configuration of synchronizer parameters that all members connecting to a synchronizer must adhere to.
Configuration of synchronizer parameters that all members connecting to a synchronizer must adhere to.
To set these parameters, you need to be familiar with the Canton architecture. See <a href="https://docs.daml.com/canton/architecture/overview.html">the Canton architecture overview for further information.
- requiredSigningAlgorithmSpecs
The optional required signing algorithm specifications that a member has to support. If none is specified, all the allowed specifications are required.
- requiredSigningKeySpecs
The optional required signing key specifications that a member has to support. If none is specified, all the allowed specifications are required.
- requiredEncryptionAlgorithmSpecs
The optional required encryption algorithm specifications that a member has to support. If none is specified, all the allowed specifications are required.
- requiredEncryptionKeySpecs
The optional required encryption key specifications that a member has to support. If none is specified, all the allowed specifications are required.
- requiredSymmetricKeySchemes
The optional required symmetric key schemes that a member has to support. If none is specified, all the allowed schemes are required.
- requiredHashAlgorithms
The optional required hash algorithms that a member has to support. If none is specified, all the allowed algorithms are required.
- requiredCryptoKeyFormats
The optional required crypto key formats that a member has to support. If none is specified, all the supported algorithms are required.
- dontWarnOnDeprecatedPV
If true, then this synchronizer will not emit a warning when configured to use a deprecated protocol version (such as 2.0.0).
Value Members
- object PublicServerConfig extends Serializable