> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# Splice.CometBft

> Documentation for Splice.CometBft

## Data Types

**data** CometBftConfig

> Config for all CometBFT nodes and keys under the control of a single SV node operator.
>
> CometBftConfig
>
> > | Field | Type | Description |
> > | - | - | - |
> > | nodes | [Map](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-map-90052) [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952) CometBftNodeConfig | A map from CometBft node-ids to their configuration. |
> > | governanceKeys | \[GovernanceKeyConfig] | |
> > | sequencingKeys | \[SequencingKeyConfig] | |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) CometBftConfig
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) CometBftConfig
>
> **instance** GetField "cometBft" SynchronizerNodeConfig CometBftConfig
>
> **instance** GetField "governanceKeys" CometBftConfig \[GovernanceKeyConfig]
>
> **instance** GetField "nodes" CometBftConfig ([Map](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-map-90052) [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952) CometBftNodeConfig)
>
> **instance** GetField "sequencingKeys" CometBftConfig \[SequencingKeyConfig]
>
> **instance** SetField "cometBft" SynchronizerNodeConfig CometBftConfig
>
> **instance** SetField "governanceKeys" CometBftConfig \[GovernanceKeyConfig]
>
> **instance** SetField "nodes" CometBftConfig ([Map](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-map-90052) [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952) CometBftNodeConfig)
>
> **instance** SetField "sequencingKeys" CometBftConfig \[SequencingKeyConfig]
>
> **instance** Patchable CometBftConfig

**data** CometBftConfigLimits

> Limits on the configurations that SV node operators can choose for their CometBFT nodes and keys.
>
> CometBftConfigLimits
>
> > | Field | Type | Description |
> > | - | - | - |
> > | maxNumCometBftNodes | [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261) | |
> > | maxNumGovernanceKeys | [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261) | |
> > | maxNumSequencingKeys | [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261) | |
> > | maxNodeIdLength | [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261) | |
> > | maxPubKeyLength | [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261) | |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) CometBftConfigLimits
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) CometBftConfigLimits
>
> **instance** GetField "cometBft" SynchronizerNodeConfigLimits CometBftConfigLimits
>
> **instance** GetField "maxNodeIdLength" CometBftConfigLimits [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** GetField "maxNumCometBftNodes" CometBftConfigLimits [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** GetField "maxNumGovernanceKeys" CometBftConfigLimits [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** GetField "maxNumSequencingKeys" CometBftConfigLimits [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** GetField "maxPubKeyLength" CometBftConfigLimits [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** SetField "cometBft" SynchronizerNodeConfigLimits CometBftConfigLimits
>
> **instance** SetField "maxNodeIdLength" CometBftConfigLimits [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** SetField "maxNumCometBftNodes" CometBftConfigLimits [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** SetField "maxNumGovernanceKeys" CometBftConfigLimits [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** SetField "maxNumSequencingKeys" CometBftConfigLimits [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** SetField "maxPubKeyLength" CometBftConfigLimits [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** Patchable CometBftConfigLimits

**data** CometBftNodeConfig

> Config for a single CometBFT node.
>
> CometBftNodeConfig
>
> > | Field | Type | Description |
> > | - | - | - |
> > | validatorPubKey | [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952) | |
> > | votingPower | [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261) | |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) CometBftNodeConfig
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) CometBftNodeConfig
>
> **instance** GetField "nodes" CometBftConfig ([Map](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-map-90052) [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952) CometBftNodeConfig)
>
> **instance** GetField "validatorPubKey" CometBftNodeConfig [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952)
>
> **instance** GetField "votingPower" CometBftNodeConfig [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** SetField "nodes" CometBftConfig ([Map](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-map-90052) [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952) CometBftNodeConfig)
>
> **instance** SetField "validatorPubKey" CometBftNodeConfig [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952)
>
> **instance** SetField "votingPower" CometBftNodeConfig [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** Patchable CometBftNodeConfig

**data** GovernanceKeyConfig

> Config for a key used by the SvApp to create CometBFT network governance transactions.
>
> GovernanceKeyConfig
>
> > | Field | Type | Description |
> > | - | - | - |
> > | pubKey | [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952) | |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) GovernanceKeyConfig
>
> **instance** [Ord](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-ord-6395) GovernanceKeyConfig
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) GovernanceKeyConfig
>
> **instance** GetField "governanceKeys" CometBftConfig \[GovernanceKeyConfig]
>
> **instance** GetField "pubKey" GovernanceKeyConfig [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952)
>
> **instance** SetField "governanceKeys" CometBftConfig \[GovernanceKeyConfig]
>
> **instance** SetField "pubKey" GovernanceKeyConfig [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952)
>
> **instance** Patchable GovernanceKeyConfig

**data** SequencingKeyConfig

> Config for a key used by the CometBFT Sequencer Driver to sequence messages via the CometBFT network.
>
> SequencingKeyConfig
>
> > | Field | Type | Description |
> > | - | - | - |
> > | pubKey | [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952) | |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) SequencingKeyConfig
>
> **instance** [Ord](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-ord-6395) SequencingKeyConfig
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) SequencingKeyConfig
>
> **instance** GetField "pubKey" SequencingKeyConfig [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952)
>
> **instance** GetField "sequencingKeys" CometBftConfig \[SequencingKeyConfig]
>
> **instance** SetField "pubKey" SequencingKeyConfig [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952)
>
> **instance** SetField "sequencingKeys" CometBftConfig \[SequencingKeyConfig]
>
> **instance** Patchable SequencingKeyConfig

## Functions

emptyCometBftConfig
: CometBftConfig

defaultCometBftConfigLimits
: CometBftConfigLimits

validCometBftConfig
: CometBftConfigLimits -> CometBftConfig -> [Bool](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-bool-66265)

validCometBftNodeConfig
: CometBftConfigLimits -> ([Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952), CometBftNodeConfig) -> [Bool](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-bool-66265)

totalVotingPower
: CometBftConfig -> [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
