Documentation
¶
Index ¶
- func Base58Decode(encoded string) ([]byte, error)
- func Base58DecodePublicKey(publicKey string) (prefix []byte, public []byte, combined []byte, err error)
- func Base58Encode(input interface{}) string
- func Base58EncodePublicKey(publicKey []byte) string
- func Base64Decode(input string) (string, error)
- func Base64Encode(input []byte) string
- func Blake3(input []byte) []byte
- func Blake3Variable(input []byte, outputBitLength int) []byte
- func HashToHexByte(stringHash string) ([]byte, error)
- func HexDecode(encoded string) ([]byte, error)
- func HexEncode(input []byte) string
- func HexEncodeHash(input []byte, status zera_protobuf.TXN_STATUS) string
- func SHA3256(input []byte) []byte
- func SHA3512(input []byte) []byte
- func ShakeVariable(input []byte, outputBitLength int) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base58Decode ¶
func Base58DecodePublicKey ¶
func Base58DecodePublicKey(publicKey string) (prefix []byte, public []byte, combined []byte, err error)
* Note this only works for single keys
func Base58Encode ¶
func Base58Encode(input interface{}) string
func Base58EncodePublicKey ¶
func Base64Decode ¶
Base64Decode decodes the Base64 input string to a regular string.
func Base64Encode ¶
Base64Encode encodes the input byte slice to Base64.
func Blake3 ¶
Blake3 calculates the BLAKE3 hash of a byte slice and returns the hash as a byte slice.
func Blake3Variable ¶
BLAKE3Variable generates a BLAKE3 hash of the given input with the specified output bit length.
func HashToHexByte ¶
func HexEncodeHash ¶
func HexEncodeHash(input []byte, status zera_protobuf.TXN_STATUS) string
Hex encodes the bytes, but adds i to the end if the status is time delay initialized
func SHA3256 ¶
SHA3256 calculates the SHA3-256 hash of a byte slice and returns the hash as a byte slice.
func SHA3512 ¶
SHA3512 calculates the SHA3-512 hash of a byte slice and returns the hash as a byte slice.
func ShakeVariable ¶
SHAKEVariable generates a SHAKE256 hash of the given input with the specified output bit length.
Types ¶
This section is empty.