Documentation ¶
Index ¶
- Constants
- Variables
- type HashValue
- func HashData(data ...[]byte) HashValue
- func HashDataBlake2b(data ...[]byte) (ret HashValue)
- func HashKeccak(data ...[]byte) (ret HashValue)
- func HashSha3(data ...[]byte) (ret HashValue)
- func HashStrings(str ...string) HashValue
- func HashValueFromBytes(b []byte) (ret HashValue, err error)
- func HashValueFromHex(s string) (HashValue, error)
- func MustHashValueFromHex(s string) HashValue
- func PseudoRandomHash(rnd *rand.Rand) HashValue
Constants ¶
View Source
const HashSize = 32
Variables ¶
View Source
var NilHash = HashValue{}
Functions ¶
This section is empty.
Types ¶
type HashValue ¶
func HashDataBlake2b ¶
func HashKeccak ¶ added in v1.0.3
func HashStrings ¶
func HashValueFromBytes ¶
func HashValueFromHex ¶ added in v0.3.0
func MustHashValueFromHex ¶ added in v1.0.3
func PseudoRandomHash ¶ added in v1.0.3
func (*HashValue) MarshalJSON ¶
func (*HashValue) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.