Documentation ¶
Index ¶
- func NewRipemd160() hash.Hash
- func NewSha1() hash.Hash
- func NewSha256() hash.Hash
- func NewSha512() hash.Hash
- func Sha256Compare(a, b Sha256) int
- type Ripemd160
- type Sha1
- type Sha256
- func (h Sha256) BigEndianBytes() []byte
- func (h Sha256) Bytes() []byte
- func (h Sha256) Equals(h1 Sha256) bool
- func (h Sha256) IsEmpty() bool
- func (h Sha256) MarshalJSON() ([]byte, error)
- func (h Sha256) Or(h1 Sha256) Sha256
- func (h Sha256) String() string
- func (h *Sha256) UnmarshalJSON(data []byte) error
- type Sha512
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRipemd160 ¶
func Sha256Compare ¶
Types ¶
type Ripemd160 ¶
type Ripemd160 struct {
Hash [5]uint32 `eos:"array"`
}
func HashRipemd160 ¶
func HashRipemd160(t interface{}) Ripemd160
func NewRipemd160Byte ¶
func NewRipemd160Nil ¶
func NewRipemd160Nil() *Ripemd160
func NewRipemd160String ¶
func (Ripemd160) MarshalJSON ¶
type Sha1 ¶
type Sha1 struct {
Hash [5]uint32 `eos:"array"`
}
func NewSha1Byte ¶
func NewSha1Nil ¶
func NewSha1Nil() *Sha1
func NewSha1String ¶
func (Sha1) MarshalJSON ¶
type Sha256 ¶
type Sha256 struct {
Hash [4]uint64 `eos:"array"`
}
func Hash256String ¶
func NewSha256Byte ¶
func NewSha256Nil ¶
func NewSha256Nil() Sha256
func NewSha256String ¶
func (Sha256) BigEndianBytes ¶
func (Sha256) MarshalJSON ¶
func (*Sha256) UnmarshalJSON ¶
type Sha512 ¶
type Sha512 struct {
Hash [8]uint64 `eos:"array"`
}
func NewSha512Byte ¶
func NewSha512Nil ¶
func NewSha512Nil() *Sha512
func NewSha512String ¶
func (*Sha512) MarshalJSON ¶
Directories ¶
Path | Synopsis |
---|---|
btcsuite
|
|
btcd/btcec
Package btcec implements support for the elliptic curves needed for bitcoin.
|
Package btcec implements support for the elliptic curves needed for bitcoin. |
btcutil
Package btcutil provides bitcoin-specific convenience functions and types.
|
Package btcutil provides bitcoin-specific convenience functions and types. |
btcutil/base58
Package base58 provides an API for working with modified base58 and Base58Check encodings.
|
Package base58 provides an API for working with modified base58 and Base58Check encodings. |
Click to show internal directories.
Click to hide internal directories.