Skip to content

SIPNativeBackend

SIP Protocol API Reference v0.15.1


SIP Protocol API Reference / SIPNativeBackend

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:20989

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-GLbkPPho.d.ts:21000

Create a new SIP Native backend

SIPNativeBackendConfig

Backend configuration

SIPNativeBackend

readonly version: PrivacyBackendVersion

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:20990

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-GLbkPPho.d.ts:20991

Unique backend identifier

PrivacyBackend.name


readonly type: PrivacyBackendType

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:20992

Backend type classification

PrivacyBackend.type


readonly chains: string[]

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:20993

Supported blockchain networks

PrivacyBackend.chains

checkAvailability(params): Promise<PrivacyAvailabilityResult>

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:21004

Check if backend is available for given parameters

PrivacyTransferParams

Promise<PrivacyAvailabilityResult>

PrivacyBackend.checkAvailability


getCapabilities(): PrivacyBackendCapabilities

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:21008

Get backend capabilities

PrivacyBackendCapabilities

PrivacyBackend.getCapabilities


execute(params): Promise<PrivacyTransactionResult>

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:21018

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-GLbkPPho.d.ts:21022

Estimate cost for a transfer

PrivacyTransferParams

Promise<bigint>

PrivacyBackend.estimateCost