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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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