types

package
v0.0.0-...-348a3ae Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomBytes

func RandomBytes(size int) []byte

Types

type Address

type Address [20]uint8

func AddressFromBytes

func AddressFromBytes(b []byte) Address

func (Address) String

func (a Address) String() string

func (Address) ToSlice

func (a Address) ToSlice() []byte

type Hash

type Hash [32]uint8

func HashFromBytes

func HashFromBytes(b []byte) Hash

func RandomHash

func RandomHash() Hash

func (Hash) IsZero

func (h Hash) IsZero() bool

func (Hash) String

func (h Hash) String() string

func (Hash) ToSlice

func (h Hash) ToSlice() []byte

Jump to

Keyboard shortcuts

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