Skip to content

NonceCache

Defined in: nonces.ts:5

Nonces this server has accepted, kept until the payment they belong to expires. In memory only: a restart forgets them (docs/threat-model.md).

new NonceCache(): NonceCache

NonceCache

get size(): number

Defined in: nonces.ts:21

number

claim(key, expiresAt, now): boolean

Defined in: nonces.ts:9

Reserve a payment’s replay key; false when it is already held.

string

number

number

boolean


release(key): void

Defined in: nonces.ts:17

string

void