Package-level declarations

Functions

Link copied to clipboard

Adds 0x prefix to a string if not already present.

Link copied to clipboard

Delete multiple keys at once. Returns a list of results for each operation.

Link copied to clipboard

Check if all specified keys exist.

Link copied to clipboard

Check if any of the specified keys exist.

Link copied to clipboard

Get a value as ByteArray or null if not found.

Link copied to clipboard

Get a value as Double or null if not found/invalid.

Link copied to clipboard

Get a value as Double with a default fallback.

Link copied to clipboard

Get a value as Float or null if not found/invalid.

Link copied to clipboard

Get a value as Float with a default fallback.

Link copied to clipboard

Get a value as Int or null if not found/invalid.

Link copied to clipboard

Get a value as Int with a default fallback.

Link copied to clipboard

Get a value as String or null if not found/invalid.

Link copied to clipboard

Get a value as String with a default fallback.

Link copied to clipboard
fun String.hexToBigInteger(): BigInteger

Converts a hex string (with or without 0x prefix) to BigInteger.

Link copied to clipboard

Converts a hex string (with or without 0x prefix) to ByteArray.

Link copied to clipboard

Computes the Keccak-256 cryptographic hash of the byte array.

Link copied to clipboard
inline fun <R> SecureLocalStorageResult.map(transform: (Any?) -> R): Result<R>

Map success value to another type.

Link copied to clipboard

Execute a block if the result is a failure.

Link copied to clipboard

Execute a block if the result is successful.

Link copied to clipboard

Converts a ByteArray into a 32-byte public key representation. If the input ByteArray is longer than 32 bytes, it's truncated. If it's shorter, it's right-aligned within a 32-byte array.

Link copied to clipboard

Set multiple values at once. Returns a list of results for each operation.

Link copied to clipboard

Computes the SHA-256 cryptographic hash of the byte array.

Link copied to clipboard

Converts the byte array into a Base58-encoded string following Bitcoin's alphabet.

Link copied to clipboard

Encodes the current byte array into a Base58Check-encoded string.

Link copied to clipboard
fun BigInteger.toHexString(): String

Converts BigInteger to hex string with 0x prefix.

Converts a ByteArray to a hex string with 0x prefix.

Link copied to clipboard

Converts a ByteArray representing an uncompressed public key into a TRON blockchain address.

Link copied to clipboard
fun BigInteger.toSafeByteArray(): ByteArray

Converts BigInteger to byte array, ensuring non-negative representation. Removes the leading zero byte (sign byte) if present.