Versions in this module Expand all Collapse all v0 v0.4.0 Mar 25, 2024 v0.3.0 Feb 28, 2024 Changes in this version + var ErrEncryptionPubKeyIsNil = errors.New("encryption public key is nil") + var ErrSignerIsNil = errors.New("signer is nil") + func MergeRootGenesisFiles(rootGenesis []*genesis.RootGenesis) (*genesis.RootGenesis, []*genesis.PartitionGenesis, error) + func NewPartitionRecordFromNodes(nodes []*genesis.PartitionNode) ([]*genesis.PartitionRecord, error) + func NewRootGenesis(id string, s crypto.Signer, encPubKey []byte, ...) (*genesis.RootGenesis, []*genesis.PartitionGenesis, error) + func RootGenesisAddSignature(rootGenesis *genesis.RootGenesis, id string, s crypto.Signer, encPubKey []byte) (*genesis.RootGenesis, error) + type Option func(c *rootGenesisConf) + func WithBlockRate(rate uint32) Option + func WithConsensusTimeout(timeoutMs uint32) Option + func WithHashAlgorithm(hashAlgorithm gocrypto.Hash) Option + func WithQuorumThreshold(threshold uint32) Option + func WithTotalNodes(rootValidators uint32) Option + type UnicitySealFunc func(rootHash []byte) (*types.UnicitySeal, error)