Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QuorumParams ¶
QuorumParams returns corresponding LLMQ parameters the first integer is an expected size of quorum the second is an expected threshold the third parameter is an error, it returns in a case if quorumType is not supported
func WithSeed ¶
func WithSeed(seedSource int64) func(c *llmqConfig)
WithSeed sets a seed generator with passed seed-source
func WithThreshold ¶
func WithThreshold(threshold int) func(c *llmqConfig)
WithThreshold sets a threshold number of allowed members for a recovery a threshold public key / signature or private key
Types ¶
type Data ¶
type Data struct { Threshold int ProTxHashes []crypto.ProTxHash PrivKeys []crypto.PrivKey PubKeys []crypto.PubKey ThresholdPrivKey crypto.PrivKey ThresholdPubKey crypto.PubKey }
Data contains pre generated keys/shares/signatures for the participants of LLMQ network
func Generate ¶
Generate generates long living master node quorum for a list of pro-tx-hashes to be able to override default values, need to provide option functions
func MustGenerate ¶
MustGenerate generates long-living master node quorum, but panics if a got error