Skip to content

SIPNativeBackend

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / SIPNativeBackend

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:20653

SIP Native Privacy Backend

Uses stealth addresses and Pedersen commitments for transaction privacy, with viewing key support for regulatory compliance.

new SIPNativeBackend(config?): SIPNativeBackend

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:20664

Create a new SIP Native backend

SIPNativeBackendConfig

Backend configuration

SIPNativeBackend

readonly version: PrivacyBackendVersion

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:20654

Interface version implemented by this backend

  • v1: Initial interface (deprecated, no version field)
  • v2: Current interface with versioning support

Backends without a version field are treated as v1 with deprecation warning.

1 (for backwards compatibility)

PrivacyBackend.version


readonly name: "sip-native" = "sip-native"

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:20655

Unique backend identifier

PrivacyBackend.name


readonly type: PrivacyBackendType

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:20656

Backend type classification

PrivacyBackend.type


readonly chains: string[]

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:20657

Supported blockchain networks

PrivacyBackend.chains

checkAvailability(params): Promise<PrivacyAvailabilityResult>

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:20668

Check if backend is available for given parameters

PrivacyTransferParams

Promise<PrivacyAvailabilityResult>

PrivacyBackend.checkAvailability


getCapabilities(): PrivacyBackendCapabilities

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:20672

Get backend capabilities

PrivacyBackendCapabilities

PrivacyBackend.getCapabilities


execute(params): Promise<PrivacyTransactionResult>

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:20682

Execute a privacy-preserving transfer

This creates a stealth address transfer with:

  • Ephemeral keypair generation
  • Stealth address derivation
  • Pedersen commitment for amount
  • Optional viewing key encryption

PrivacyTransferParams

Promise<PrivacyTransactionResult>

PrivacyBackend.execute


estimateCost(params): Promise<bigint>

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:20686

Estimate cost for a transfer

PrivacyTransferParams

Promise<bigint>

PrivacyBackend.estimateCost