Package-level declarations

The utils module is intentionally lightweight. Most cryptographic and encoding operations are handled by the Kotlin Standard Library, TSS Module, and Platform Libraries.

  • Byte array manipulation

  • Serialization helpers

  • Base64 encoding/decoding

This module currently provides minimal utility functions for:

the TSS implementations and wrapper modules. Utility functions for the SilentShard Kotlin Multiplatform library. This module provides common utilities used across

Types

Link copied to clipboard
object IBufferAsBase64Serializer : KSerializer<ByteArray>

A kotlinx.serialization KSerializer that represents a ByteArray as a Base64 string instead of the default array-of-bytes form.

Link copied to clipboard
interface MessageSigner

Certifies a party's per-session protocol key with a stable identity key.

Functions

Link copied to clipboard

Decodes a standard Base64 string (RFC 4648) back into bytes.

Link copied to clipboard

Encodes the bytes as a standard Base64 string (RFC 4648).

Link copied to clipboard

Encodes the bytes using the URL- and filename-safe Base64 alphabet (RFC 4648 §5).

Link copied to clipboard

Returns the lowercase hexadecimal representation of the bytes, without separators or prefix.

Link copied to clipboard
fun ByteArray.writeUint16LE(value: Int, offset: Int)

Writes value as an unsigned 16-bit little-endian integer into this array, occupying offset and offset + 1 (low byte first).