Skip to content

StealthInputsStatement

Defined in: ootle/src/stealth/statements.ts:126

The inputs side of a stealth transfer: the commitments being spent plus the revealed (un-confidential) input amount.

The signed/wire JSON is produced by WASM, not hand-rolled. This type carries (inputs, revealedAmount) plus an optional cached statementJson (the WASM-produced wire string). Its toJSON() is a debug/structural view only — it is NOT the signed wire payload; the crypto seam fills and reads statementJson for that.

new StealthInputsStatement(inputs, revealedAmount, statementJson?): StealthInputsStatement

Defined in: ootle/src/stealth/statements.ts:132

StealthInput[]

bigint

string

StealthInputsStatement

readonly inputs: StealthInput[]

Defined in: ootle/src/stealth/statements.ts:127


readonly revealedAmount: bigint

Defined in: ootle/src/stealth/statements.ts:128


optional statementJson?: string

Defined in: ootle/src/stealth/statements.ts:130

Cached WASM-produced wire JSON (the canonical signed payload), once computed.

toJSON(): object

Defined in: ootle/src/stealth/statements.ts:147

Structural view (NOT the signed wire payload — see class docs). Amounts are decimal strings to keep bigint out of JSON.

object

inputs: StealthInputJson[]

revealed_amount: string


static fromJSON(json): StealthInputsStatement

Defined in: ootle/src/stealth/statements.ts:154

StealthInputJson[]

string

StealthInputsStatement


static revealedOnly(amount): StealthInputsStatement

Defined in: ootle/src/stealth/statements.ts:139

Revealed-only inputs statement (no confidential inputs).

bigint

StealthInputsStatement