Skip to content

StealthInputsStatement

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

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:133

StealthInput[]

bigint

string

StealthInputsStatement

readonly inputs: StealthInput[]

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


readonly revealedAmount: bigint

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


optional statementJson?: string

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

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

toJSON(): object

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

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:155

StealthInputJson[]

string

StealthInputsStatement


static revealedOnly(amount): StealthInputsStatement

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

Revealed-only inputs statement (no confidential inputs).

bigint

StealthInputsStatement