Package-level declarations

Types

Link copied to clipboard

Abstract base class for blockchain anchor client implementations.

Link copied to clipboard

Builds and recognises the compact digest envelope anchored on-chain when a client runs in digest payload mode (see AbstractBlockchainAnchorClient.OPTION_PAYLOAD_MODE).

Link copied to clipboard
data class AnchorRef(val chainId: String, val txHash: String, val contract: String? = null, val extra: Map<String, String> = emptyMap())

Reference to a blockchain anchor (CAIP-2-style chain identifier + transaction reference).

Link copied to clipboard
data class AnchorResult(val ref: AnchorRef, val payload: JsonElement, val mediaType: String = "application/json", val timestamp: Long? = null, val fee: TokenAmount? = null, val payerAddress: String? = null)

Result of anchoring a payload to a blockchain.

Link copied to clipboard
data class AnchorVerification(val verified: Boolean, val testMode: Boolean = false, val reason: String? = null)
Link copied to clipboard

Interface for blockchain anchoring operations. This interface is chain-agnostic; specific blockchain implementations will be provided in separate adapter modules.

Link copied to clipboard

Contract for registries that manage BlockchainAnchorClient instances.

Link copied to clipboard
sealed class ChainId

Type-safe chain identifier following CAIP-2 format.

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun <T> BlockchainAnchorRegistry.anchorTyped(value: T, serializer: KSerializer<T>, targetChainId: String, mediaType: String = "application/json"): AnchorResult
Link copied to clipboard
suspend fun <T> BlockchainAnchorRegistry.readTyped(ref: AnchorRef, serializer: KSerializer<T>): T