Documentation
¶
Index ¶
- Constants
- func StringToHex(s string) ([]byte, error)
- type BandersnatchOutputHash
- type BandersnatchPrivateKey
- type BandersnatchPublicKey
- type BandersnatchSeedKey
- type BandersnatchSignature
- type BlsKey
- type ED25519PublicKeySet
- type Ed25519Signature
- type EpochKeys
- type Hash
- type MetadataKey
- type RingCommitment
- type RingVrfSignature
- type ValidatorKey
Constants ¶
View Source
const ( HashSize = 32 BandersnatchSize = 32 BandersnatchSerializedSize = 33 Ed25519PublicSize = 32 Ed25519PrivateSize = 64 Ed25519SignatureSize = 64 BLSSize = 144 BandersnatchRingSize = 144 MetadataSize = 128 VrfProofSize = 784 )
Variables ¶
This section is empty.
Functions ¶
func StringToHex ¶
StringToHex converts a hex string to a byte slice
Types ¶
type BandersnatchOutputHash ¶
type BandersnatchOutputHash [32]byte
type BandersnatchPrivateKey ¶
type BandersnatchPrivateKey [BandersnatchSize]byte
type BandersnatchPublicKey ¶
type BandersnatchPublicKey [BandersnatchSize]byte
func (BandersnatchPublicKey) TicketOrKeyType ¶
func (b BandersnatchPublicKey) TicketOrKeyType()
type BandersnatchSeedKey ¶
type BandersnatchSeedKey [BandersnatchSize]byte
type BandersnatchSignature ¶
type BandersnatchSignature [96]byte
type ED25519PublicKeySet ¶
type ED25519PublicKeySet map[[Ed25519PublicSize]byte]struct{}
func (ED25519PublicKeySet) Add ¶
func (set ED25519PublicKeySet) Add(key ed25519.PublicKey)
type Ed25519Signature ¶
type Ed25519Signature [Ed25519SignatureSize]byte
type EpochKeys ¶
type EpochKeys [jamtime.TimeslotsPerEpoch]BandersnatchPublicKey
func (EpochKeys) TicketsOrKeysType ¶
func (e EpochKeys) TicketsOrKeysType()
type Hash ¶
func KeccakData ¶
KeccakData hashes the input data using Keccak-256
type MetadataKey ¶
type MetadataKey [MetadataSize]byte
type RingCommitment ¶
type RingCommitment [BandersnatchRingSize]byte
type RingVrfSignature ¶
type RingVrfSignature [VrfProofSize]byte
type ValidatorKey ¶
type ValidatorKey struct { Bandersnatch BandersnatchPublicKey Ed25519 ed25519.PublicKey Bls BlsKey Metadata MetadataKey }
Click to show internal directories.
Click to hide internal directories.