Skip to content

TimeLockResult

SIP Protocol API Reference v0.15.1


SIP Protocol API Reference / TimeLockResult

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:10400

Time-lock result containing encrypted viewing key and metadata

encryptedKey: `0x${string}`

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:10402

Encrypted viewing key


nonce: `0x${string}`

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:10404

Nonce for XChaCha20-Poly1305


revealAfter: number

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:10406

Reveal time (Unix timestamp in seconds) or block height


verificationCommitment: `0x${string}`

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:10408

Commitment to verify integrity (hash of viewingKey + revealAfter)


encryptionCommitment: `0x${string}`

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:10410

Original commitment parameter (transaction hash or identifier)


type: "timestamp" | "blockheight"

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:10412

Type of time-lock: ‘timestamp’ or ‘blockheight’