Versions in this module Expand all Collapse all v0 v0.2.1 Oct 13, 2023 v0.2.0 Sep 27, 2023 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 RootNodeInfo struct + type UnicitySealFunc func(rootHash []byte) (*types.UnicitySeal, error)