Documentation ¶
Index ¶
- Constants
- Variables
- func HashInList(h *HashValue, list []*HashValue) bool
- type HashValue
- func HashData(data ...[]byte) *HashValue
- func HashDataBlake2b(data ...[]byte) *HashValue
- func HashDataSha3(data ...[]byte) *HashValue
- func HashStrings(str ...string) *HashValue
- func HashValueFromBase58(s string) (HashValue, error)
- func HashValueFromBytes(b []byte) (HashValue, error)
- func RandomHash(rnd *rand.Rand) *HashValue
- func (h *HashValue) Bytes() []byte
- func (h *HashValue) Clone() *HashValue
- func (h *HashValue) Equal(h1 *HashValue) bool
- func (h *HashValue) MarshalJSON() ([]byte, error)
- func (h *HashValue) Read(r io.Reader) error
- func (h *HashValue) Short() string
- func (h *HashValue) Shortest() string
- func (h *HashValue) String() string
- func (h *HashValue) UnmarshalJSON(buf []byte) error
- func (h *HashValue) Write(w io.Writer) error
- type HashableBytes
Constants ¶
View Source
const HashSize = sha256.Size
Variables ¶
View Source
var NilHash = &nilHash
Functions ¶
func HashInList ¶
Types ¶
type HashValue ¶
func HashDataBlake2b ¶
func HashDataSha3 ¶
func HashStrings ¶
func HashValueFromBase58 ¶
func HashValueFromBytes ¶
func RandomHash ¶
func (*HashValue) MarshalJSON ¶
func (*HashValue) UnmarshalJSON ¶
type HashableBytes ¶
type HashableBytes []byte
Click to show internal directories.
Click to hide internal directories.