Documentation ¶
Index ¶
Examples ¶
Constants ¶
View Source
const ( // AddressSize is the size of a pubkey address. AddressSize = tmhash.TruncatedSize )
View Source
const Version = "v1.0.0-rc.0"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Address ¶
type Address [AddressSize]byte
(truncated) hash of some preimage (typically of a pubkey).
func AddressFromBytes ¶
func AddressFromID ¶
func AddressFromPreimage ¶
func AddressFromString ¶
func MustAddressFromString ¶
func (*Address) DecodeString ¶
type PrivKey ¶
type PrivKey interface { // Stable Bytes() []byte Sign(msg []byte) ([]byte, error) PubKey() PubKey Equals(PrivKey) bool }
All operations must be deterministic.
func PrivKeyFromBytes ¶
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
Package merkle computes a deterministic minimal height Merkle tree hash.
|
Package merkle computes a deterministic minimal height Merkle tree hash. |
internal/secp256k1
nolint:gocritic Package secp256k1 wraps the bitcoin secp256k1 C library.
|
nolint:gocritic Package secp256k1 wraps the bitcoin secp256k1 C library. |
Package xchacha20poly1305 creates an AEAD using hchacha, chacha, and poly1305 This allows for randomized nonces to be used in conjunction with chacha.
|
Package xchacha20poly1305 creates an AEAD using hchacha, chacha, and poly1305 This allows for randomized nonces to be used in conjunction with chacha. |
Click to show internal directories.
Click to hide internal directories.