addr

package
v0.0.0-20240423 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAGIC_CODE    byte = 0x22
	ADDR_SIZE          = ed25519.PublicKeySize + 1
	ADDR_STR_SIZE      = 51
)

Variables

View Source
var (
	ErrInvalidAddrString, ErrInvalidAddrStringFn = errors.NewErrorAndErrorFunc[string]("invalid addr string")
)

Functions

This section is empty.

Types

type Addr

type Addr string

func FromBytes

func FromBytes(x []byte) (Addr, error)

func FromBytesWithoutMagicCode

func FromBytesWithoutMagicCode(x []byte) (Addr, error)

func FromString

func FromString(x string) (Addr, error)

func Must

func Must(x Addr, _ error) Addr

func (Addr) Bytes

func (x Addr) Bytes() []byte

func (Addr) Equal

func (x Addr) Equal(y Addr) bool

func (Addr) String

func (x Addr) String() string

Jump to

Keyboard shortcuts

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