Encoding functions

# Name Description Complexity
1 toBase16String(ByteVector): String Encodes array of bytes to Base16 string 10
2 toBase58String(ByteVector): String Encodes array of bytes to Base58 string 10
3 toBase64String(ByteVector): String Encodes array of bytes to Base64 string 10

toBase16String(ByteVector): String

Encodes an array of bytes to a Base16 string.

toBase16String(bytes: ByteVector): String

Parameters

bytes: ByteVector

The array of bytes to encode.

Examples

toBase16String("Ride".toBytes()) # Returns "52696465"
toBase16String(base16'52696465') # Returns "52696465"

toBase58String(ByteVector): String

Encodes an array of bytes to a Base58 string.

toBase58String(bytes: ByteVector): String

Parameters

bytes: ByteVector

The array of bytes to encode.

Examples

toBase58String("Ride".toBytes()) # Returns "37BPKA"
toBase58String(base58'37BPKA')  # Returns "37BPKA"

toBase64String(ByteVector): String

Encodes an array of bytes to a Base64 string.

toBase64String(bytes: ByteVector): String

Parameters

bytes: ByteVector

The array of bytes to encode.

Examples

toBase64String("Ride".toBytes()) # Returns "UmlkZQ=="
toBase64String(base64'UmlkZQ==') # Returns "UmlkZQ=="

results matching ""

    No results matching ""