Skip to content
docs

HtlcSecretStore

Defined in: protocol-swap2-omniston/src/provider.ts:128

Persists HTLC secret preimages by quoteId between buildDeposit and the trackIntent poll that discloses them. Losing a secret does NOT lose funds — the escrow refunds after the HTLC timeout — but it does fail the swap.

clear(quoteId): void | Promise<void>

Defined in: protocol-swap2-omniston/src/provider.ts:131

string

void | Promise<void>


load(quoteId): string[] | Promise<string[] | undefined> | undefined

Defined in: protocol-swap2-omniston/src/provider.ts:130

string

string[] | Promise<string[] | undefined> | undefined


save(quoteId, secretsHex): void | Promise<void>

Defined in: protocol-swap2-omniston/src/provider.ts:129

string

string[]

void | Promise<void>