live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/lock-core


@orangecheck/lock-core / UnsealInput

Interface: UnsealInput

Defined in: lock-core/src/types.ts:82

Properties

PropertyTypeDescriptionDefined in
<a id="property-device"></a> device&#123; device_id: string; secretKey: Uint8Array; &#125;-lock-core/src/types.ts:84
device.device_idstring-lock-core/src/types.ts:85
device.secretKeyUint8Array32-byte X25519 private key for this device.lock-core/src/types.ts:87
<a id="property-envelope"></a> envelopeLockEnvelope-lock-core/src/types.ts:83
<a id="property-now"></a> now?() => DateCurrent time; defaults to Date.now(). Used for expiry enforcement.lock-core/src/types.ts:98
<a id="property-skipsenderverification"></a> skipSenderVerification?booleanSkip sender signature verification. Default false; true only for self-seals.lock-core/src/types.ts:96
<a id="property-verifybip322"></a> verifyBip322?(msg: string, signatureB64: string, address: string) => Promise&lt;boolean>Called to verify the sender's BIP-322 signature. Returns true if valid. The verifier is injected because verification libraries differ between Node and browser contexts; consumers plug their own.lock-core/src/types.ts:94