Documentation ¶
Index ¶
- func MustFromHex(t *testing.T, s string) []byte
- func RandomBandersnatchOutputHash(t *testing.T) crypto.BandersnatchOutputHash
- func RandomBandersnatchPrivateKey(t *testing.T) crypto.BandersnatchPrivateKey
- func RandomBandersnatchPublicKey(t *testing.T) crypto.BandersnatchPublicKey
- func RandomBandersnatchRingCommitment(t *testing.T) crypto.RingCommitment
- func RandomBandersnatchSignature(t *testing.T) crypto.BandersnatchSignature
- func RandomBlsKey(t *testing.T) crypto.BlsKey
- func RandomED25519Keys(t *testing.T) (ed25519.PublicKey, ed25519.PrivateKey, error)
- func RandomED25519PublicKey(t *testing.T) ed25519.PublicKey
- func RandomEd25519Signature(t *testing.T) [crypto.Ed25519SignatureSize]byte
- func RandomEpochKeys(t *testing.T) crypto.EpochKeys
- func RandomHash(t *testing.T) crypto.Hash
- func RandomMetadataKey(t *testing.T) crypto.MetadataKey
- func RandomTicketProof(t *testing.T) [784]byte
- func RandomTimeslot() jamtime.Timeslot
- func RandomUint16() uint16
- func RandomUint32() uint32
- func RandomUint64() uint64
- func RandomValidatorKey(t *testing.T) crypto.ValidatorKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustFromHex ¶
Helper to decode a hex string beginning with "0x". Fails the test if the string can't be decoded.
func RandomBandersnatchOutputHash ¶
func RandomBandersnatchOutputHash(t *testing.T) crypto.BandersnatchOutputHash
func RandomBandersnatchPrivateKey ¶
func RandomBandersnatchPrivateKey(t *testing.T) crypto.BandersnatchPrivateKey
func RandomBandersnatchPublicKey ¶
func RandomBandersnatchPublicKey(t *testing.T) crypto.BandersnatchPublicKey
func RandomBandersnatchRingCommitment ¶
func RandomBandersnatchRingCommitment(t *testing.T) crypto.RingCommitment
func RandomBandersnatchSignature ¶
func RandomBandersnatchSignature(t *testing.T) crypto.BandersnatchSignature
func RandomED25519Keys ¶
func RandomEd25519Signature ¶
func RandomEd25519Signature(t *testing.T) [crypto.Ed25519SignatureSize]byte
func RandomMetadataKey ¶
func RandomMetadataKey(t *testing.T) crypto.MetadataKey
func RandomTicketProof ¶
func RandomTimeslot ¶
func RandomUint16 ¶
func RandomUint16() uint16
func RandomUint32 ¶
func RandomUint32() uint32
func RandomUint64 ¶
func RandomUint64() uint64
func RandomValidatorKey ¶
func RandomValidatorKey(t *testing.T) crypto.ValidatorKey
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.