transcode

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base58Decode

func Base58Decode(encoded string) ([]byte, error)

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 Base58EncodePublicKey(publicKey []byte) string

func Base64Decode

func Base64Decode(input string) (string, error)

Base64Decode decodes the Base64 input string to a regular string.

func Base64Encode

func Base64Encode(input []byte) string

Base64Encode encodes the input byte slice to Base64.

func Blake3

func Blake3(input []byte) []byte

Blake3 calculates the BLAKE3 hash of a byte slice and returns the hash as a byte slice.

func Blake3Variable

func Blake3Variable(input []byte, outputBitLength int) []byte

BLAKE3Variable generates a BLAKE3 hash of the given input with the specified output bit length.

func HashToHexByte

func HashToHexByte(stringHash string) ([]byte, error)

func HexDecode

func HexDecode(encoded string) ([]byte, error)

func HexEncode

func HexEncode(input []byte) string

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

func SHA3256(input []byte) []byte

SHA3256 calculates the SHA3-256 hash of a byte slice and returns the hash as a byte slice.

func SHA3512

func SHA3512(input []byte) []byte

SHA3512 calculates the SHA3-512 hash of a byte slice and returns the hash as a byte slice.

func ShakeVariable

func ShakeVariable(input []byte, outputBitLength int) []byte

SHAKEVariable generates a SHAKE256 hash of the given input with the specified output bit length.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL