Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { PublicKey kyber.Point `json:"public_key"` ID string `json:"id"` Period time.Duration `json:"period"` Scheme string `json:"scheme"` GenesisTime int64 `json:"genesis_time"` GenesisSeed []byte `json:"group_hash"` }
Info represents the public information that is necessary for a client to verify any beacon present in a randomness chain.
func InfoFromJSON ¶
InfoFromJSON returns a Info from JSON description in the given reader
func InfoFromProto ¶
func InfoFromProto(p *drand.ChainInfoPacket) (*Info, error)
InfoFromProto returns a Info from the protocol description
func NewChainInfo ¶
NewChainInfo makes a chain Info from a group.
func (*Info) GetSchemeName ¶
GetSchemeName returns the scheme name used
func (*Info) Hash ¶
Hash returns the canonical hash representing the chain information. A hash is consistent throughout the entirety of a chain, regardless of the network composition, the actual nodes, generating the randomness.
func (*Info) HashString ¶
HashString returns the value of Hash in string format
Click to show internal directories.
Click to hide internal directories.