Skip to content

ShieldedPayment

SIP Protocol API Reference v0.7.0


SIP Protocol API Reference / ShieldedPayment

Defined in: @sip-protocol/types/dist/index.d.ts:1447

Shielded payment - a privacy-preserving stablecoin transfer

Unlike ShieldedIntent which is for cross-chain swaps, ShieldedPayment is specifically for same-token transfers (e.g., USDC to USDC).

paymentId: string

Defined in: @sip-protocol/types/dist/index.d.ts:1449

Unique payment identifier


version: string

Defined in: @sip-protocol/types/dist/index.d.ts:1451

SIP version


privacyLevel: PrivacyLevel

Defined in: @sip-protocol/types/dist/index.d.ts:1453

Privacy level for this payment


createdAt: number

Defined in: @sip-protocol/types/dist/index.d.ts:1455

Creation timestamp (Unix seconds)


expiry: number

Defined in: @sip-protocol/types/dist/index.d.ts:1457

Expiration timestamp (Unix seconds)


token: Asset

Defined in: @sip-protocol/types/dist/index.d.ts:1459

The token being transferred


amount: bigint

Defined in: @sip-protocol/types/dist/index.d.ts:1461

Amount in smallest units (hidden via commitment in shielded mode)


optional amountCommitment: Commitment

Defined in: @sip-protocol/types/dist/index.d.ts:1463

Pedersen commitment to amount (for shielded mode)


optional senderCommitment: Commitment

Defined in: @sip-protocol/types/dist/index.d.ts:1465

Pedersen commitment to sender (for shielded mode)


optional recipientStealth: object

Defined in: @sip-protocol/types/dist/index.d.ts:1467

Recipient stealth address (for shielded mode)

address: `0x${string}`

ephemeralPublicKey: `0x${string}`

viewTag: number


optional recipientAddress: string

Defined in: @sip-protocol/types/dist/index.d.ts:1473

Direct recipient address (for transparent mode)


sourceChain: ChainId

Defined in: @sip-protocol/types/dist/index.d.ts:1475

Source chain


destinationChain: ChainId

Defined in: @sip-protocol/types/dist/index.d.ts:1477

Destination chain (can be same as source for same-chain transfers)


optional purpose: PaymentPurpose

Defined in: @sip-protocol/types/dist/index.d.ts:1479

Payment purpose (for compliance)


optional memo: string

Defined in: @sip-protocol/types/dist/index.d.ts:1481

Optional memo/reference (encrypted in shielded mode)


optional encryptedMemo: `0x${string}`

Defined in: @sip-protocol/types/dist/index.d.ts:1483

Encrypted memo (for shielded mode with viewing key)


optional fundingProof: ZKProof

Defined in: @sip-protocol/types/dist/index.d.ts:1485

Funding proof (balance >= amount)


optional authorizationProof: ZKProof

Defined in: @sip-protocol/types/dist/index.d.ts:1487

Authorization proof


optional viewingKeyHash: `0x${string}`

Defined in: @sip-protocol/types/dist/index.d.ts:1489

Viewing key hash (for compliant mode)