testutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: AGPL-3.0, Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomBytes

func RandomBytes(n int64) []byte

RandomBytes returns a byte array of the given size with random values.

Types

type Entry

type Entry struct {
	Key   solana.PublicKey
	Value []byte // 8 bytes
}

func GenerateEntries

func GenerateEntries(n int) []Entry

type Epoch

type Epoch struct {
	Key   solana.Signature // 64 bytes
	Value []byte           // 2 bytes
}

func GenerateEpochs

func GenerateEpochs(n int) []Epoch

Jump to

Keyboard shortcuts

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