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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new StealthInputsStatement(
inputs,revealedAmount,statementJson?):StealthInputsStatement
Defined in: ootle/src/stealth/statements.ts:133
Parameters
Section titled “Parameters”inputs
Section titled “inputs”revealedAmount
Section titled “revealedAmount”bigint
statementJson?
Section titled “statementJson?”string
Returns
Section titled “Returns”StealthInputsStatement
Properties
Section titled “Properties”inputs
Section titled “inputs”
readonlyinputs:StealthInput[]
Defined in: ootle/src/stealth/statements.ts:128
revealedAmount
Section titled “revealedAmount”
readonlyrevealedAmount:bigint
Defined in: ootle/src/stealth/statements.ts:129
statementJson?
Section titled “statementJson?”
optionalstatementJson?:string
Defined in: ootle/src/stealth/statements.ts:131
Cached WASM-produced wire JSON (the canonical signed payload), once computed.
Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”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.
Returns
Section titled “Returns”object
inputs
Section titled “inputs”inputs:
StealthInputJson[]
revealed_amount
Section titled “revealed_amount”revealed_amount:
string
fromJSON()
Section titled “fromJSON()”
staticfromJSON(json):StealthInputsStatement
Defined in: ootle/src/stealth/statements.ts:155
Parameters
Section titled “Parameters”inputs
Section titled “inputs”StealthInputJson[]
revealed_amount
Section titled “revealed_amount”string
Returns
Section titled “Returns”StealthInputsStatement
revealedOnly()
Section titled “revealedOnly()”
staticrevealedOnly(amount):StealthInputsStatement
Defined in: ootle/src/stealth/statements.ts:140
Revealed-only inputs statement (no confidential inputs).
Parameters
Section titled “Parameters”amount
Section titled “amount”bigint
Returns
Section titled “Returns”StealthInputsStatement