crypto

package
v0.0.0-...-e0ee87b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 11 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRipemd160

func NewRipemd160() hash.Hash

func NewSha1

func NewSha1() hash.Hash

func NewSha256

func NewSha256() hash.Hash

func NewSha512

func NewSha512() hash.Hash

func Sha256Compare

func Sha256Compare(a, b Sha256) int

Types

type Ripemd160

type Ripemd160 struct {
	Hash [5]uint32 `eos:"array"`
}

func HashRipemd160

func HashRipemd160(t interface{}) Ripemd160

func NewRipemd160Byte

func NewRipemd160Byte(s []byte) *Ripemd160

func NewRipemd160Nil

func NewRipemd160Nil() *Ripemd160

func NewRipemd160String

func NewRipemd160String(s string) *Ripemd160

func (Ripemd160) Bytes

func (h Ripemd160) Bytes() []byte

func (Ripemd160) MarshalJSON

func (h Ripemd160) MarshalJSON() ([]byte, error)

func (Ripemd160) String

func (h Ripemd160) String() string

type Sha1

type Sha1 struct {
	Hash [5]uint32 `eos:"array"`
}

func Hash1

func Hash1(t interface{}) *Sha1

func NewSha1Byte

func NewSha1Byte(s []byte) *Sha1

func NewSha1Nil

func NewSha1Nil() *Sha1

func NewSha1String

func NewSha1String(s string) *Sha1

func (Sha1) Bytes

func (h Sha1) Bytes() []byte

func (Sha1) MarshalJSON

func (h Sha1) MarshalJSON() ([]byte, error)

func (Sha1) String

func (h Sha1) String() string

type Sha256

type Sha256 struct {
	Hash [4]uint64 `eos:"array"`
}

func Hash256

func Hash256(t interface{}) *Sha256

func Hash256String

func Hash256String(t string) *Sha256

func NewSha256Byte

func NewSha256Byte(s []byte) *Sha256

func NewSha256Nil

func NewSha256Nil() Sha256

func NewSha256String

func NewSha256String(s string) *Sha256

func (Sha256) BigEndianBytes

func (h Sha256) BigEndianBytes() []byte

func (Sha256) Bytes

func (h Sha256) Bytes() []byte

func (Sha256) Equals

func (h Sha256) Equals(h1 Sha256) bool

func (Sha256) IsEmpty

func (h Sha256) IsEmpty() bool

func (Sha256) MarshalJSON

func (h Sha256) MarshalJSON() ([]byte, error)

func (Sha256) Or

func (h Sha256) Or(h1 Sha256) Sha256

func (Sha256) String

func (h Sha256) String() string

func (*Sha256) UnmarshalJSON

func (h *Sha256) UnmarshalJSON(data []byte) error

type Sha512

type Sha512 struct {
	Hash [8]uint64 `eos:"array"`
}

func Hash512

func Hash512(t interface{}) *Sha512

func NewSha512Byte

func NewSha512Byte(bytes []byte) *Sha512

func NewSha512Nil

func NewSha512Nil() *Sha512

func NewSha512String

func NewSha512String(s string) *Sha512

func (*Sha512) Bytes

func (h *Sha512) Bytes() []byte

func (*Sha512) Compare

func (h *Sha512) Compare(h1 *Sha512) bool

func (*Sha512) MarshalJSON

func (h *Sha512) MarshalJSON() ([]byte, error)

func (*Sha512) Or

func (h *Sha512) Or(h1 Sha512) Sha512

func (*Sha512) String

func (h *Sha512) String() string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL