testutils

package
v0.0.0-...-3b087ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustFromHex

func MustFromHex(t *testing.T, s string) []byte

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 RandomBlsKey

func RandomBlsKey(t *testing.T) crypto.BlsKey

func RandomED25519Keys

func RandomED25519Keys(t *testing.T) (ed25519.PublicKey, ed25519.PrivateKey, error)

func RandomED25519PublicKey

func RandomED25519PublicKey(t *testing.T) ed25519.PublicKey

func RandomEd25519Signature

func RandomEd25519Signature(t *testing.T) [crypto.Ed25519SignatureSize]byte

func RandomEpochKeys

func RandomEpochKeys(t *testing.T) crypto.EpochKeys

func RandomHash

func RandomHash(t *testing.T) crypto.Hash

func RandomMetadataKey

func RandomMetadataKey(t *testing.T) crypto.MetadataKey

func RandomTicketProof

func RandomTicketProof(t *testing.T) [784]byte

func RandomTimeslot

func RandomTimeslot() jamtime.Timeslot

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL