Versions in this module Expand all Collapse all v1 v1.0.0 Mar 15, 2017 Changes in this version + const DefaultAddressVersion + const DefaultStream + const MaxVarIntSize + var ErrChecksumMismatch = errors.New("checksum mismatch") + var ErrDepricatedAddressVersion = errors.New("Address versions below 4 are depricated.") + var ErrInvalidStream = errors.New("Only stream 1 is currently in use.") + var ErrMalformedPrivateKey = errors.New("malformed private key") + var ErrUnknownAddressType = errors.New("unknown address type/version") + func DecodeWIF(wif string) (*btcec.PrivateKey, error) + func DoubleSha512(addr Address) []byte + func EncodeWIF(privKey *btcec.PrivateKey) string + func ReadVarBytes(r io.Reader, maxAllowed int, fieldName string) ([]byte, error) + func ReadVarInt(r io.Reader) (uint64, error) + func ReadVarString(r io.Reader, maxAllowed int) (string, error) + func Sha512(addr Address) []byte + func Tag(addr Address) *hash.Sha + func V4BroadcastDecryptionKey(addr Address) *btcec.PrivateKey + func V5BroadcastDecryptionKey(addr Address) *btcec.PrivateKey + func VarIntSerializeSize(val uint64) int + func WriteVarBytes(w io.Writer, bytes []byte) error + func WriteVarInt(w io.Writer, val uint64) error + func WriteVarString(w io.Writer, str string) error + type Address interface + RipeHash func() *hash.Ripe + Stream func() uint64 + String func() string + Version func() uint64 + func DecodeAddress(addr string) (Address, error) + func NewAddress(version, stream uint64, ripe *hash.Ripe) (Address, error) + func NewDepricatedAddress(version, stream uint64, ripe *hash.Ripe) (Address, error)