address

package
v0.0.0-...-84468b9 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ADRS types
	WOTS_HASH  = 0
	WOTS_PK    = 1
	TREE       = 2
	FORS_TREE  = 3
	FORS_ROOTS = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ADRS

type ADRS struct {
	LayerAddress   [4]byte
	TreeAddress    [12]byte
	Type           [4]byte
	KeyPairAddress [4]byte
	TreeHeight     [4]byte
	TreeIndex      [4]byte
	ChainAddress   [4]byte
	HashAddress    [4]byte
}

func (*ADRS) Copy

func (adrs *ADRS) Copy() *ADRS

func (*ADRS) GetBytes

func (adrs *ADRS) GetBytes() []byte

func (*ADRS) GetKeyPairAddress

func (adrs *ADRS) GetKeyPairAddress() int

func (*ADRS) GetTreeAddress

func (adrs *ADRS) GetTreeAddress() int

func (*ADRS) GetTreeHeight

func (adrs *ADRS) GetTreeHeight() int

func (*ADRS) GetTreeIndex

func (adrs *ADRS) GetTreeIndex() int

func (*ADRS) GetType

func (adrs *ADRS) GetType() int

func (*ADRS) SetChainAddress

func (adrs *ADRS) SetChainAddress(a int)

func (*ADRS) SetHashAddress

func (adrs *ADRS) SetHashAddress(a int)

func (*ADRS) SetKeyPairAddress

func (adrs *ADRS) SetKeyPairAddress(a int)

func (*ADRS) SetLayerAddress

func (adrs *ADRS) SetLayerAddress(a int)

func (*ADRS) SetTreeAddress

func (adrs *ADRS) SetTreeAddress(a uint64)

func (*ADRS) SetTreeHeight

func (adrs *ADRS) SetTreeHeight(a int)

func (*ADRS) SetTreeIndex

func (adrs *ADRS) SetTreeIndex(a int)

func (*ADRS) SetType

func (adrs *ADRS) SetType(a int)

Jump to

Keyboard shortcuts

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