hornet

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HashSize = 49
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

type Hash []byte

Hash is the binary representation of a trinary Hash.

func HashFromAddressTrytes

func HashFromAddressTrytes(trytes trinary.Trytes) Hash

HashFromAddressTrytes returns the binary representation of the given address trytes. It panics when trytes hash invalid length.

func HashFromHashTrytes

func HashFromHashTrytes(trytes trinary.Trytes) Hash

HashFromHashTrytes returns the binary representation of the given hash trytes. It panics when trytes hash invalid length.

func HashFromTagTrytes

func HashFromTagTrytes(trytes trinary.Trytes) Hash

HashFromTagTrytes returns the binary representation of the given tag trytes. It panics when trytes hash invalid length.

func (Hash) Trytes

func (h Hash) Trytes() trinary.Trytes

Trytes converts the binary Hash to its tryte representation. It panics when the binary encoding is invalid.

type Hashes

type Hashes []Hash

Hashes is a slice of Hash.

Jump to

Keyboard shortcuts

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