Documentation ¶
Index ¶
- func Bech32DecodeBytes(rawString string) (hrp string, decodedKey []byte, err error)
- func Bech32EncodeBytes(toEncode []byte, hrp string) (encodedBytes string, err error)
- func CreateDoubleSha256(data []byte) []byte
- func CreateSha256Hash(data []byte) []byte
- func GenerateRandomBytes(n int) ([]byte, error)
- func PrngIsAvailable() bool
- func TlvRecordToBytes(record ...tlv.Record) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bech32DecodeBytes ¶
func Bech32EncodeBytes ¶
func CreateDoubleSha256 ¶
func CreateSha256Hash ¶
func GenerateRandomBytes ¶
GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func PrngIsAvailable ¶
func PrngIsAvailable() bool
func TlvRecordToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.