# README
crypto
crypto is the cryptographic package originally adapted for Tendermint's uses.
Importing it
To get the interfaces,
import "github.com/gnolang/gno/libs/crypto"
For any specific algorithm, use its specific module e.g.
import "github.com/gnolang/gno/libs/crypto/ed25519"
# Packages
No description provided by the author
Package bcrypt implements Provos and Mazières's bcrypt adaptive hashing algorithm.
No description provided by the author
No description provided by the author
nolint:gocyclo.
No description provided by the author
No description provided by the author
Package merkle computes a deterministic minimal height Merkle tree hash.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package xchacha20poly1305 creates an AEAD using hchacha, chacha, and poly1305 This allows for randomized nonces to be used in conjunction with chacha.
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This only uses the OS's randomness.
CRandHex returns a hex encoded string that's floor(numDigits/2) * 2 long.
Returns a crand.Reader.
GetFromBech32 decodes a bytestring from a Bech32 encoded string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
AddressSize is the size of a pubkey address.
Bech32AddrPrefix defines the Bech32 prefix of an address.
Bech32PubKeyPrefix defines the Bech32 prefix of a pubkey.
BIP44Prefix is the parts of the BIP44 HD path that are fixed by what we used during the fundraiser.
Atom in https://github.com/satoshilabs/slips/blob/master/slip-0044.md.
No description provided by the author
# Type aliases
(truncated) hash of some preimage (typically of a pubkey).
No description provided by the author
The bech32 representation w/ bech32 prefix.