StealthSigner
SIP Protocol API Reference v0.15.1
SIP Protocol API Reference / StealthSigner
Interface: StealthSigner
Section titled “Interface: StealthSigner”Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17644
Signs transactions/messages as a stealth address using its raw ed25519 scalar.
Properties
Section titled “Properties”publicKey
Section titled “publicKey”
readonlypublicKey:PublicKey
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17646
The stealth address this signer controls
Methods
Section titled “Methods”signMessage()
Section titled “signMessage()”signMessage(
message):Uint8Array
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17656
Sign arbitrary bytes with the stealth scalar, returning a 64-byte ed25519 signature.
This is the raw-bytes sibling of signTransaction: it lets the controller of a stealth address produce an off-chain proof of control — e.g. authenticating to an off-chain service or attesting ownership — without moving funds. The signature verifies against publicKey with any standard ed25519 verifier. Use signTransaction for on-chain Solana transactions.
Parameters
Section titled “Parameters”message
Section titled “message”Uint8Array
Returns
Section titled “Returns”Uint8Array
signTransaction()
Section titled “signTransaction()”signTransaction(
transaction):void
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17658
Attach this stealth address’s signature to a transaction. Call LAST — after feePayer, recentBlockhash, and all instructions are finalized (the signature covers the serialized message at call time).
Parameters
Section titled “Parameters”transaction
Section titled “transaction”Transaction
Returns
Section titled “Returns”void