@arkade-os/sdk Documentation - v0.5.0-rc.11
    Preparing search index...

    Function claimWithPreimageIdentity

    • Decorate a signer so it reveals preimage on every input it signs.

      The ordering encoded here is the whole point: the condition witness is NOT part of what is signed, so attaching it before signing leaves a signature over a PSBT that no longer matches once the field is present — which the server rejects as INVALID_SIGNATURE. Decorate per spend, never wallet-wide.

      For any condition-leaf spend (VHTLC claims on both swap directions); the generic signature keeps the decorated identity's own type, so the result is still whatever was passed in.

      Type Parameters

      Parameters

      • identity: T
      • preimage: Uint8Array

      Returns T