Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHash = sha256.New
DefaultHash is a default hashing algorithm - "sha256".
Functions ¶
This section is empty.
Types ¶
type Digest ¶
Digest represents the partial evaluation of a checksum.
func (*Digest) WriteObject ¶
WriteObject adds an interface data to the running hash. It never retruns an error.
type Hash ¶
type Hash []byte
A Hash is a type for representing hash with base58 encode and decode functions.
func Decode ¶
Decode decodes the base58 encoded hash. It returns error when a hash isn't base58,encoded or hash length is invalid.
func Dump ¶
func Dump(v interface{}) Hash
Dump takes an interface and returns its hash representation.
func Int ¶
Int returns a new hash from a given integer. NOTE: This method is for tests purpose only.
Click to show internal directories.
Click to hide internal directories.