Documentation ¶
Overview ¶
implementation block header hashing
using a memory intensive argon2-d algorithm
Index ¶
Constants ¶
const Length = 32
number of bytes in the digest
Variables ¶
This section is empty.
Functions ¶
func DigestFromBytes ¶
convert and validate little endian binary byte slice to a digest
Types ¶
type Digest ¶
type for a digest stored as little endian byte array represented as big endian hex value for print represented as little endian hex text for JSON encoding
func (Digest) GoString ¶
convert a binary digest to big endian hex string for use by the fmt package (for %#v)
func (Digest) MarshalText ¶
convert digest to little endian hex text
func (*Digest) Scan ¶
convert a big endian hex representation to a digest for use by the format package scan routines
func (Digest) String ¶
convert a binary digest to hex string for use by the fmt package (for %s)
the stored version is in little endian, but the output string is big endian
func (*Digest) UnmarshalText ¶
convert little endian hex text into a digest