Encoding and decoding functions

Encoding functions

# Name Description Complexity
1 blake2b256(ByteVector): ByteVector BLAKE-256 hash function 10
2 keccak256(ByteVector): ByteVector SHA-3-256 hash function 10
3 sha256(ByteVector): ByteVector SHA-256 hash function 10
4 toBase16String(ByteVector): String Encodes array of bytes to Base16 string 10
5 toBase58String(ByteVector): String Encodes array of bytes to Base58 string 10
6 toBase64String(ByteVector): String Encodes array of bytes to Base64 string 10

Decoding functions

# Name Description Complexity
1 addressFromString(String): Address|Unit Decodes address from Base58 string 124
2 addressFromStringValue(String): Address Decodes address from Base58 string.
Raises an exception if the address cannot be decoded
124
3 fromBase16String(String): ByteVector Decodes Base16 string to an array of bytes 10
4 fromBase58String(String): ByteVector Decodes Base58 string to an array of bytes 10
5 fromBase64String(String): ByteVector Decodes Base64 string to an array of bytes 10

blake2b256(ByteVector): ByteVector

BLAKE-256 hash function.

blake2b256(bytes: ByteVector): ByteVector

Parameters

bytes: ByteVector

The array of bytes to encode.

keccak256(ByteVector): ByteVector

SHA-3-256 hash function.

keccak256(bytes: ByteVector): ByteVector

Parameters

bytes: ByteVector

The array of bytes to encode.

sha256(ByteVector): ByteVector

SHA-256 hash function.

sha256(bytes: ByteVector): ByteVector

Parameters

bytes: ByteVector

The array of bytes to encode.

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.

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.

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.

addressFromString(String): Address|Unit

Decodes address from Base58 string.

addressFromString(string: String): Address|Unit

Parameters

string: String

The string to decode.

addressFromStringValue(String): Address

Decodes address from Base58 string.

Raises an exception if the address cannot be decoded.

addressFromStringValue(string: String): Address

Parameters

string: String

The string to decode.

fromBase16String(String): ByteVector

Decodes a Base16 string to an array of bytes.

fromBase16String(str: String): ByteVector

Parameters

str: String

The string to decode.

fromBase58String(String): ByteVector

Decodes a Base58 string to an array of bytes.

fromBase58String(str: String): ByteVector

Parameters

str: String

The string to decode.

fromBase64String(String): ByteVector

Decodes a Base64 string to an array of bytes.

fromBase64String(str: String): ByteVector

Parameters

str: String

The string to decode.

results matching ""

    No results matching ""