Documentation ¶
Index ¶
Constants ¶
View Source
const Hash256Size = 32
Hash256Size is 32 bytes
Variables ¶
View Source
var ( ErrInvalidHashSize = errors.New("invalid hash size") ErrInvalidHashFormat = errors.New("invalid hash format") )
hash256 errors
Functions ¶
This section is empty.
Types ¶
type Hash256 ¶
type Hash256 [Hash256Size]byte
Hash256 is the [Hash256Size]byte with methods
func DoubleHash ¶
DoubleHash returns the result of Hash(Hash(data))
func (Hash256) MarshalJSON ¶
MarshalJSON is a marshaler function
func (*Hash256) UnmarshalJSON ¶
UnmarshalJSON is a unmarshaler function
Click to show internal directories.
Click to hide internal directories.