@sip-protocol/sdk 0.6.15 → 0.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.d.mts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +44 -5
- package/dist/browser.mjs +44 -5
- package/dist/{index-C3N0yyPg.d.ts → index-BzKgVQ87.d.ts} +7 -1
- package/dist/{index-DXxpjdTW.d.mts → index-mM-VDYdm.d.mts} +7 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/proofs/browser.ts +56 -7
package/dist/browser.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bH as ATTESTATION_VERSION, az as AptosStealthResult, al as AptosStealthService, bT as AttestationRequest, bU as AttestationResult, dB as AuditReport, dx as AuditorKeyDerivation, dy as AuditorType, cf as BackendCapabilities, e7 as BaseWalletAdapter, dX as BidReceipt, d2 as BitcoinNetwork, cP as BridgeProvider, B as BrowserNoirProvider, t as BrowserNoirProviderConfig, bK as CHAIN_NUMERIC_IDS, aG as COSMOS_CHAIN_PREFIXES, dM as CSVExport, e2 as CastVoteParams, b8 as CommitmentPoint, dt as ComplianceManager, du as ComplianceReporter, dw as ConditionalDisclosure, aH as CosmosChainId, aI as CosmosStealthResult, aB as CosmosStealthService, dY as CreateBidParams, $ as CreateIntentOptions, dq as CreatePaymentOptions, C as CryptoError, bI as DEFAULT_THRESHOLD, bJ as DEFAULT_TOTAL_ORACLES, dC as DecryptedTransaction, eF as DerivationPath, dP as DeriveMultipleParams, dO as DeriveViewingKeyParams, dN as DerivedViewingKey, f6 as EIP1193ConnectInfo, f5 as EIP1193Event, f3 as EIP1193Provider, f7 as EIP1193ProviderRpcError, f4 as EIP1193RequestArguments, f8 as EIP712Domain, f9 as EIP712TypeDefinition, fb as EIP712TypedData, fa as EIP712Types, e0 as EncryptedVote, w as EncryptionNotImplementedError, E as ErrorCode, fh as EthereumAdapterConfig, eC as EthereumChainId, fi as EthereumChainIdType, ff as EthereumChainMetadata, fe as EthereumTokenMetadata, fd as EthereumTransactionReceipt, fc as EthereumTransactionRequest, eq as EthereumWalletAdapter, fg as EthereumWalletName, dE as ExportForRegulatorParams, cG as ExportedViewingKey, dI as FATFExport, dJ as FATFTransaction, dK as FINCENExport, dL as FINCENTransaction, co as FindBestRouteParams, dA as GenerateAuditReportParams, fw as HardwareAccount, fn as HardwareConnectionStatus, fp as HardwareDeviceInfo, eD as HardwareErrorCode, fy as HardwareErrorCodeType, fu as HardwareEthereumTx, ft as HardwareSignRequest, fv as HardwareSignature, fx as HardwareTransport, fq as HardwareWalletConfig, eE as HardwareWalletError, fk as HardwareWalletType, L as IntentBuilder, I as IntentError, dH as Jurisdiction, fr as LedgerConfig, fl as LedgerModel, eL as LedgerWalletAdapter, p as MobileBrowser, q as MobileDeviceInfo, M as MobilePlatform, r as MobileWASMCompatibility, es as MockEthereumAdapter, fj as MockEthereumAdapterConfig, fz as MockHardwareConfig, eP as MockLedgerAdapter, br as MockProofProvider, ei as MockSolanaAdapter, f2 as MockSolanaAdapterConfig, c1 as MockSolver, c3 as MockSolverConfig, eQ as MockTrezorAdapter, e8 as MockWalletAdapter, bX as NEARIntentsAdapter, c0 as NEARIntentsAdapterConfig, cp as NEARIntentsBackend, N as NetworkError, bG as ORACLE_DOMAIN, bW as OneClickClient, bO as OracleAttestationMessage, bL as OracleId, bN as OracleInfo, bR as OracleRegistry, bS as OracleRegistryConfig, bP as OracleSignature, bM as OracleStatus, d3 as PaymentBuilder, dD as PdfExportOptions, b7 as PedersenCommitment, b_ as PreparedSwap, cQ as PriceFeed, aP as PrivacyConfig, e3 as PrivateNFT, d_ as PrivateVoting, K as ProductionQuote, u as ProofError, v as ProofNotImplementedError, P as ProofProgressCallback, cn as QuoteComparison, cE as ReceivedNote, dF as RegulatoryExport, dG as RegulatoryFormat, e1 as RevealedVote, cj as Route, cm as RouteWithQuote, F as SIP, J as SIPConfig, S as SIPError, dd as STABLECOIN_ADDRESSES, de as STABLECOIN_DECIMALS, dc as STABLECOIN_INFO, dW as SealedBid, dU as SealedBidAuction, D as SerializedError, cg as SettlementBackend, ch as SettlementBackendFactory, c7 as SettlementBackendName, ci as SettlementBackendRegistry, c9 as SettlementQuote, c8 as SettlementQuoteParams, c5 as SettlementRegistry, c6 as SettlementRegistryError, cc as SettlementSwapParams, cd as SettlementSwapResult, ca as SettlementSwapRoute, cb as SettlementSwapRouteStep, cF as ShieldedBalance, cC as ShieldedSendParams, cD as ShieldedSendResult, bQ as SignedOracleAttestation, ck as SmartRouter, eZ as SolanaAdapterConfig, eY as SolanaCluster, e_ as SolanaConnection, eT as SolanaPublicKey, e$ as SolanaSendOptions, f1 as SolanaSignature, eU as SolanaTransaction, f0 as SolanaUnsignedTransaction, eV as SolanaVersionedTransaction, eg as SolanaWalletAdapter, eX as SolanaWalletName, eW as SolanaWalletProvider, dr as StablecoinInfo, ak as StealthCurve, aA as SuiStealthResult, as as SuiStealthService, bZ as SwapRequest, b$ as SwapResult, c4 as SwapStatus, ce as SwapStatusResponse, d1 as TapScript, d0 as TaprootOutput, dQ as ThresholdShares, dz as ThresholdViewingKey, dT as TimeLockParams, dR as TimeLockResult, aQ as TransactionData, fo as TransportType, ds as Treasury, fs as TrezorConfig, fm as TrezorModel, eN as TrezorWalletAdapter, dS as UnlockResult, V as ValidationError, bV as VerificationResult, dZ as VerifyBidParams, W as WalletAdapter, e9 as WalletError, cr as ZcashNativeBackend, ct as ZcashNativeBackendConfig, cL as ZcashQuote, cK as ZcashQuoteParams, cu as ZcashRPCClient, cv as ZcashRPCError, cx as ZcashShieldedService, cB as ZcashShieldedServiceConfig, cM as ZcashSwapParams, cN as ZcashSwapResult, cz as ZcashSwapService, cH as ZcashSwapServiceConfig, cI as ZcashSwapSourceChain, cJ as ZcashSwapSourceToken, cO as ZcashSwapStatus, b3 as addBlindings, b1 as addCommitments, bx as addOracle, aq as aptosAddressToAuthKey, Q as attachProofs, ep as base58ToHex, b as browserBytesToHex, h as browserHexToBytes, ao as checkAptosStealthAddress, ac as checkEd25519StealthAddress, f as checkMobileWASMCompatibility, a3 as checkStealthAddress, av as checkSuiStealthAddress, a_ as commit, b0 as commitZero, bE as computeAttestationHash, cW as computeTweakedKey, aR as createCommitment, er as createEthereumAdapter, cY as createKeySpendOnlyOutput, eM as createLedgerAdapter, et as createMockEthereumAdapter, eu as createMockEthereumProvider, eR as createMockLedgerAdapter, ej as createMockSolanaAdapter, el as createMockSolanaConnection, ek as createMockSolanaProvider, c2 as createMockSolver, eS as createMockTrezorAdapter, bY as createNEARIntentsAdapter, cq as createNEARIntentsBackend, bw as createOracleRegistry, e4 as createPrivateOwnership, d$ as createPrivateVoting, H as createProductionSIP, G as createSIP, dV as createSealedBidAuction, O as createShieldedIntent, d4 as createShieldedPayment, cl as createSmartRouter, eh as createSolanaAdapter, cX as createTaprootOutput, eO as createTrezorAdapter, ee as createWalletFactory, cw as createZcashClient, cs as createZcashNativeBackend, cy as createZcashShieldedService, cA as createZcashSwapService, a5 as decodeStealthMetaAddress, c_ as decodeTaprootAddress, d5 as decryptMemo, aN as decryptWithViewing, an as deriveAptosStealthPrivateKey, ab as deriveEd25519StealthPrivateKey, bv as deriveOracleId, a2 as deriveStealthPrivateKey, au as deriveSuiStealthPrivateKey, aL as deriveViewingKey, bD as deserializeAttestationMessage, Z as deserializeIntent, da as deserializePayment, ew as detectEthereumWallets, c as detectMobileBrowser, d as detectMobilePlatform, en as detectSolanaWallets, ap as ed25519PublicKeyToAptosAddress, ag as ed25519PublicKeyToNearAddress, ad as ed25519PublicKeyToSolanaAddress, aw as ed25519PublicKeyToSuiAddress, a4 as encodeStealthMetaAddress, aM as encryptForViewing, eb as featureNotSupportedError, dp as formatStablecoinAmount, ey as fromHex, dn as fromStablecoinUnits, am as generateAptosStealthAddress, b6 as generateBlinding, aD as generateCosmosStealthAddress, aC as generateCosmosStealthMetaAddress, aa as generateEd25519StealthAddress, a9 as generateEd25519StealthMetaAddress, aT as generateIntentId, dv as generatePdfReport, aV as generateRandomBytes, a1 as generateStealthAddress, a0 as generateStealthMetaAddress, at as generateSuiStealthAddress, aK as generateViewingKey, bA as getActiveOracles, eK as getAvailableTransports, g as getBrowserInfo, j as getBrowserVersion, bF as getChainNumericId, dl as getChainsForStablecoin, a8 as getCurveForChain, eB as getDefaultRpcEndpoint, eG as getDerivationPath, A as getErrorMessage, ev as getEthereumProvider, b5 as getGenerators, _ as getIntentSummary, e as getMobileDeviceInfo, k as getOSVersion, db as getPaymentSummary, d8 as getPaymentTimeRemaining, aJ as getPrivacyConfig, aO as getPrivacyDescription, em as getSolanaProvider, df as getStablecoin, di as getStablecoinInfo, dg as getStablecoinsForChain, dj as getSupportedStablecoins, X as getTimeRemaining, cV as getXOnlyPublicKey, bB as hasEnoughOracles, y as hasErrorCode, R as hasRequiredProofs, aU as hash, ez as hexToNumber, i as isBrowser, a7 as isEd25519Chain, U as isExpired, be as isNonNegativeAmount, d7 as isPaymentExpired, ef as isPrivateWalletAdapter, x as isSIPError, dh as isStablecoin, dk as isStablecoinOnChain, l as isTablet, bd as isValidAmount, ar as isValidAptosAddress, b9 as isValidChainId, bh as isValidCompressedPublicKey, aF as isValidCosmosAddress, bi as isValidEd25519PublicKey, bb as isValidHex, bc as isValidHexLength, aj as isValidNearAccountId, ai as isValidNearImplicitAddress, ba as isValidPrivacyLevel, bj as isValidPrivateKey, bk as isValidScalar, bf as isValidSlippage, af as isValidSolanaAddress, bg as isValidStealthMetaAddress, ay as isValidSuiAddress, c$ as isValidTaprootAddress, ah as nearAddressToEd25519PublicKey, eA as normalizeAddress, ax as normalizeSuiAddress, ea as notConnectedError, e5 as proveOwnership, a6 as publicKeyToEthAddress, ed as registerWallet, by as removeOracle, cR as schnorrSign, cT as schnorrSignHex, cS as schnorrVerify, cU as schnorrVerifyHex, aW as secureWipe, aX as secureWipeAll, bC as serializeAttestationMessage, Y as serializeIntent, d9 as serializePayment, bu as signAttestationMessage, ae as solanaAddressToEd25519PublicKey, eo as solanaPublicKeyToHex, aE as stealthKeyToCosmosAddress, b4 as subtractBlindings, b2 as subtractCommitments, a as supportsSharedArrayBuffer, m as supportsTouch, o as supportsWASMBulkMemory, n as supportsWASMSimd, eJ as supportsWebBluetooth, eI as supportsWebHID, eH as supportsWebUSB, s as supportsWebWorkers, cZ as taprootAddress, ex as toHex, dm as toStablecoinUnits, T as trackIntent, d6 as trackPayment, bz as updateOracleStatus, bm as validateAsset, bl as validateCreateIntentParams, bn as validateIntentInput, bo as validateIntentOutput, bq as validateScalar, bp as validateViewingKey, bs as verifyAttestation, aS as verifyCommitment, a$ as verifyOpening, bt as verifyOracleSignature, e6 as verifyOwnership, ec as walletRegistry, aY as withSecureBuffer, aZ as withSecureBufferSync, z as wrapError } from './index-DXxpjdTW.mjs';
|
|
1
|
+
export { bH as ATTESTATION_VERSION, az as AptosStealthResult, al as AptosStealthService, bT as AttestationRequest, bU as AttestationResult, dB as AuditReport, dx as AuditorKeyDerivation, dy as AuditorType, cf as BackendCapabilities, e7 as BaseWalletAdapter, dX as BidReceipt, d2 as BitcoinNetwork, cP as BridgeProvider, B as BrowserNoirProvider, t as BrowserNoirProviderConfig, bK as CHAIN_NUMERIC_IDS, aG as COSMOS_CHAIN_PREFIXES, dM as CSVExport, e2 as CastVoteParams, b8 as CommitmentPoint, dt as ComplianceManager, du as ComplianceReporter, dw as ConditionalDisclosure, aH as CosmosChainId, aI as CosmosStealthResult, aB as CosmosStealthService, dY as CreateBidParams, $ as CreateIntentOptions, dq as CreatePaymentOptions, C as CryptoError, bI as DEFAULT_THRESHOLD, bJ as DEFAULT_TOTAL_ORACLES, dC as DecryptedTransaction, eF as DerivationPath, dP as DeriveMultipleParams, dO as DeriveViewingKeyParams, dN as DerivedViewingKey, f6 as EIP1193ConnectInfo, f5 as EIP1193Event, f3 as EIP1193Provider, f7 as EIP1193ProviderRpcError, f4 as EIP1193RequestArguments, f8 as EIP712Domain, f9 as EIP712TypeDefinition, fb as EIP712TypedData, fa as EIP712Types, e0 as EncryptedVote, w as EncryptionNotImplementedError, E as ErrorCode, fh as EthereumAdapterConfig, eC as EthereumChainId, fi as EthereumChainIdType, ff as EthereumChainMetadata, fe as EthereumTokenMetadata, fd as EthereumTransactionReceipt, fc as EthereumTransactionRequest, eq as EthereumWalletAdapter, fg as EthereumWalletName, dE as ExportForRegulatorParams, cG as ExportedViewingKey, dI as FATFExport, dJ as FATFTransaction, dK as FINCENExport, dL as FINCENTransaction, co as FindBestRouteParams, dA as GenerateAuditReportParams, fw as HardwareAccount, fn as HardwareConnectionStatus, fp as HardwareDeviceInfo, eD as HardwareErrorCode, fy as HardwareErrorCodeType, fu as HardwareEthereumTx, ft as HardwareSignRequest, fv as HardwareSignature, fx as HardwareTransport, fq as HardwareWalletConfig, eE as HardwareWalletError, fk as HardwareWalletType, L as IntentBuilder, I as IntentError, dH as Jurisdiction, fr as LedgerConfig, fl as LedgerModel, eL as LedgerWalletAdapter, p as MobileBrowser, q as MobileDeviceInfo, M as MobilePlatform, r as MobileWASMCompatibility, es as MockEthereumAdapter, fj as MockEthereumAdapterConfig, fz as MockHardwareConfig, eP as MockLedgerAdapter, br as MockProofProvider, ei as MockSolanaAdapter, f2 as MockSolanaAdapterConfig, c1 as MockSolver, c3 as MockSolverConfig, eQ as MockTrezorAdapter, e8 as MockWalletAdapter, bX as NEARIntentsAdapter, c0 as NEARIntentsAdapterConfig, cp as NEARIntentsBackend, N as NetworkError, bG as ORACLE_DOMAIN, bW as OneClickClient, bO as OracleAttestationMessage, bL as OracleId, bN as OracleInfo, bR as OracleRegistry, bS as OracleRegistryConfig, bP as OracleSignature, bM as OracleStatus, d3 as PaymentBuilder, dD as PdfExportOptions, b7 as PedersenCommitment, b_ as PreparedSwap, cQ as PriceFeed, aP as PrivacyConfig, e3 as PrivateNFT, d_ as PrivateVoting, K as ProductionQuote, u as ProofError, v as ProofNotImplementedError, P as ProofProgressCallback, cn as QuoteComparison, cE as ReceivedNote, dF as RegulatoryExport, dG as RegulatoryFormat, e1 as RevealedVote, cj as Route, cm as RouteWithQuote, F as SIP, J as SIPConfig, S as SIPError, dd as STABLECOIN_ADDRESSES, de as STABLECOIN_DECIMALS, dc as STABLECOIN_INFO, dW as SealedBid, dU as SealedBidAuction, D as SerializedError, cg as SettlementBackend, ch as SettlementBackendFactory, c7 as SettlementBackendName, ci as SettlementBackendRegistry, c9 as SettlementQuote, c8 as SettlementQuoteParams, c5 as SettlementRegistry, c6 as SettlementRegistryError, cc as SettlementSwapParams, cd as SettlementSwapResult, ca as SettlementSwapRoute, cb as SettlementSwapRouteStep, cF as ShieldedBalance, cC as ShieldedSendParams, cD as ShieldedSendResult, bQ as SignedOracleAttestation, ck as SmartRouter, eZ as SolanaAdapterConfig, eY as SolanaCluster, e_ as SolanaConnection, eT as SolanaPublicKey, e$ as SolanaSendOptions, f1 as SolanaSignature, eU as SolanaTransaction, f0 as SolanaUnsignedTransaction, eV as SolanaVersionedTransaction, eg as SolanaWalletAdapter, eX as SolanaWalletName, eW as SolanaWalletProvider, dr as StablecoinInfo, ak as StealthCurve, aA as SuiStealthResult, as as SuiStealthService, bZ as SwapRequest, b$ as SwapResult, c4 as SwapStatus, ce as SwapStatusResponse, d1 as TapScript, d0 as TaprootOutput, dQ as ThresholdShares, dz as ThresholdViewingKey, dT as TimeLockParams, dR as TimeLockResult, aQ as TransactionData, fo as TransportType, ds as Treasury, fs as TrezorConfig, fm as TrezorModel, eN as TrezorWalletAdapter, dS as UnlockResult, V as ValidationError, bV as VerificationResult, dZ as VerifyBidParams, W as WalletAdapter, e9 as WalletError, cr as ZcashNativeBackend, ct as ZcashNativeBackendConfig, cL as ZcashQuote, cK as ZcashQuoteParams, cu as ZcashRPCClient, cv as ZcashRPCError, cx as ZcashShieldedService, cB as ZcashShieldedServiceConfig, cM as ZcashSwapParams, cN as ZcashSwapResult, cz as ZcashSwapService, cH as ZcashSwapServiceConfig, cI as ZcashSwapSourceChain, cJ as ZcashSwapSourceToken, cO as ZcashSwapStatus, b3 as addBlindings, b1 as addCommitments, bx as addOracle, aq as aptosAddressToAuthKey, Q as attachProofs, ep as base58ToHex, b as browserBytesToHex, h as browserHexToBytes, ao as checkAptosStealthAddress, ac as checkEd25519StealthAddress, f as checkMobileWASMCompatibility, a3 as checkStealthAddress, av as checkSuiStealthAddress, a_ as commit, b0 as commitZero, bE as computeAttestationHash, cW as computeTweakedKey, aR as createCommitment, er as createEthereumAdapter, cY as createKeySpendOnlyOutput, eM as createLedgerAdapter, et as createMockEthereumAdapter, eu as createMockEthereumProvider, eR as createMockLedgerAdapter, ej as createMockSolanaAdapter, el as createMockSolanaConnection, ek as createMockSolanaProvider, c2 as createMockSolver, eS as createMockTrezorAdapter, bY as createNEARIntentsAdapter, cq as createNEARIntentsBackend, bw as createOracleRegistry, e4 as createPrivateOwnership, d$ as createPrivateVoting, H as createProductionSIP, G as createSIP, dV as createSealedBidAuction, O as createShieldedIntent, d4 as createShieldedPayment, cl as createSmartRouter, eh as createSolanaAdapter, cX as createTaprootOutput, eO as createTrezorAdapter, ee as createWalletFactory, cw as createZcashClient, cs as createZcashNativeBackend, cy as createZcashShieldedService, cA as createZcashSwapService, a5 as decodeStealthMetaAddress, c_ as decodeTaprootAddress, d5 as decryptMemo, aN as decryptWithViewing, an as deriveAptosStealthPrivateKey, ab as deriveEd25519StealthPrivateKey, bv as deriveOracleId, a2 as deriveStealthPrivateKey, au as deriveSuiStealthPrivateKey, aL as deriveViewingKey, bD as deserializeAttestationMessage, Z as deserializeIntent, da as deserializePayment, ew as detectEthereumWallets, c as detectMobileBrowser, d as detectMobilePlatform, en as detectSolanaWallets, ap as ed25519PublicKeyToAptosAddress, ag as ed25519PublicKeyToNearAddress, ad as ed25519PublicKeyToSolanaAddress, aw as ed25519PublicKeyToSuiAddress, a4 as encodeStealthMetaAddress, aM as encryptForViewing, eb as featureNotSupportedError, dp as formatStablecoinAmount, ey as fromHex, dn as fromStablecoinUnits, am as generateAptosStealthAddress, b6 as generateBlinding, aD as generateCosmosStealthAddress, aC as generateCosmosStealthMetaAddress, aa as generateEd25519StealthAddress, a9 as generateEd25519StealthMetaAddress, aT as generateIntentId, dv as generatePdfReport, aV as generateRandomBytes, a1 as generateStealthAddress, a0 as generateStealthMetaAddress, at as generateSuiStealthAddress, aK as generateViewingKey, bA as getActiveOracles, eK as getAvailableTransports, g as getBrowserInfo, j as getBrowserVersion, bF as getChainNumericId, dl as getChainsForStablecoin, a8 as getCurveForChain, eB as getDefaultRpcEndpoint, eG as getDerivationPath, A as getErrorMessage, ev as getEthereumProvider, b5 as getGenerators, _ as getIntentSummary, e as getMobileDeviceInfo, k as getOSVersion, db as getPaymentSummary, d8 as getPaymentTimeRemaining, aJ as getPrivacyConfig, aO as getPrivacyDescription, em as getSolanaProvider, df as getStablecoin, di as getStablecoinInfo, dg as getStablecoinsForChain, dj as getSupportedStablecoins, X as getTimeRemaining, cV as getXOnlyPublicKey, bB as hasEnoughOracles, y as hasErrorCode, R as hasRequiredProofs, aU as hash, ez as hexToNumber, i as isBrowser, a7 as isEd25519Chain, U as isExpired, be as isNonNegativeAmount, d7 as isPaymentExpired, ef as isPrivateWalletAdapter, x as isSIPError, dh as isStablecoin, dk as isStablecoinOnChain, l as isTablet, bd as isValidAmount, ar as isValidAptosAddress, b9 as isValidChainId, bh as isValidCompressedPublicKey, aF as isValidCosmosAddress, bi as isValidEd25519PublicKey, bb as isValidHex, bc as isValidHexLength, aj as isValidNearAccountId, ai as isValidNearImplicitAddress, ba as isValidPrivacyLevel, bj as isValidPrivateKey, bk as isValidScalar, bf as isValidSlippage, af as isValidSolanaAddress, bg as isValidStealthMetaAddress, ay as isValidSuiAddress, c$ as isValidTaprootAddress, ah as nearAddressToEd25519PublicKey, eA as normalizeAddress, ax as normalizeSuiAddress, ea as notConnectedError, e5 as proveOwnership, a6 as publicKeyToEthAddress, ed as registerWallet, by as removeOracle, cR as schnorrSign, cT as schnorrSignHex, cS as schnorrVerify, cU as schnorrVerifyHex, aW as secureWipe, aX as secureWipeAll, bC as serializeAttestationMessage, Y as serializeIntent, d9 as serializePayment, bu as signAttestationMessage, ae as solanaAddressToEd25519PublicKey, eo as solanaPublicKeyToHex, aE as stealthKeyToCosmosAddress, b4 as subtractBlindings, b2 as subtractCommitments, a as supportsSharedArrayBuffer, m as supportsTouch, o as supportsWASMBulkMemory, n as supportsWASMSimd, eJ as supportsWebBluetooth, eI as supportsWebHID, eH as supportsWebUSB, s as supportsWebWorkers, cZ as taprootAddress, ex as toHex, dm as toStablecoinUnits, T as trackIntent, d6 as trackPayment, bz as updateOracleStatus, bm as validateAsset, bl as validateCreateIntentParams, bn as validateIntentInput, bo as validateIntentOutput, bq as validateScalar, bp as validateViewingKey, bs as verifyAttestation, aS as verifyCommitment, a$ as verifyOpening, bt as verifyOracleSignature, e6 as verifyOwnership, ec as walletRegistry, aY as withSecureBuffer, aZ as withSecureBufferSync, z as wrapError } from './index-mM-VDYdm.mjs';
|
|
2
2
|
export { Asset, AuditLogEntry, AuditScope, AuditorRegistration, AuditorViewingKey, BatchPaymentRecipient, BatchPaymentRequest, ChainId, Commitment, ComplianceConfig, ComplianceReport, ComplianceRole, CreateBatchProposalParams, CreateComplianceConfigParams, CreateIntentParams, CreatePaymentParams, CreatePaymentProposalParams, CreatePrivateOwnershipParams, CreateTreasuryParams, DefuseAssetId, DisclosedTransaction, DisclosureRequest, FulfillmentCommitment, FulfillmentProof, FulfillmentRequest, FulfillmentResult, FulfillmentStatus, GenerateReportParams, Hash, HexString, WalletAdapter as IWalletAdapter, IntentStatus, NATIVE_TOKENS, OneClickConfig, OneClickDepositMode, OneClickErrorCode, OneClickQuoteRequest, OneClickQuoteResponse, OneClickStatusResponse, OneClickSwapStatus, OneClickSwapType, OwnershipProof, OwnershipVerification, PaymentPurpose, PaymentReceipt, PaymentStatus, PaymentStatusType, PrivacyLevel, PrivateNFTOwnership, PrivateWalletAdapter, ProposalSignature, ProposalStatus, ProposalStatusType, ProposalType, ProveOwnershipParams, Quote, RegisterAuditorParams, ReportData, ReportFormat, ReportStatus, ReportStatusType, ReportType, SIPSolver, SIP_VERSION, ShieldedIntent, ShieldedPayment, Signature, SignedTransaction, Solver, SolverCapabilities, SolverEvent, SolverEventListener, SolverQuote, SolverVisibleIntent, StablecoinSymbol, StealthAddress, StealthAddressRecovery, StealthMetaAddress, SwapRoute, SwapRouteStep, TrackedIntent, TrackedPayment, TransactionReceipt, TreasuryBalance, TreasuryConfig, TreasuryMember, TreasuryProposal, TreasuryRole, TreasuryTransaction, UnsignedTransaction, ViewingKey, WalletAccountChangedEvent, WalletAdapterFactory, WalletChainChangedEvent, WalletConnectEvent, WalletConnectionState, WalletDisconnectEvent, WalletErrorCode, WalletErrorEvent, WalletEvent, WalletEventHandler, WalletEventType, WalletInfo, WalletRegistryEntry, WalletShieldedSendParams, WalletShieldedSendResult, ZKProof, ZcashAccountAddress, ZcashAccountBalance, ZcashAddressInfo, ZcashAddressType, ZcashBlock, ZcashBlockHeader, ZcashBlockchainInfo, ZcashConfig, ZcashErrorCode, ZcashNetwork, ZcashNetworkInfo, ZcashNewAccount, ZcashOperation, ZcashOperationError, ZcashOperationStatus, ZcashOperationTxResult, ZcashPool, ZcashPoolBalance, ZcashPrivacyPolicy, ZcashReceiverType, ZcashSendRecipient, ZcashShieldedSendParams, ZcashUnspentNote, isPrivate, supportsViewingKey } from '@sip-protocol/types';
|
|
3
3
|
import { F as FundingProofParams, V as ValidityProofParams, a as FulfillmentProofParams, P as ProofResult } from './noir-DKfEzWy9.mjs';
|
|
4
4
|
export { N as NoirProviderConfig, O as OracleAttestation, d as ProofFramework, b as ProofGenerationError, c as ProofProvider } from './noir-DKfEzWy9.mjs';
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bH as ATTESTATION_VERSION, az as AptosStealthResult, al as AptosStealthService, bT as AttestationRequest, bU as AttestationResult, dB as AuditReport, dx as AuditorKeyDerivation, dy as AuditorType, cf as BackendCapabilities, e7 as BaseWalletAdapter, dX as BidReceipt, d2 as BitcoinNetwork, cP as BridgeProvider, B as BrowserNoirProvider, t as BrowserNoirProviderConfig, bK as CHAIN_NUMERIC_IDS, aG as COSMOS_CHAIN_PREFIXES, dM as CSVExport, e2 as CastVoteParams, b8 as CommitmentPoint, dt as ComplianceManager, du as ComplianceReporter, dw as ConditionalDisclosure, aH as CosmosChainId, aI as CosmosStealthResult, aB as CosmosStealthService, dY as CreateBidParams, $ as CreateIntentOptions, dq as CreatePaymentOptions, C as CryptoError, bI as DEFAULT_THRESHOLD, bJ as DEFAULT_TOTAL_ORACLES, dC as DecryptedTransaction, eF as DerivationPath, dP as DeriveMultipleParams, dO as DeriveViewingKeyParams, dN as DerivedViewingKey, f6 as EIP1193ConnectInfo, f5 as EIP1193Event, f3 as EIP1193Provider, f7 as EIP1193ProviderRpcError, f4 as EIP1193RequestArguments, f8 as EIP712Domain, f9 as EIP712TypeDefinition, fb as EIP712TypedData, fa as EIP712Types, e0 as EncryptedVote, w as EncryptionNotImplementedError, E as ErrorCode, fh as EthereumAdapterConfig, eC as EthereumChainId, fi as EthereumChainIdType, ff as EthereumChainMetadata, fe as EthereumTokenMetadata, fd as EthereumTransactionReceipt, fc as EthereumTransactionRequest, eq as EthereumWalletAdapter, fg as EthereumWalletName, dE as ExportForRegulatorParams, cG as ExportedViewingKey, dI as FATFExport, dJ as FATFTransaction, dK as FINCENExport, dL as FINCENTransaction, co as FindBestRouteParams, dA as GenerateAuditReportParams, fw as HardwareAccount, fn as HardwareConnectionStatus, fp as HardwareDeviceInfo, eD as HardwareErrorCode, fy as HardwareErrorCodeType, fu as HardwareEthereumTx, ft as HardwareSignRequest, fv as HardwareSignature, fx as HardwareTransport, fq as HardwareWalletConfig, eE as HardwareWalletError, fk as HardwareWalletType, L as IntentBuilder, I as IntentError, dH as Jurisdiction, fr as LedgerConfig, fl as LedgerModel, eL as LedgerWalletAdapter, p as MobileBrowser, q as MobileDeviceInfo, M as MobilePlatform, r as MobileWASMCompatibility, es as MockEthereumAdapter, fj as MockEthereumAdapterConfig, fz as MockHardwareConfig, eP as MockLedgerAdapter, br as MockProofProvider, ei as MockSolanaAdapter, f2 as MockSolanaAdapterConfig, c1 as MockSolver, c3 as MockSolverConfig, eQ as MockTrezorAdapter, e8 as MockWalletAdapter, bX as NEARIntentsAdapter, c0 as NEARIntentsAdapterConfig, cp as NEARIntentsBackend, N as NetworkError, bG as ORACLE_DOMAIN, bW as OneClickClient, bO as OracleAttestationMessage, bL as OracleId, bN as OracleInfo, bR as OracleRegistry, bS as OracleRegistryConfig, bP as OracleSignature, bM as OracleStatus, d3 as PaymentBuilder, dD as PdfExportOptions, b7 as PedersenCommitment, b_ as PreparedSwap, cQ as PriceFeed, aP as PrivacyConfig, e3 as PrivateNFT, d_ as PrivateVoting, K as ProductionQuote, u as ProofError, v as ProofNotImplementedError, P as ProofProgressCallback, cn as QuoteComparison, cE as ReceivedNote, dF as RegulatoryExport, dG as RegulatoryFormat, e1 as RevealedVote, cj as Route, cm as RouteWithQuote, F as SIP, J as SIPConfig, S as SIPError, dd as STABLECOIN_ADDRESSES, de as STABLECOIN_DECIMALS, dc as STABLECOIN_INFO, dW as SealedBid, dU as SealedBidAuction, D as SerializedError, cg as SettlementBackend, ch as SettlementBackendFactory, c7 as SettlementBackendName, ci as SettlementBackendRegistry, c9 as SettlementQuote, c8 as SettlementQuoteParams, c5 as SettlementRegistry, c6 as SettlementRegistryError, cc as SettlementSwapParams, cd as SettlementSwapResult, ca as SettlementSwapRoute, cb as SettlementSwapRouteStep, cF as ShieldedBalance, cC as ShieldedSendParams, cD as ShieldedSendResult, bQ as SignedOracleAttestation, ck as SmartRouter, eZ as SolanaAdapterConfig, eY as SolanaCluster, e_ as SolanaConnection, eT as SolanaPublicKey, e$ as SolanaSendOptions, f1 as SolanaSignature, eU as SolanaTransaction, f0 as SolanaUnsignedTransaction, eV as SolanaVersionedTransaction, eg as SolanaWalletAdapter, eX as SolanaWalletName, eW as SolanaWalletProvider, dr as StablecoinInfo, ak as StealthCurve, aA as SuiStealthResult, as as SuiStealthService, bZ as SwapRequest, b$ as SwapResult, c4 as SwapStatus, ce as SwapStatusResponse, d1 as TapScript, d0 as TaprootOutput, dQ as ThresholdShares, dz as ThresholdViewingKey, dT as TimeLockParams, dR as TimeLockResult, aQ as TransactionData, fo as TransportType, ds as Treasury, fs as TrezorConfig, fm as TrezorModel, eN as TrezorWalletAdapter, dS as UnlockResult, V as ValidationError, bV as VerificationResult, dZ as VerifyBidParams, W as WalletAdapter, e9 as WalletError, cr as ZcashNativeBackend, ct as ZcashNativeBackendConfig, cL as ZcashQuote, cK as ZcashQuoteParams, cu as ZcashRPCClient, cv as ZcashRPCError, cx as ZcashShieldedService, cB as ZcashShieldedServiceConfig, cM as ZcashSwapParams, cN as ZcashSwapResult, cz as ZcashSwapService, cH as ZcashSwapServiceConfig, cI as ZcashSwapSourceChain, cJ as ZcashSwapSourceToken, cO as ZcashSwapStatus, b3 as addBlindings, b1 as addCommitments, bx as addOracle, aq as aptosAddressToAuthKey, Q as attachProofs, ep as base58ToHex, b as browserBytesToHex, h as browserHexToBytes, ao as checkAptosStealthAddress, ac as checkEd25519StealthAddress, f as checkMobileWASMCompatibility, a3 as checkStealthAddress, av as checkSuiStealthAddress, a_ as commit, b0 as commitZero, bE as computeAttestationHash, cW as computeTweakedKey, aR as createCommitment, er as createEthereumAdapter, cY as createKeySpendOnlyOutput, eM as createLedgerAdapter, et as createMockEthereumAdapter, eu as createMockEthereumProvider, eR as createMockLedgerAdapter, ej as createMockSolanaAdapter, el as createMockSolanaConnection, ek as createMockSolanaProvider, c2 as createMockSolver, eS as createMockTrezorAdapter, bY as createNEARIntentsAdapter, cq as createNEARIntentsBackend, bw as createOracleRegistry, e4 as createPrivateOwnership, d$ as createPrivateVoting, H as createProductionSIP, G as createSIP, dV as createSealedBidAuction, O as createShieldedIntent, d4 as createShieldedPayment, cl as createSmartRouter, eh as createSolanaAdapter, cX as createTaprootOutput, eO as createTrezorAdapter, ee as createWalletFactory, cw as createZcashClient, cs as createZcashNativeBackend, cy as createZcashShieldedService, cA as createZcashSwapService, a5 as decodeStealthMetaAddress, c_ as decodeTaprootAddress, d5 as decryptMemo, aN as decryptWithViewing, an as deriveAptosStealthPrivateKey, ab as deriveEd25519StealthPrivateKey, bv as deriveOracleId, a2 as deriveStealthPrivateKey, au as deriveSuiStealthPrivateKey, aL as deriveViewingKey, bD as deserializeAttestationMessage, Z as deserializeIntent, da as deserializePayment, ew as detectEthereumWallets, c as detectMobileBrowser, d as detectMobilePlatform, en as detectSolanaWallets, ap as ed25519PublicKeyToAptosAddress, ag as ed25519PublicKeyToNearAddress, ad as ed25519PublicKeyToSolanaAddress, aw as ed25519PublicKeyToSuiAddress, a4 as encodeStealthMetaAddress, aM as encryptForViewing, eb as featureNotSupportedError, dp as formatStablecoinAmount, ey as fromHex, dn as fromStablecoinUnits, am as generateAptosStealthAddress, b6 as generateBlinding, aD as generateCosmosStealthAddress, aC as generateCosmosStealthMetaAddress, aa as generateEd25519StealthAddress, a9 as generateEd25519StealthMetaAddress, aT as generateIntentId, dv as generatePdfReport, aV as generateRandomBytes, a1 as generateStealthAddress, a0 as generateStealthMetaAddress, at as generateSuiStealthAddress, aK as generateViewingKey, bA as getActiveOracles, eK as getAvailableTransports, g as getBrowserInfo, j as getBrowserVersion, bF as getChainNumericId, dl as getChainsForStablecoin, a8 as getCurveForChain, eB as getDefaultRpcEndpoint, eG as getDerivationPath, A as getErrorMessage, ev as getEthereumProvider, b5 as getGenerators, _ as getIntentSummary, e as getMobileDeviceInfo, k as getOSVersion, db as getPaymentSummary, d8 as getPaymentTimeRemaining, aJ as getPrivacyConfig, aO as getPrivacyDescription, em as getSolanaProvider, df as getStablecoin, di as getStablecoinInfo, dg as getStablecoinsForChain, dj as getSupportedStablecoins, X as getTimeRemaining, cV as getXOnlyPublicKey, bB as hasEnoughOracles, y as hasErrorCode, R as hasRequiredProofs, aU as hash, ez as hexToNumber, i as isBrowser, a7 as isEd25519Chain, U as isExpired, be as isNonNegativeAmount, d7 as isPaymentExpired, ef as isPrivateWalletAdapter, x as isSIPError, dh as isStablecoin, dk as isStablecoinOnChain, l as isTablet, bd as isValidAmount, ar as isValidAptosAddress, b9 as isValidChainId, bh as isValidCompressedPublicKey, aF as isValidCosmosAddress, bi as isValidEd25519PublicKey, bb as isValidHex, bc as isValidHexLength, aj as isValidNearAccountId, ai as isValidNearImplicitAddress, ba as isValidPrivacyLevel, bj as isValidPrivateKey, bk as isValidScalar, bf as isValidSlippage, af as isValidSolanaAddress, bg as isValidStealthMetaAddress, ay as isValidSuiAddress, c$ as isValidTaprootAddress, ah as nearAddressToEd25519PublicKey, eA as normalizeAddress, ax as normalizeSuiAddress, ea as notConnectedError, e5 as proveOwnership, a6 as publicKeyToEthAddress, ed as registerWallet, by as removeOracle, cR as schnorrSign, cT as schnorrSignHex, cS as schnorrVerify, cU as schnorrVerifyHex, aW as secureWipe, aX as secureWipeAll, bC as serializeAttestationMessage, Y as serializeIntent, d9 as serializePayment, bu as signAttestationMessage, ae as solanaAddressToEd25519PublicKey, eo as solanaPublicKeyToHex, aE as stealthKeyToCosmosAddress, b4 as subtractBlindings, b2 as subtractCommitments, a as supportsSharedArrayBuffer, m as supportsTouch, o as supportsWASMBulkMemory, n as supportsWASMSimd, eJ as supportsWebBluetooth, eI as supportsWebHID, eH as supportsWebUSB, s as supportsWebWorkers, cZ as taprootAddress, ex as toHex, dm as toStablecoinUnits, T as trackIntent, d6 as trackPayment, bz as updateOracleStatus, bm as validateAsset, bl as validateCreateIntentParams, bn as validateIntentInput, bo as validateIntentOutput, bq as validateScalar, bp as validateViewingKey, bs as verifyAttestation, aS as verifyCommitment, a$ as verifyOpening, bt as verifyOracleSignature, e6 as verifyOwnership, ec as walletRegistry, aY as withSecureBuffer, aZ as withSecureBufferSync, z as wrapError } from './index-C3N0yyPg.js';
|
|
1
|
+
export { bH as ATTESTATION_VERSION, az as AptosStealthResult, al as AptosStealthService, bT as AttestationRequest, bU as AttestationResult, dB as AuditReport, dx as AuditorKeyDerivation, dy as AuditorType, cf as BackendCapabilities, e7 as BaseWalletAdapter, dX as BidReceipt, d2 as BitcoinNetwork, cP as BridgeProvider, B as BrowserNoirProvider, t as BrowserNoirProviderConfig, bK as CHAIN_NUMERIC_IDS, aG as COSMOS_CHAIN_PREFIXES, dM as CSVExport, e2 as CastVoteParams, b8 as CommitmentPoint, dt as ComplianceManager, du as ComplianceReporter, dw as ConditionalDisclosure, aH as CosmosChainId, aI as CosmosStealthResult, aB as CosmosStealthService, dY as CreateBidParams, $ as CreateIntentOptions, dq as CreatePaymentOptions, C as CryptoError, bI as DEFAULT_THRESHOLD, bJ as DEFAULT_TOTAL_ORACLES, dC as DecryptedTransaction, eF as DerivationPath, dP as DeriveMultipleParams, dO as DeriveViewingKeyParams, dN as DerivedViewingKey, f6 as EIP1193ConnectInfo, f5 as EIP1193Event, f3 as EIP1193Provider, f7 as EIP1193ProviderRpcError, f4 as EIP1193RequestArguments, f8 as EIP712Domain, f9 as EIP712TypeDefinition, fb as EIP712TypedData, fa as EIP712Types, e0 as EncryptedVote, w as EncryptionNotImplementedError, E as ErrorCode, fh as EthereumAdapterConfig, eC as EthereumChainId, fi as EthereumChainIdType, ff as EthereumChainMetadata, fe as EthereumTokenMetadata, fd as EthereumTransactionReceipt, fc as EthereumTransactionRequest, eq as EthereumWalletAdapter, fg as EthereumWalletName, dE as ExportForRegulatorParams, cG as ExportedViewingKey, dI as FATFExport, dJ as FATFTransaction, dK as FINCENExport, dL as FINCENTransaction, co as FindBestRouteParams, dA as GenerateAuditReportParams, fw as HardwareAccount, fn as HardwareConnectionStatus, fp as HardwareDeviceInfo, eD as HardwareErrorCode, fy as HardwareErrorCodeType, fu as HardwareEthereumTx, ft as HardwareSignRequest, fv as HardwareSignature, fx as HardwareTransport, fq as HardwareWalletConfig, eE as HardwareWalletError, fk as HardwareWalletType, L as IntentBuilder, I as IntentError, dH as Jurisdiction, fr as LedgerConfig, fl as LedgerModel, eL as LedgerWalletAdapter, p as MobileBrowser, q as MobileDeviceInfo, M as MobilePlatform, r as MobileWASMCompatibility, es as MockEthereumAdapter, fj as MockEthereumAdapterConfig, fz as MockHardwareConfig, eP as MockLedgerAdapter, br as MockProofProvider, ei as MockSolanaAdapter, f2 as MockSolanaAdapterConfig, c1 as MockSolver, c3 as MockSolverConfig, eQ as MockTrezorAdapter, e8 as MockWalletAdapter, bX as NEARIntentsAdapter, c0 as NEARIntentsAdapterConfig, cp as NEARIntentsBackend, N as NetworkError, bG as ORACLE_DOMAIN, bW as OneClickClient, bO as OracleAttestationMessage, bL as OracleId, bN as OracleInfo, bR as OracleRegistry, bS as OracleRegistryConfig, bP as OracleSignature, bM as OracleStatus, d3 as PaymentBuilder, dD as PdfExportOptions, b7 as PedersenCommitment, b_ as PreparedSwap, cQ as PriceFeed, aP as PrivacyConfig, e3 as PrivateNFT, d_ as PrivateVoting, K as ProductionQuote, u as ProofError, v as ProofNotImplementedError, P as ProofProgressCallback, cn as QuoteComparison, cE as ReceivedNote, dF as RegulatoryExport, dG as RegulatoryFormat, e1 as RevealedVote, cj as Route, cm as RouteWithQuote, F as SIP, J as SIPConfig, S as SIPError, dd as STABLECOIN_ADDRESSES, de as STABLECOIN_DECIMALS, dc as STABLECOIN_INFO, dW as SealedBid, dU as SealedBidAuction, D as SerializedError, cg as SettlementBackend, ch as SettlementBackendFactory, c7 as SettlementBackendName, ci as SettlementBackendRegistry, c9 as SettlementQuote, c8 as SettlementQuoteParams, c5 as SettlementRegistry, c6 as SettlementRegistryError, cc as SettlementSwapParams, cd as SettlementSwapResult, ca as SettlementSwapRoute, cb as SettlementSwapRouteStep, cF as ShieldedBalance, cC as ShieldedSendParams, cD as ShieldedSendResult, bQ as SignedOracleAttestation, ck as SmartRouter, eZ as SolanaAdapterConfig, eY as SolanaCluster, e_ as SolanaConnection, eT as SolanaPublicKey, e$ as SolanaSendOptions, f1 as SolanaSignature, eU as SolanaTransaction, f0 as SolanaUnsignedTransaction, eV as SolanaVersionedTransaction, eg as SolanaWalletAdapter, eX as SolanaWalletName, eW as SolanaWalletProvider, dr as StablecoinInfo, ak as StealthCurve, aA as SuiStealthResult, as as SuiStealthService, bZ as SwapRequest, b$ as SwapResult, c4 as SwapStatus, ce as SwapStatusResponse, d1 as TapScript, d0 as TaprootOutput, dQ as ThresholdShares, dz as ThresholdViewingKey, dT as TimeLockParams, dR as TimeLockResult, aQ as TransactionData, fo as TransportType, ds as Treasury, fs as TrezorConfig, fm as TrezorModel, eN as TrezorWalletAdapter, dS as UnlockResult, V as ValidationError, bV as VerificationResult, dZ as VerifyBidParams, W as WalletAdapter, e9 as WalletError, cr as ZcashNativeBackend, ct as ZcashNativeBackendConfig, cL as ZcashQuote, cK as ZcashQuoteParams, cu as ZcashRPCClient, cv as ZcashRPCError, cx as ZcashShieldedService, cB as ZcashShieldedServiceConfig, cM as ZcashSwapParams, cN as ZcashSwapResult, cz as ZcashSwapService, cH as ZcashSwapServiceConfig, cI as ZcashSwapSourceChain, cJ as ZcashSwapSourceToken, cO as ZcashSwapStatus, b3 as addBlindings, b1 as addCommitments, bx as addOracle, aq as aptosAddressToAuthKey, Q as attachProofs, ep as base58ToHex, b as browserBytesToHex, h as browserHexToBytes, ao as checkAptosStealthAddress, ac as checkEd25519StealthAddress, f as checkMobileWASMCompatibility, a3 as checkStealthAddress, av as checkSuiStealthAddress, a_ as commit, b0 as commitZero, bE as computeAttestationHash, cW as computeTweakedKey, aR as createCommitment, er as createEthereumAdapter, cY as createKeySpendOnlyOutput, eM as createLedgerAdapter, et as createMockEthereumAdapter, eu as createMockEthereumProvider, eR as createMockLedgerAdapter, ej as createMockSolanaAdapter, el as createMockSolanaConnection, ek as createMockSolanaProvider, c2 as createMockSolver, eS as createMockTrezorAdapter, bY as createNEARIntentsAdapter, cq as createNEARIntentsBackend, bw as createOracleRegistry, e4 as createPrivateOwnership, d$ as createPrivateVoting, H as createProductionSIP, G as createSIP, dV as createSealedBidAuction, O as createShieldedIntent, d4 as createShieldedPayment, cl as createSmartRouter, eh as createSolanaAdapter, cX as createTaprootOutput, eO as createTrezorAdapter, ee as createWalletFactory, cw as createZcashClient, cs as createZcashNativeBackend, cy as createZcashShieldedService, cA as createZcashSwapService, a5 as decodeStealthMetaAddress, c_ as decodeTaprootAddress, d5 as decryptMemo, aN as decryptWithViewing, an as deriveAptosStealthPrivateKey, ab as deriveEd25519StealthPrivateKey, bv as deriveOracleId, a2 as deriveStealthPrivateKey, au as deriveSuiStealthPrivateKey, aL as deriveViewingKey, bD as deserializeAttestationMessage, Z as deserializeIntent, da as deserializePayment, ew as detectEthereumWallets, c as detectMobileBrowser, d as detectMobilePlatform, en as detectSolanaWallets, ap as ed25519PublicKeyToAptosAddress, ag as ed25519PublicKeyToNearAddress, ad as ed25519PublicKeyToSolanaAddress, aw as ed25519PublicKeyToSuiAddress, a4 as encodeStealthMetaAddress, aM as encryptForViewing, eb as featureNotSupportedError, dp as formatStablecoinAmount, ey as fromHex, dn as fromStablecoinUnits, am as generateAptosStealthAddress, b6 as generateBlinding, aD as generateCosmosStealthAddress, aC as generateCosmosStealthMetaAddress, aa as generateEd25519StealthAddress, a9 as generateEd25519StealthMetaAddress, aT as generateIntentId, dv as generatePdfReport, aV as generateRandomBytes, a1 as generateStealthAddress, a0 as generateStealthMetaAddress, at as generateSuiStealthAddress, aK as generateViewingKey, bA as getActiveOracles, eK as getAvailableTransports, g as getBrowserInfo, j as getBrowserVersion, bF as getChainNumericId, dl as getChainsForStablecoin, a8 as getCurveForChain, eB as getDefaultRpcEndpoint, eG as getDerivationPath, A as getErrorMessage, ev as getEthereumProvider, b5 as getGenerators, _ as getIntentSummary, e as getMobileDeviceInfo, k as getOSVersion, db as getPaymentSummary, d8 as getPaymentTimeRemaining, aJ as getPrivacyConfig, aO as getPrivacyDescription, em as getSolanaProvider, df as getStablecoin, di as getStablecoinInfo, dg as getStablecoinsForChain, dj as getSupportedStablecoins, X as getTimeRemaining, cV as getXOnlyPublicKey, bB as hasEnoughOracles, y as hasErrorCode, R as hasRequiredProofs, aU as hash, ez as hexToNumber, i as isBrowser, a7 as isEd25519Chain, U as isExpired, be as isNonNegativeAmount, d7 as isPaymentExpired, ef as isPrivateWalletAdapter, x as isSIPError, dh as isStablecoin, dk as isStablecoinOnChain, l as isTablet, bd as isValidAmount, ar as isValidAptosAddress, b9 as isValidChainId, bh as isValidCompressedPublicKey, aF as isValidCosmosAddress, bi as isValidEd25519PublicKey, bb as isValidHex, bc as isValidHexLength, aj as isValidNearAccountId, ai as isValidNearImplicitAddress, ba as isValidPrivacyLevel, bj as isValidPrivateKey, bk as isValidScalar, bf as isValidSlippage, af as isValidSolanaAddress, bg as isValidStealthMetaAddress, ay as isValidSuiAddress, c$ as isValidTaprootAddress, ah as nearAddressToEd25519PublicKey, eA as normalizeAddress, ax as normalizeSuiAddress, ea as notConnectedError, e5 as proveOwnership, a6 as publicKeyToEthAddress, ed as registerWallet, by as removeOracle, cR as schnorrSign, cT as schnorrSignHex, cS as schnorrVerify, cU as schnorrVerifyHex, aW as secureWipe, aX as secureWipeAll, bC as serializeAttestationMessage, Y as serializeIntent, d9 as serializePayment, bu as signAttestationMessage, ae as solanaAddressToEd25519PublicKey, eo as solanaPublicKeyToHex, aE as stealthKeyToCosmosAddress, b4 as subtractBlindings, b2 as subtractCommitments, a as supportsSharedArrayBuffer, m as supportsTouch, o as supportsWASMBulkMemory, n as supportsWASMSimd, eJ as supportsWebBluetooth, eI as supportsWebHID, eH as supportsWebUSB, s as supportsWebWorkers, cZ as taprootAddress, ex as toHex, dm as toStablecoinUnits, T as trackIntent, d6 as trackPayment, bz as updateOracleStatus, bm as validateAsset, bl as validateCreateIntentParams, bn as validateIntentInput, bo as validateIntentOutput, bq as validateScalar, bp as validateViewingKey, bs as verifyAttestation, aS as verifyCommitment, a$ as verifyOpening, bt as verifyOracleSignature, e6 as verifyOwnership, ec as walletRegistry, aY as withSecureBuffer, aZ as withSecureBufferSync, z as wrapError } from './index-BzKgVQ87.js';
|
|
2
2
|
export { Asset, AuditLogEntry, AuditScope, AuditorRegistration, AuditorViewingKey, BatchPaymentRecipient, BatchPaymentRequest, ChainId, Commitment, ComplianceConfig, ComplianceReport, ComplianceRole, CreateBatchProposalParams, CreateComplianceConfigParams, CreateIntentParams, CreatePaymentParams, CreatePaymentProposalParams, CreatePrivateOwnershipParams, CreateTreasuryParams, DefuseAssetId, DisclosedTransaction, DisclosureRequest, FulfillmentCommitment, FulfillmentProof, FulfillmentRequest, FulfillmentResult, FulfillmentStatus, GenerateReportParams, Hash, HexString, WalletAdapter as IWalletAdapter, IntentStatus, NATIVE_TOKENS, OneClickConfig, OneClickDepositMode, OneClickErrorCode, OneClickQuoteRequest, OneClickQuoteResponse, OneClickStatusResponse, OneClickSwapStatus, OneClickSwapType, OwnershipProof, OwnershipVerification, PaymentPurpose, PaymentReceipt, PaymentStatus, PaymentStatusType, PrivacyLevel, PrivateNFTOwnership, PrivateWalletAdapter, ProposalSignature, ProposalStatus, ProposalStatusType, ProposalType, ProveOwnershipParams, Quote, RegisterAuditorParams, ReportData, ReportFormat, ReportStatus, ReportStatusType, ReportType, SIPSolver, SIP_VERSION, ShieldedIntent, ShieldedPayment, Signature, SignedTransaction, Solver, SolverCapabilities, SolverEvent, SolverEventListener, SolverQuote, SolverVisibleIntent, StablecoinSymbol, StealthAddress, StealthAddressRecovery, StealthMetaAddress, SwapRoute, SwapRouteStep, TrackedIntent, TrackedPayment, TransactionReceipt, TreasuryBalance, TreasuryConfig, TreasuryMember, TreasuryProposal, TreasuryRole, TreasuryTransaction, UnsignedTransaction, ViewingKey, WalletAccountChangedEvent, WalletAdapterFactory, WalletChainChangedEvent, WalletConnectEvent, WalletConnectionState, WalletDisconnectEvent, WalletErrorCode, WalletErrorEvent, WalletEvent, WalletEventHandler, WalletEventType, WalletInfo, WalletRegistryEntry, WalletShieldedSendParams, WalletShieldedSendResult, ZKProof, ZcashAccountAddress, ZcashAccountBalance, ZcashAddressInfo, ZcashAddressType, ZcashBlock, ZcashBlockHeader, ZcashBlockchainInfo, ZcashConfig, ZcashErrorCode, ZcashNetwork, ZcashNetworkInfo, ZcashNewAccount, ZcashOperation, ZcashOperationError, ZcashOperationStatus, ZcashOperationTxResult, ZcashPool, ZcashPoolBalance, ZcashPrivacyPolicy, ZcashReceiverType, ZcashSendRecipient, ZcashShieldedSendParams, ZcashUnspentNote, isPrivate, supportsViewingKey } from '@sip-protocol/types';
|
|
3
3
|
import { F as FundingProofParams, V as ValidityProofParams, a as FulfillmentProofParams, P as ProofResult } from './noir-DKfEzWy9.js';
|
|
4
4
|
export { N as NoirProviderConfig, O as OracleAttestation, d as ProofFramework, b as ProofGenerationError, c as ProofProvider } from './noir-DKfEzWy9.js';
|
package/dist/browser.js
CHANGED
|
@@ -21683,6 +21683,23 @@ var BrowserNoirProvider = class _BrowserNoirProvider {
|
|
|
21683
21683
|
pubKeyY = Array.from(params.senderPublicKey.y);
|
|
21684
21684
|
} else {
|
|
21685
21685
|
const senderSecretBytes = this.ensureUint8Array(params.senderSecret);
|
|
21686
|
+
const hasNonZero = senderSecretBytes.some((b) => b !== 0);
|
|
21687
|
+
if (!hasNonZero && senderSecretBytes.length === 32) {
|
|
21688
|
+
const inputType = Object.prototype.toString.call(params.senderSecret);
|
|
21689
|
+
const inputKeys = Object.keys(params.senderSecret).slice(0, 5);
|
|
21690
|
+
const inputLength = "length" in params.senderSecret ? params.senderSecret.length : "N/A";
|
|
21691
|
+
console.error(
|
|
21692
|
+
"[BrowserNoirProvider] senderSecret appears to be all zeros after ensureUint8Array!",
|
|
21693
|
+
"\n Input type:",
|
|
21694
|
+
inputType,
|
|
21695
|
+
"\n Input length:",
|
|
21696
|
+
inputLength,
|
|
21697
|
+
"\n Sample keys:",
|
|
21698
|
+
inputKeys,
|
|
21699
|
+
"\n First few raw values:",
|
|
21700
|
+
[0, 1, 2, 3].map((i) => params.senderSecret[i])
|
|
21701
|
+
);
|
|
21702
|
+
}
|
|
21686
21703
|
const coords = this.getPublicKeyCoordinates(senderSecretBytes);
|
|
21687
21704
|
pubKeyX = coords.x;
|
|
21688
21705
|
pubKeyY = coords.y;
|
|
@@ -21989,14 +22006,36 @@ var BrowserNoirProvider = class _BrowserNoirProvider {
|
|
|
21989
22006
|
}
|
|
21990
22007
|
/**
|
|
21991
22008
|
* Ensure input is a proper Uint8Array (handles serialization from bundlers)
|
|
21992
|
-
*
|
|
22009
|
+
*
|
|
22010
|
+
* When Uint8Array passes through Next.js/bundlers, several issues can occur:
|
|
22011
|
+
* 1. Object becomes {0: x, 1: y, ...} (plain object with numeric keys)
|
|
22012
|
+
* 2. ArrayBuffer gets detached, making Array.from() return empty
|
|
22013
|
+
* 3. instanceof checks fail across different execution contexts
|
|
22014
|
+
*
|
|
22015
|
+
* This implementation ALWAYS reads bytes by index to be robust against all cases.
|
|
21993
22016
|
*/
|
|
21994
22017
|
ensureUint8Array(input) {
|
|
21995
|
-
|
|
21996
|
-
|
|
22018
|
+
let length = 0;
|
|
22019
|
+
if (typeof input === "object" && input !== null) {
|
|
22020
|
+
if ("length" in input && typeof input.length === "number") {
|
|
22021
|
+
length = input.length;
|
|
22022
|
+
} else if ("byteLength" in input && typeof input.byteLength === "number") {
|
|
22023
|
+
length = input.byteLength;
|
|
22024
|
+
} else {
|
|
22025
|
+
const numericKeys = Object.keys(input).filter((k) => /^\d+$/.test(k));
|
|
22026
|
+
length = numericKeys.length > 0 ? Math.max(...numericKeys.map(Number)) + 1 : 0;
|
|
22027
|
+
}
|
|
21997
22028
|
}
|
|
21998
|
-
const
|
|
21999
|
-
|
|
22029
|
+
const result = new Uint8Array(length);
|
|
22030
|
+
for (let i = 0; i < length; i++) {
|
|
22031
|
+
const val = input[i];
|
|
22032
|
+
if (typeof val === "number") {
|
|
22033
|
+
result[i] = val & 255;
|
|
22034
|
+
} else if (val !== void 0 && val !== null) {
|
|
22035
|
+
result[i] = Number(val) & 255;
|
|
22036
|
+
}
|
|
22037
|
+
}
|
|
22038
|
+
return result;
|
|
22000
22039
|
}
|
|
22001
22040
|
hexToField(hex) {
|
|
22002
22041
|
const h = hex.startsWith("0x") ? hex.slice(2) : hex;
|
package/dist/browser.mjs
CHANGED
|
@@ -696,6 +696,23 @@ var BrowserNoirProvider = class _BrowserNoirProvider {
|
|
|
696
696
|
pubKeyY = Array.from(params.senderPublicKey.y);
|
|
697
697
|
} else {
|
|
698
698
|
const senderSecretBytes = this.ensureUint8Array(params.senderSecret);
|
|
699
|
+
const hasNonZero = senderSecretBytes.some((b) => b !== 0);
|
|
700
|
+
if (!hasNonZero && senderSecretBytes.length === 32) {
|
|
701
|
+
const inputType = Object.prototype.toString.call(params.senderSecret);
|
|
702
|
+
const inputKeys = Object.keys(params.senderSecret).slice(0, 5);
|
|
703
|
+
const inputLength = "length" in params.senderSecret ? params.senderSecret.length : "N/A";
|
|
704
|
+
console.error(
|
|
705
|
+
"[BrowserNoirProvider] senderSecret appears to be all zeros after ensureUint8Array!",
|
|
706
|
+
"\n Input type:",
|
|
707
|
+
inputType,
|
|
708
|
+
"\n Input length:",
|
|
709
|
+
inputLength,
|
|
710
|
+
"\n Sample keys:",
|
|
711
|
+
inputKeys,
|
|
712
|
+
"\n First few raw values:",
|
|
713
|
+
[0, 1, 2, 3].map((i) => params.senderSecret[i])
|
|
714
|
+
);
|
|
715
|
+
}
|
|
699
716
|
const coords = this.getPublicKeyCoordinates(senderSecretBytes);
|
|
700
717
|
pubKeyX = coords.x;
|
|
701
718
|
pubKeyY = coords.y;
|
|
@@ -1002,14 +1019,36 @@ var BrowserNoirProvider = class _BrowserNoirProvider {
|
|
|
1002
1019
|
}
|
|
1003
1020
|
/**
|
|
1004
1021
|
* Ensure input is a proper Uint8Array (handles serialization from bundlers)
|
|
1005
|
-
*
|
|
1022
|
+
*
|
|
1023
|
+
* When Uint8Array passes through Next.js/bundlers, several issues can occur:
|
|
1024
|
+
* 1. Object becomes {0: x, 1: y, ...} (plain object with numeric keys)
|
|
1025
|
+
* 2. ArrayBuffer gets detached, making Array.from() return empty
|
|
1026
|
+
* 3. instanceof checks fail across different execution contexts
|
|
1027
|
+
*
|
|
1028
|
+
* This implementation ALWAYS reads bytes by index to be robust against all cases.
|
|
1006
1029
|
*/
|
|
1007
1030
|
ensureUint8Array(input) {
|
|
1008
|
-
|
|
1009
|
-
|
|
1031
|
+
let length = 0;
|
|
1032
|
+
if (typeof input === "object" && input !== null) {
|
|
1033
|
+
if ("length" in input && typeof input.length === "number") {
|
|
1034
|
+
length = input.length;
|
|
1035
|
+
} else if ("byteLength" in input && typeof input.byteLength === "number") {
|
|
1036
|
+
length = input.byteLength;
|
|
1037
|
+
} else {
|
|
1038
|
+
const numericKeys = Object.keys(input).filter((k) => /^\d+$/.test(k));
|
|
1039
|
+
length = numericKeys.length > 0 ? Math.max(...numericKeys.map(Number)) + 1 : 0;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
const result = new Uint8Array(length);
|
|
1043
|
+
for (let i = 0; i < length; i++) {
|
|
1044
|
+
const val = input[i];
|
|
1045
|
+
if (typeof val === "number") {
|
|
1046
|
+
result[i] = val & 255;
|
|
1047
|
+
} else if (val !== void 0 && val !== null) {
|
|
1048
|
+
result[i] = Number(val) & 255;
|
|
1049
|
+
}
|
|
1010
1050
|
}
|
|
1011
|
-
|
|
1012
|
-
return new Uint8Array(values);
|
|
1051
|
+
return result;
|
|
1013
1052
|
}
|
|
1014
1053
|
hexToField(hex) {
|
|
1015
1054
|
const h = hex.startsWith("0x") ? hex.slice(2) : hex;
|
|
@@ -774,7 +774,13 @@ declare class BrowserNoirProvider implements ProofProvider {
|
|
|
774
774
|
private bigintToBytes;
|
|
775
775
|
/**
|
|
776
776
|
* Ensure input is a proper Uint8Array (handles serialization from bundlers)
|
|
777
|
-
*
|
|
777
|
+
*
|
|
778
|
+
* When Uint8Array passes through Next.js/bundlers, several issues can occur:
|
|
779
|
+
* 1. Object becomes {0: x, 1: y, ...} (plain object with numeric keys)
|
|
780
|
+
* 2. ArrayBuffer gets detached, making Array.from() return empty
|
|
781
|
+
* 3. instanceof checks fail across different execution contexts
|
|
782
|
+
*
|
|
783
|
+
* This implementation ALWAYS reads bytes by index to be robust against all cases.
|
|
778
784
|
*/
|
|
779
785
|
private ensureUint8Array;
|
|
780
786
|
private hexToField;
|
|
@@ -774,7 +774,13 @@ declare class BrowserNoirProvider implements ProofProvider {
|
|
|
774
774
|
private bigintToBytes;
|
|
775
775
|
/**
|
|
776
776
|
* Ensure input is a proper Uint8Array (handles serialization from bundlers)
|
|
777
|
-
*
|
|
777
|
+
*
|
|
778
|
+
* When Uint8Array passes through Next.js/bundlers, several issues can occur:
|
|
779
|
+
* 1. Object becomes {0: x, 1: y, ...} (plain object with numeric keys)
|
|
780
|
+
* 2. ArrayBuffer gets detached, making Array.from() return empty
|
|
781
|
+
* 3. instanceof checks fail across different execution contexts
|
|
782
|
+
*
|
|
783
|
+
* This implementation ALWAYS reads bytes by index to be robust against all cases.
|
|
778
784
|
*/
|
|
779
785
|
private ensureUint8Array;
|
|
780
786
|
private hexToField;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { bH as ATTESTATION_VERSION, az as AptosStealthResult, al as AptosStealthService, bT as AttestationRequest, bU as AttestationResult, dB as AuditReport, dx as AuditorKeyDerivation, dy as AuditorType, cf as BackendCapabilities, e7 as BaseWalletAdapter, dX as BidReceipt, d2 as BitcoinNetwork, cP as BridgeProvider, t as BrowserNoirProviderConfig, bK as CHAIN_NUMERIC_IDS, aG as COSMOS_CHAIN_PREFIXES, dM as CSVExport, e2 as CastVoteParams, b8 as CommitmentPoint, dt as ComplianceManager, du as ComplianceReporter, dw as ConditionalDisclosure, aH as CosmosChainId, aI as CosmosStealthResult, aB as CosmosStealthService, dY as CreateBidParams, $ as CreateIntentOptions, dq as CreatePaymentOptions, C as CryptoError, bI as DEFAULT_THRESHOLD, bJ as DEFAULT_TOTAL_ORACLES, dC as DecryptedTransaction, eF as DerivationPath, dP as DeriveMultipleParams, dO as DeriveViewingKeyParams, dN as DerivedViewingKey, f6 as EIP1193ConnectInfo, f5 as EIP1193Event, f3 as EIP1193Provider, f7 as EIP1193ProviderRpcError, f4 as EIP1193RequestArguments, f8 as EIP712Domain, f9 as EIP712TypeDefinition, fb as EIP712TypedData, fa as EIP712Types, e0 as EncryptedVote, w as EncryptionNotImplementedError, E as ErrorCode, fh as EthereumAdapterConfig, eC as EthereumChainId, fi as EthereumChainIdType, ff as EthereumChainMetadata, fe as EthereumTokenMetadata, fd as EthereumTransactionReceipt, fc as EthereumTransactionRequest, eq as EthereumWalletAdapter, fg as EthereumWalletName, dE as ExportForRegulatorParams, cG as ExportedViewingKey, dI as FATFExport, dJ as FATFTransaction, dK as FINCENExport, dL as FINCENTransaction, co as FindBestRouteParams, dA as GenerateAuditReportParams, fw as HardwareAccount, fn as HardwareConnectionStatus, fp as HardwareDeviceInfo, eD as HardwareErrorCode, fy as HardwareErrorCodeType, fu as HardwareEthereumTx, ft as HardwareSignRequest, fv as HardwareSignature, fx as HardwareTransport, fq as HardwareWalletConfig, eE as HardwareWalletError, fk as HardwareWalletType, L as IntentBuilder, I as IntentError, dH as Jurisdiction, fr as LedgerConfig, fl as LedgerModel, eL as LedgerWalletAdapter, es as MockEthereumAdapter, fj as MockEthereumAdapterConfig, fz as MockHardwareConfig, eP as MockLedgerAdapter, br as MockProofProvider, ei as MockSolanaAdapter, f2 as MockSolanaAdapterConfig, c1 as MockSolver, c3 as MockSolverConfig, eQ as MockTrezorAdapter, e8 as MockWalletAdapter, bX as NEARIntentsAdapter, c0 as NEARIntentsAdapterConfig, cp as NEARIntentsBackend, N as NetworkError, bG as ORACLE_DOMAIN, bW as OneClickClient, bO as OracleAttestationMessage, bL as OracleId, bN as OracleInfo, bR as OracleRegistry, bS as OracleRegistryConfig, bP as OracleSignature, bM as OracleStatus, d3 as PaymentBuilder, dD as PdfExportOptions, b7 as PedersenCommitment, b_ as PreparedSwap, cQ as PriceFeed, aP as PrivacyConfig, e3 as PrivateNFT, d_ as PrivateVoting, K as ProductionQuote, u as ProofError, v as ProofNotImplementedError, P as ProofProgressCallback, cn as QuoteComparison, cE as ReceivedNote, dF as RegulatoryExport, dG as RegulatoryFormat, e1 as RevealedVote, cj as Route, cm as RouteWithQuote, F as SIP, J as SIPConfig, S as SIPError, dd as STABLECOIN_ADDRESSES, de as STABLECOIN_DECIMALS, dc as STABLECOIN_INFO, dW as SealedBid, dU as SealedBidAuction, D as SerializedError, cg as SettlementBackend, ch as SettlementBackendFactory, c7 as SettlementBackendName, ci as SettlementBackendRegistry, c9 as SettlementQuote, c8 as SettlementQuoteParams, c5 as SettlementRegistry, c6 as SettlementRegistryError, cc as SettlementSwapParams, cd as SettlementSwapResult, ca as SettlementSwapRoute, cb as SettlementSwapRouteStep, cF as ShieldedBalance, cC as ShieldedSendParams, cD as ShieldedSendResult, bQ as SignedOracleAttestation, ck as SmartRouter, eZ as SolanaAdapterConfig, eY as SolanaCluster, e_ as SolanaConnection, eT as SolanaPublicKey, e$ as SolanaSendOptions, f1 as SolanaSignature, eU as SolanaTransaction, f0 as SolanaUnsignedTransaction, eV as SolanaVersionedTransaction, eg as SolanaWalletAdapter, eX as SolanaWalletName, eW as SolanaWalletProvider, dr as StablecoinInfo, ak as StealthCurve, aA as SuiStealthResult, as as SuiStealthService, bZ as SwapRequest, b$ as SwapResult, c4 as SwapStatus, ce as SwapStatusResponse, d1 as TapScript, d0 as TaprootOutput, dQ as ThresholdShares, dz as ThresholdViewingKey, dT as TimeLockParams, dR as TimeLockResult, aQ as TransactionData, fo as TransportType, ds as Treasury, fs as TrezorConfig, fm as TrezorModel, eN as TrezorWalletAdapter, dS as UnlockResult, V as ValidationError, bV as VerificationResult, dZ as VerifyBidParams, W as WalletAdapter, e9 as WalletError, cr as ZcashNativeBackend, ct as ZcashNativeBackendConfig, cL as ZcashQuote, cK as ZcashQuoteParams, cu as ZcashRPCClient, cv as ZcashRPCError, cx as ZcashShieldedService, cB as ZcashShieldedServiceConfig, cM as ZcashSwapParams, cN as ZcashSwapResult, cz as ZcashSwapService, cH as ZcashSwapServiceConfig, cI as ZcashSwapSourceChain, cJ as ZcashSwapSourceToken, cO as ZcashSwapStatus, b3 as addBlindings, b1 as addCommitments, bx as addOracle, aq as aptosAddressToAuthKey, Q as attachProofs, ep as base58ToHex, b as browserBytesToHex, h as browserHexToBytes, ao as checkAptosStealthAddress, ac as checkEd25519StealthAddress, a3 as checkStealthAddress, av as checkSuiStealthAddress, a_ as commit, b0 as commitZero, bE as computeAttestationHash, cW as computeTweakedKey, aR as createCommitment, er as createEthereumAdapter, cY as createKeySpendOnlyOutput, eM as createLedgerAdapter, et as createMockEthereumAdapter, eu as createMockEthereumProvider, eR as createMockLedgerAdapter, ej as createMockSolanaAdapter, el as createMockSolanaConnection, ek as createMockSolanaProvider, c2 as createMockSolver, eS as createMockTrezorAdapter, bY as createNEARIntentsAdapter, cq as createNEARIntentsBackend, bw as createOracleRegistry, e4 as createPrivateOwnership, d$ as createPrivateVoting, H as createProductionSIP, G as createSIP, dV as createSealedBidAuction, O as createShieldedIntent, d4 as createShieldedPayment, cl as createSmartRouter, eh as createSolanaAdapter, cX as createTaprootOutput, eO as createTrezorAdapter, ee as createWalletFactory, cw as createZcashClient, cs as createZcashNativeBackend, cy as createZcashShieldedService, cA as createZcashSwapService, a5 as decodeStealthMetaAddress, c_ as decodeTaprootAddress, d5 as decryptMemo, aN as decryptWithViewing, an as deriveAptosStealthPrivateKey, ab as deriveEd25519StealthPrivateKey, bv as deriveOracleId, a2 as deriveStealthPrivateKey, au as deriveSuiStealthPrivateKey, aL as deriveViewingKey, bD as deserializeAttestationMessage, Z as deserializeIntent, da as deserializePayment, ew as detectEthereumWallets, en as detectSolanaWallets, ap as ed25519PublicKeyToAptosAddress, ag as ed25519PublicKeyToNearAddress, ad as ed25519PublicKeyToSolanaAddress, aw as ed25519PublicKeyToSuiAddress, a4 as encodeStealthMetaAddress, aM as encryptForViewing, eb as featureNotSupportedError, dp as formatStablecoinAmount, ey as fromHex, dn as fromStablecoinUnits, am as generateAptosStealthAddress, b6 as generateBlinding, aD as generateCosmosStealthAddress, aC as generateCosmosStealthMetaAddress, aa as generateEd25519StealthAddress, a9 as generateEd25519StealthMetaAddress, aT as generateIntentId, dv as generatePdfReport, aV as generateRandomBytes, a1 as generateStealthAddress, a0 as generateStealthMetaAddress, at as generateSuiStealthAddress, aK as generateViewingKey, bA as getActiveOracles, eK as getAvailableTransports, g as getBrowserInfo, bF as getChainNumericId, dl as getChainsForStablecoin, a8 as getCurveForChain, eB as getDefaultRpcEndpoint, eG as getDerivationPath, A as getErrorMessage, ev as getEthereumProvider, b5 as getGenerators, _ as getIntentSummary, db as getPaymentSummary, d8 as getPaymentTimeRemaining, aJ as getPrivacyConfig, aO as getPrivacyDescription, em as getSolanaProvider, df as getStablecoin, di as getStablecoinInfo, dg as getStablecoinsForChain, dj as getSupportedStablecoins, X as getTimeRemaining, cV as getXOnlyPublicKey, bB as hasEnoughOracles, y as hasErrorCode, R as hasRequiredProofs, aU as hash, ez as hexToNumber, i as isBrowser, a7 as isEd25519Chain, U as isExpired, be as isNonNegativeAmount, d7 as isPaymentExpired, ef as isPrivateWalletAdapter, x as isSIPError, dh as isStablecoin, dk as isStablecoinOnChain, bd as isValidAmount, ar as isValidAptosAddress, b9 as isValidChainId, bh as isValidCompressedPublicKey, aF as isValidCosmosAddress, bi as isValidEd25519PublicKey, bb as isValidHex, bc as isValidHexLength, aj as isValidNearAccountId, ai as isValidNearImplicitAddress, ba as isValidPrivacyLevel, bj as isValidPrivateKey, bk as isValidScalar, bf as isValidSlippage, af as isValidSolanaAddress, bg as isValidStealthMetaAddress, ay as isValidSuiAddress, c$ as isValidTaprootAddress, ah as nearAddressToEd25519PublicKey, eA as normalizeAddress, ax as normalizeSuiAddress, ea as notConnectedError, e5 as proveOwnership, a6 as publicKeyToEthAddress, ed as registerWallet, by as removeOracle, cR as schnorrSign, cT as schnorrSignHex, cS as schnorrVerify, cU as schnorrVerifyHex, aW as secureWipe, aX as secureWipeAll, bC as serializeAttestationMessage, Y as serializeIntent, d9 as serializePayment, bu as signAttestationMessage, ae as solanaAddressToEd25519PublicKey, eo as solanaPublicKeyToHex, aE as stealthKeyToCosmosAddress, b4 as subtractBlindings, b2 as subtractCommitments, a as supportsSharedArrayBuffer, eJ as supportsWebBluetooth, eI as supportsWebHID, eH as supportsWebUSB, s as supportsWebWorkers, cZ as taprootAddress, ex as toHex, dm as toStablecoinUnits, T as trackIntent, d6 as trackPayment, bz as updateOracleStatus, bm as validateAsset, bl as validateCreateIntentParams, bn as validateIntentInput, bo as validateIntentOutput, bq as validateScalar, bp as validateViewingKey, bs as verifyAttestation, aS as verifyCommitment, a$ as verifyOpening, bt as verifyOracleSignature, e6 as verifyOwnership, ec as walletRegistry, aY as withSecureBuffer, aZ as withSecureBufferSync, z as wrapError } from './index-DXxpjdTW.mjs';
|
|
1
|
+
export { bH as ATTESTATION_VERSION, az as AptosStealthResult, al as AptosStealthService, bT as AttestationRequest, bU as AttestationResult, dB as AuditReport, dx as AuditorKeyDerivation, dy as AuditorType, cf as BackendCapabilities, e7 as BaseWalletAdapter, dX as BidReceipt, d2 as BitcoinNetwork, cP as BridgeProvider, t as BrowserNoirProviderConfig, bK as CHAIN_NUMERIC_IDS, aG as COSMOS_CHAIN_PREFIXES, dM as CSVExport, e2 as CastVoteParams, b8 as CommitmentPoint, dt as ComplianceManager, du as ComplianceReporter, dw as ConditionalDisclosure, aH as CosmosChainId, aI as CosmosStealthResult, aB as CosmosStealthService, dY as CreateBidParams, $ as CreateIntentOptions, dq as CreatePaymentOptions, C as CryptoError, bI as DEFAULT_THRESHOLD, bJ as DEFAULT_TOTAL_ORACLES, dC as DecryptedTransaction, eF as DerivationPath, dP as DeriveMultipleParams, dO as DeriveViewingKeyParams, dN as DerivedViewingKey, f6 as EIP1193ConnectInfo, f5 as EIP1193Event, f3 as EIP1193Provider, f7 as EIP1193ProviderRpcError, f4 as EIP1193RequestArguments, f8 as EIP712Domain, f9 as EIP712TypeDefinition, fb as EIP712TypedData, fa as EIP712Types, e0 as EncryptedVote, w as EncryptionNotImplementedError, E as ErrorCode, fh as EthereumAdapterConfig, eC as EthereumChainId, fi as EthereumChainIdType, ff as EthereumChainMetadata, fe as EthereumTokenMetadata, fd as EthereumTransactionReceipt, fc as EthereumTransactionRequest, eq as EthereumWalletAdapter, fg as EthereumWalletName, dE as ExportForRegulatorParams, cG as ExportedViewingKey, dI as FATFExport, dJ as FATFTransaction, dK as FINCENExport, dL as FINCENTransaction, co as FindBestRouteParams, dA as GenerateAuditReportParams, fw as HardwareAccount, fn as HardwareConnectionStatus, fp as HardwareDeviceInfo, eD as HardwareErrorCode, fy as HardwareErrorCodeType, fu as HardwareEthereumTx, ft as HardwareSignRequest, fv as HardwareSignature, fx as HardwareTransport, fq as HardwareWalletConfig, eE as HardwareWalletError, fk as HardwareWalletType, L as IntentBuilder, I as IntentError, dH as Jurisdiction, fr as LedgerConfig, fl as LedgerModel, eL as LedgerWalletAdapter, es as MockEthereumAdapter, fj as MockEthereumAdapterConfig, fz as MockHardwareConfig, eP as MockLedgerAdapter, br as MockProofProvider, ei as MockSolanaAdapter, f2 as MockSolanaAdapterConfig, c1 as MockSolver, c3 as MockSolverConfig, eQ as MockTrezorAdapter, e8 as MockWalletAdapter, bX as NEARIntentsAdapter, c0 as NEARIntentsAdapterConfig, cp as NEARIntentsBackend, N as NetworkError, bG as ORACLE_DOMAIN, bW as OneClickClient, bO as OracleAttestationMessage, bL as OracleId, bN as OracleInfo, bR as OracleRegistry, bS as OracleRegistryConfig, bP as OracleSignature, bM as OracleStatus, d3 as PaymentBuilder, dD as PdfExportOptions, b7 as PedersenCommitment, b_ as PreparedSwap, cQ as PriceFeed, aP as PrivacyConfig, e3 as PrivateNFT, d_ as PrivateVoting, K as ProductionQuote, u as ProofError, v as ProofNotImplementedError, P as ProofProgressCallback, cn as QuoteComparison, cE as ReceivedNote, dF as RegulatoryExport, dG as RegulatoryFormat, e1 as RevealedVote, cj as Route, cm as RouteWithQuote, F as SIP, J as SIPConfig, S as SIPError, dd as STABLECOIN_ADDRESSES, de as STABLECOIN_DECIMALS, dc as STABLECOIN_INFO, dW as SealedBid, dU as SealedBidAuction, D as SerializedError, cg as SettlementBackend, ch as SettlementBackendFactory, c7 as SettlementBackendName, ci as SettlementBackendRegistry, c9 as SettlementQuote, c8 as SettlementQuoteParams, c5 as SettlementRegistry, c6 as SettlementRegistryError, cc as SettlementSwapParams, cd as SettlementSwapResult, ca as SettlementSwapRoute, cb as SettlementSwapRouteStep, cF as ShieldedBalance, cC as ShieldedSendParams, cD as ShieldedSendResult, bQ as SignedOracleAttestation, ck as SmartRouter, eZ as SolanaAdapterConfig, eY as SolanaCluster, e_ as SolanaConnection, eT as SolanaPublicKey, e$ as SolanaSendOptions, f1 as SolanaSignature, eU as SolanaTransaction, f0 as SolanaUnsignedTransaction, eV as SolanaVersionedTransaction, eg as SolanaWalletAdapter, eX as SolanaWalletName, eW as SolanaWalletProvider, dr as StablecoinInfo, ak as StealthCurve, aA as SuiStealthResult, as as SuiStealthService, bZ as SwapRequest, b$ as SwapResult, c4 as SwapStatus, ce as SwapStatusResponse, d1 as TapScript, d0 as TaprootOutput, dQ as ThresholdShares, dz as ThresholdViewingKey, dT as TimeLockParams, dR as TimeLockResult, aQ as TransactionData, fo as TransportType, ds as Treasury, fs as TrezorConfig, fm as TrezorModel, eN as TrezorWalletAdapter, dS as UnlockResult, V as ValidationError, bV as VerificationResult, dZ as VerifyBidParams, W as WalletAdapter, e9 as WalletError, cr as ZcashNativeBackend, ct as ZcashNativeBackendConfig, cL as ZcashQuote, cK as ZcashQuoteParams, cu as ZcashRPCClient, cv as ZcashRPCError, cx as ZcashShieldedService, cB as ZcashShieldedServiceConfig, cM as ZcashSwapParams, cN as ZcashSwapResult, cz as ZcashSwapService, cH as ZcashSwapServiceConfig, cI as ZcashSwapSourceChain, cJ as ZcashSwapSourceToken, cO as ZcashSwapStatus, b3 as addBlindings, b1 as addCommitments, bx as addOracle, aq as aptosAddressToAuthKey, Q as attachProofs, ep as base58ToHex, b as browserBytesToHex, h as browserHexToBytes, ao as checkAptosStealthAddress, ac as checkEd25519StealthAddress, a3 as checkStealthAddress, av as checkSuiStealthAddress, a_ as commit, b0 as commitZero, bE as computeAttestationHash, cW as computeTweakedKey, aR as createCommitment, er as createEthereumAdapter, cY as createKeySpendOnlyOutput, eM as createLedgerAdapter, et as createMockEthereumAdapter, eu as createMockEthereumProvider, eR as createMockLedgerAdapter, ej as createMockSolanaAdapter, el as createMockSolanaConnection, ek as createMockSolanaProvider, c2 as createMockSolver, eS as createMockTrezorAdapter, bY as createNEARIntentsAdapter, cq as createNEARIntentsBackend, bw as createOracleRegistry, e4 as createPrivateOwnership, d$ as createPrivateVoting, H as createProductionSIP, G as createSIP, dV as createSealedBidAuction, O as createShieldedIntent, d4 as createShieldedPayment, cl as createSmartRouter, eh as createSolanaAdapter, cX as createTaprootOutput, eO as createTrezorAdapter, ee as createWalletFactory, cw as createZcashClient, cs as createZcashNativeBackend, cy as createZcashShieldedService, cA as createZcashSwapService, a5 as decodeStealthMetaAddress, c_ as decodeTaprootAddress, d5 as decryptMemo, aN as decryptWithViewing, an as deriveAptosStealthPrivateKey, ab as deriveEd25519StealthPrivateKey, bv as deriveOracleId, a2 as deriveStealthPrivateKey, au as deriveSuiStealthPrivateKey, aL as deriveViewingKey, bD as deserializeAttestationMessage, Z as deserializeIntent, da as deserializePayment, ew as detectEthereumWallets, en as detectSolanaWallets, ap as ed25519PublicKeyToAptosAddress, ag as ed25519PublicKeyToNearAddress, ad as ed25519PublicKeyToSolanaAddress, aw as ed25519PublicKeyToSuiAddress, a4 as encodeStealthMetaAddress, aM as encryptForViewing, eb as featureNotSupportedError, dp as formatStablecoinAmount, ey as fromHex, dn as fromStablecoinUnits, am as generateAptosStealthAddress, b6 as generateBlinding, aD as generateCosmosStealthAddress, aC as generateCosmosStealthMetaAddress, aa as generateEd25519StealthAddress, a9 as generateEd25519StealthMetaAddress, aT as generateIntentId, dv as generatePdfReport, aV as generateRandomBytes, a1 as generateStealthAddress, a0 as generateStealthMetaAddress, at as generateSuiStealthAddress, aK as generateViewingKey, bA as getActiveOracles, eK as getAvailableTransports, g as getBrowserInfo, bF as getChainNumericId, dl as getChainsForStablecoin, a8 as getCurveForChain, eB as getDefaultRpcEndpoint, eG as getDerivationPath, A as getErrorMessage, ev as getEthereumProvider, b5 as getGenerators, _ as getIntentSummary, db as getPaymentSummary, d8 as getPaymentTimeRemaining, aJ as getPrivacyConfig, aO as getPrivacyDescription, em as getSolanaProvider, df as getStablecoin, di as getStablecoinInfo, dg as getStablecoinsForChain, dj as getSupportedStablecoins, X as getTimeRemaining, cV as getXOnlyPublicKey, bB as hasEnoughOracles, y as hasErrorCode, R as hasRequiredProofs, aU as hash, ez as hexToNumber, i as isBrowser, a7 as isEd25519Chain, U as isExpired, be as isNonNegativeAmount, d7 as isPaymentExpired, ef as isPrivateWalletAdapter, x as isSIPError, dh as isStablecoin, dk as isStablecoinOnChain, bd as isValidAmount, ar as isValidAptosAddress, b9 as isValidChainId, bh as isValidCompressedPublicKey, aF as isValidCosmosAddress, bi as isValidEd25519PublicKey, bb as isValidHex, bc as isValidHexLength, aj as isValidNearAccountId, ai as isValidNearImplicitAddress, ba as isValidPrivacyLevel, bj as isValidPrivateKey, bk as isValidScalar, bf as isValidSlippage, af as isValidSolanaAddress, bg as isValidStealthMetaAddress, ay as isValidSuiAddress, c$ as isValidTaprootAddress, ah as nearAddressToEd25519PublicKey, eA as normalizeAddress, ax as normalizeSuiAddress, ea as notConnectedError, e5 as proveOwnership, a6 as publicKeyToEthAddress, ed as registerWallet, by as removeOracle, cR as schnorrSign, cT as schnorrSignHex, cS as schnorrVerify, cU as schnorrVerifyHex, aW as secureWipe, aX as secureWipeAll, bC as serializeAttestationMessage, Y as serializeIntent, d9 as serializePayment, bu as signAttestationMessage, ae as solanaAddressToEd25519PublicKey, eo as solanaPublicKeyToHex, aE as stealthKeyToCosmosAddress, b4 as subtractBlindings, b2 as subtractCommitments, a as supportsSharedArrayBuffer, eJ as supportsWebBluetooth, eI as supportsWebHID, eH as supportsWebUSB, s as supportsWebWorkers, cZ as taprootAddress, ex as toHex, dm as toStablecoinUnits, T as trackIntent, d6 as trackPayment, bz as updateOracleStatus, bm as validateAsset, bl as validateCreateIntentParams, bn as validateIntentInput, bo as validateIntentOutput, bq as validateScalar, bp as validateViewingKey, bs as verifyAttestation, aS as verifyCommitment, a$ as verifyOpening, bt as verifyOracleSignature, e6 as verifyOwnership, ec as walletRegistry, aY as withSecureBuffer, aZ as withSecureBufferSync, z as wrapError } from './index-mM-VDYdm.mjs';
|
|
2
2
|
export { Asset, AuditLogEntry, AuditScope, AuditorRegistration, AuditorViewingKey, BatchPaymentRecipient, BatchPaymentRequest, ChainId, Commitment, ComplianceConfig, ComplianceReport, ComplianceRole, CreateBatchProposalParams, CreateComplianceConfigParams, CreateIntentParams, CreatePaymentParams, CreatePaymentProposalParams, CreatePrivateOwnershipParams, CreateTreasuryParams, DefuseAssetId, DisclosedTransaction, DisclosureRequest, FulfillmentCommitment, FulfillmentProof, FulfillmentRequest, FulfillmentResult, FulfillmentStatus, GenerateReportParams, Hash, HexString, WalletAdapter as IWalletAdapter, IntentStatus, NATIVE_TOKENS, OneClickConfig, OneClickDepositMode, OneClickErrorCode, OneClickQuoteRequest, OneClickQuoteResponse, OneClickStatusResponse, OneClickSwapStatus, OneClickSwapType, OwnershipProof, OwnershipVerification, PaymentPurpose, PaymentReceipt, PaymentStatus, PaymentStatusType, PrivacyLevel, PrivateNFTOwnership, PrivateWalletAdapter, ProposalSignature, ProposalStatus, ProposalStatusType, ProposalType, ProveOwnershipParams, Quote, RegisterAuditorParams, ReportData, ReportFormat, ReportStatus, ReportStatusType, ReportType, SIPSolver, SIP_VERSION, ShieldedIntent, ShieldedPayment, Signature, SignedTransaction, Solver, SolverCapabilities, SolverEvent, SolverEventListener, SolverQuote, SolverVisibleIntent, StablecoinSymbol, StealthAddress, StealthAddressRecovery, StealthMetaAddress, SwapRoute, SwapRouteStep, TrackedIntent, TrackedPayment, TransactionReceipt, TreasuryBalance, TreasuryConfig, TreasuryMember, TreasuryProposal, TreasuryRole, TreasuryTransaction, UnsignedTransaction, ViewingKey, WalletAccountChangedEvent, WalletAdapterFactory, WalletChainChangedEvent, WalletConnectEvent, WalletConnectionState, WalletDisconnectEvent, WalletErrorCode, WalletErrorEvent, WalletEvent, WalletEventHandler, WalletEventType, WalletInfo, WalletRegistryEntry, WalletShieldedSendParams, WalletShieldedSendResult, ZKProof, ZcashAccountAddress, ZcashAccountBalance, ZcashAddressInfo, ZcashAddressType, ZcashBlock, ZcashBlockHeader, ZcashBlockchainInfo, ZcashConfig, ZcashErrorCode, ZcashNetwork, ZcashNetworkInfo, ZcashNewAccount, ZcashOperation, ZcashOperationError, ZcashOperationStatus, ZcashOperationTxResult, ZcashPool, ZcashPoolBalance, ZcashPrivacyPolicy, ZcashReceiverType, ZcashSendRecipient, ZcashShieldedSendParams, ZcashUnspentNote, isPrivate, supportsViewingKey } from '@sip-protocol/types';
|
|
3
3
|
export { a as FulfillmentProofParams, F as FundingProofParams, N as NoirProviderConfig, O as OracleAttestation, d as ProofFramework, b as ProofGenerationError, c as ProofProvider, P as ProofResult, V as ValidityProofParams } from './noir-DKfEzWy9.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { bH as ATTESTATION_VERSION, az as AptosStealthResult, al as AptosStealthService, bT as AttestationRequest, bU as AttestationResult, dB as AuditReport, dx as AuditorKeyDerivation, dy as AuditorType, cf as BackendCapabilities, e7 as BaseWalletAdapter, dX as BidReceipt, d2 as BitcoinNetwork, cP as BridgeProvider, t as BrowserNoirProviderConfig, bK as CHAIN_NUMERIC_IDS, aG as COSMOS_CHAIN_PREFIXES, dM as CSVExport, e2 as CastVoteParams, b8 as CommitmentPoint, dt as ComplianceManager, du as ComplianceReporter, dw as ConditionalDisclosure, aH as CosmosChainId, aI as CosmosStealthResult, aB as CosmosStealthService, dY as CreateBidParams, $ as CreateIntentOptions, dq as CreatePaymentOptions, C as CryptoError, bI as DEFAULT_THRESHOLD, bJ as DEFAULT_TOTAL_ORACLES, dC as DecryptedTransaction, eF as DerivationPath, dP as DeriveMultipleParams, dO as DeriveViewingKeyParams, dN as DerivedViewingKey, f6 as EIP1193ConnectInfo, f5 as EIP1193Event, f3 as EIP1193Provider, f7 as EIP1193ProviderRpcError, f4 as EIP1193RequestArguments, f8 as EIP712Domain, f9 as EIP712TypeDefinition, fb as EIP712TypedData, fa as EIP712Types, e0 as EncryptedVote, w as EncryptionNotImplementedError, E as ErrorCode, fh as EthereumAdapterConfig, eC as EthereumChainId, fi as EthereumChainIdType, ff as EthereumChainMetadata, fe as EthereumTokenMetadata, fd as EthereumTransactionReceipt, fc as EthereumTransactionRequest, eq as EthereumWalletAdapter, fg as EthereumWalletName, dE as ExportForRegulatorParams, cG as ExportedViewingKey, dI as FATFExport, dJ as FATFTransaction, dK as FINCENExport, dL as FINCENTransaction, co as FindBestRouteParams, dA as GenerateAuditReportParams, fw as HardwareAccount, fn as HardwareConnectionStatus, fp as HardwareDeviceInfo, eD as HardwareErrorCode, fy as HardwareErrorCodeType, fu as HardwareEthereumTx, ft as HardwareSignRequest, fv as HardwareSignature, fx as HardwareTransport, fq as HardwareWalletConfig, eE as HardwareWalletError, fk as HardwareWalletType, L as IntentBuilder, I as IntentError, dH as Jurisdiction, fr as LedgerConfig, fl as LedgerModel, eL as LedgerWalletAdapter, es as MockEthereumAdapter, fj as MockEthereumAdapterConfig, fz as MockHardwareConfig, eP as MockLedgerAdapter, br as MockProofProvider, ei as MockSolanaAdapter, f2 as MockSolanaAdapterConfig, c1 as MockSolver, c3 as MockSolverConfig, eQ as MockTrezorAdapter, e8 as MockWalletAdapter, bX as NEARIntentsAdapter, c0 as NEARIntentsAdapterConfig, cp as NEARIntentsBackend, N as NetworkError, bG as ORACLE_DOMAIN, bW as OneClickClient, bO as OracleAttestationMessage, bL as OracleId, bN as OracleInfo, bR as OracleRegistry, bS as OracleRegistryConfig, bP as OracleSignature, bM as OracleStatus, d3 as PaymentBuilder, dD as PdfExportOptions, b7 as PedersenCommitment, b_ as PreparedSwap, cQ as PriceFeed, aP as PrivacyConfig, e3 as PrivateNFT, d_ as PrivateVoting, K as ProductionQuote, u as ProofError, v as ProofNotImplementedError, P as ProofProgressCallback, cn as QuoteComparison, cE as ReceivedNote, dF as RegulatoryExport, dG as RegulatoryFormat, e1 as RevealedVote, cj as Route, cm as RouteWithQuote, F as SIP, J as SIPConfig, S as SIPError, dd as STABLECOIN_ADDRESSES, de as STABLECOIN_DECIMALS, dc as STABLECOIN_INFO, dW as SealedBid, dU as SealedBidAuction, D as SerializedError, cg as SettlementBackend, ch as SettlementBackendFactory, c7 as SettlementBackendName, ci as SettlementBackendRegistry, c9 as SettlementQuote, c8 as SettlementQuoteParams, c5 as SettlementRegistry, c6 as SettlementRegistryError, cc as SettlementSwapParams, cd as SettlementSwapResult, ca as SettlementSwapRoute, cb as SettlementSwapRouteStep, cF as ShieldedBalance, cC as ShieldedSendParams, cD as ShieldedSendResult, bQ as SignedOracleAttestation, ck as SmartRouter, eZ as SolanaAdapterConfig, eY as SolanaCluster, e_ as SolanaConnection, eT as SolanaPublicKey, e$ as SolanaSendOptions, f1 as SolanaSignature, eU as SolanaTransaction, f0 as SolanaUnsignedTransaction, eV as SolanaVersionedTransaction, eg as SolanaWalletAdapter, eX as SolanaWalletName, eW as SolanaWalletProvider, dr as StablecoinInfo, ak as StealthCurve, aA as SuiStealthResult, as as SuiStealthService, bZ as SwapRequest, b$ as SwapResult, c4 as SwapStatus, ce as SwapStatusResponse, d1 as TapScript, d0 as TaprootOutput, dQ as ThresholdShares, dz as ThresholdViewingKey, dT as TimeLockParams, dR as TimeLockResult, aQ as TransactionData, fo as TransportType, ds as Treasury, fs as TrezorConfig, fm as TrezorModel, eN as TrezorWalletAdapter, dS as UnlockResult, V as ValidationError, bV as VerificationResult, dZ as VerifyBidParams, W as WalletAdapter, e9 as WalletError, cr as ZcashNativeBackend, ct as ZcashNativeBackendConfig, cL as ZcashQuote, cK as ZcashQuoteParams, cu as ZcashRPCClient, cv as ZcashRPCError, cx as ZcashShieldedService, cB as ZcashShieldedServiceConfig, cM as ZcashSwapParams, cN as ZcashSwapResult, cz as ZcashSwapService, cH as ZcashSwapServiceConfig, cI as ZcashSwapSourceChain, cJ as ZcashSwapSourceToken, cO as ZcashSwapStatus, b3 as addBlindings, b1 as addCommitments, bx as addOracle, aq as aptosAddressToAuthKey, Q as attachProofs, ep as base58ToHex, b as browserBytesToHex, h as browserHexToBytes, ao as checkAptosStealthAddress, ac as checkEd25519StealthAddress, a3 as checkStealthAddress, av as checkSuiStealthAddress, a_ as commit, b0 as commitZero, bE as computeAttestationHash, cW as computeTweakedKey, aR as createCommitment, er as createEthereumAdapter, cY as createKeySpendOnlyOutput, eM as createLedgerAdapter, et as createMockEthereumAdapter, eu as createMockEthereumProvider, eR as createMockLedgerAdapter, ej as createMockSolanaAdapter, el as createMockSolanaConnection, ek as createMockSolanaProvider, c2 as createMockSolver, eS as createMockTrezorAdapter, bY as createNEARIntentsAdapter, cq as createNEARIntentsBackend, bw as createOracleRegistry, e4 as createPrivateOwnership, d$ as createPrivateVoting, H as createProductionSIP, G as createSIP, dV as createSealedBidAuction, O as createShieldedIntent, d4 as createShieldedPayment, cl as createSmartRouter, eh as createSolanaAdapter, cX as createTaprootOutput, eO as createTrezorAdapter, ee as createWalletFactory, cw as createZcashClient, cs as createZcashNativeBackend, cy as createZcashShieldedService, cA as createZcashSwapService, a5 as decodeStealthMetaAddress, c_ as decodeTaprootAddress, d5 as decryptMemo, aN as decryptWithViewing, an as deriveAptosStealthPrivateKey, ab as deriveEd25519StealthPrivateKey, bv as deriveOracleId, a2 as deriveStealthPrivateKey, au as deriveSuiStealthPrivateKey, aL as deriveViewingKey, bD as deserializeAttestationMessage, Z as deserializeIntent, da as deserializePayment, ew as detectEthereumWallets, en as detectSolanaWallets, ap as ed25519PublicKeyToAptosAddress, ag as ed25519PublicKeyToNearAddress, ad as ed25519PublicKeyToSolanaAddress, aw as ed25519PublicKeyToSuiAddress, a4 as encodeStealthMetaAddress, aM as encryptForViewing, eb as featureNotSupportedError, dp as formatStablecoinAmount, ey as fromHex, dn as fromStablecoinUnits, am as generateAptosStealthAddress, b6 as generateBlinding, aD as generateCosmosStealthAddress, aC as generateCosmosStealthMetaAddress, aa as generateEd25519StealthAddress, a9 as generateEd25519StealthMetaAddress, aT as generateIntentId, dv as generatePdfReport, aV as generateRandomBytes, a1 as generateStealthAddress, a0 as generateStealthMetaAddress, at as generateSuiStealthAddress, aK as generateViewingKey, bA as getActiveOracles, eK as getAvailableTransports, g as getBrowserInfo, bF as getChainNumericId, dl as getChainsForStablecoin, a8 as getCurveForChain, eB as getDefaultRpcEndpoint, eG as getDerivationPath, A as getErrorMessage, ev as getEthereumProvider, b5 as getGenerators, _ as getIntentSummary, db as getPaymentSummary, d8 as getPaymentTimeRemaining, aJ as getPrivacyConfig, aO as getPrivacyDescription, em as getSolanaProvider, df as getStablecoin, di as getStablecoinInfo, dg as getStablecoinsForChain, dj as getSupportedStablecoins, X as getTimeRemaining, cV as getXOnlyPublicKey, bB as hasEnoughOracles, y as hasErrorCode, R as hasRequiredProofs, aU as hash, ez as hexToNumber, i as isBrowser, a7 as isEd25519Chain, U as isExpired, be as isNonNegativeAmount, d7 as isPaymentExpired, ef as isPrivateWalletAdapter, x as isSIPError, dh as isStablecoin, dk as isStablecoinOnChain, bd as isValidAmount, ar as isValidAptosAddress, b9 as isValidChainId, bh as isValidCompressedPublicKey, aF as isValidCosmosAddress, bi as isValidEd25519PublicKey, bb as isValidHex, bc as isValidHexLength, aj as isValidNearAccountId, ai as isValidNearImplicitAddress, ba as isValidPrivacyLevel, bj as isValidPrivateKey, bk as isValidScalar, bf as isValidSlippage, af as isValidSolanaAddress, bg as isValidStealthMetaAddress, ay as isValidSuiAddress, c$ as isValidTaprootAddress, ah as nearAddressToEd25519PublicKey, eA as normalizeAddress, ax as normalizeSuiAddress, ea as notConnectedError, e5 as proveOwnership, a6 as publicKeyToEthAddress, ed as registerWallet, by as removeOracle, cR as schnorrSign, cT as schnorrSignHex, cS as schnorrVerify, cU as schnorrVerifyHex, aW as secureWipe, aX as secureWipeAll, bC as serializeAttestationMessage, Y as serializeIntent, d9 as serializePayment, bu as signAttestationMessage, ae as solanaAddressToEd25519PublicKey, eo as solanaPublicKeyToHex, aE as stealthKeyToCosmosAddress, b4 as subtractBlindings, b2 as subtractCommitments, a as supportsSharedArrayBuffer, eJ as supportsWebBluetooth, eI as supportsWebHID, eH as supportsWebUSB, s as supportsWebWorkers, cZ as taprootAddress, ex as toHex, dm as toStablecoinUnits, T as trackIntent, d6 as trackPayment, bz as updateOracleStatus, bm as validateAsset, bl as validateCreateIntentParams, bn as validateIntentInput, bo as validateIntentOutput, bq as validateScalar, bp as validateViewingKey, bs as verifyAttestation, aS as verifyCommitment, a$ as verifyOpening, bt as verifyOracleSignature, e6 as verifyOwnership, ec as walletRegistry, aY as withSecureBuffer, aZ as withSecureBufferSync, z as wrapError } from './index-C3N0yyPg.js';
|
|
1
|
+
export { bH as ATTESTATION_VERSION, az as AptosStealthResult, al as AptosStealthService, bT as AttestationRequest, bU as AttestationResult, dB as AuditReport, dx as AuditorKeyDerivation, dy as AuditorType, cf as BackendCapabilities, e7 as BaseWalletAdapter, dX as BidReceipt, d2 as BitcoinNetwork, cP as BridgeProvider, t as BrowserNoirProviderConfig, bK as CHAIN_NUMERIC_IDS, aG as COSMOS_CHAIN_PREFIXES, dM as CSVExport, e2 as CastVoteParams, b8 as CommitmentPoint, dt as ComplianceManager, du as ComplianceReporter, dw as ConditionalDisclosure, aH as CosmosChainId, aI as CosmosStealthResult, aB as CosmosStealthService, dY as CreateBidParams, $ as CreateIntentOptions, dq as CreatePaymentOptions, C as CryptoError, bI as DEFAULT_THRESHOLD, bJ as DEFAULT_TOTAL_ORACLES, dC as DecryptedTransaction, eF as DerivationPath, dP as DeriveMultipleParams, dO as DeriveViewingKeyParams, dN as DerivedViewingKey, f6 as EIP1193ConnectInfo, f5 as EIP1193Event, f3 as EIP1193Provider, f7 as EIP1193ProviderRpcError, f4 as EIP1193RequestArguments, f8 as EIP712Domain, f9 as EIP712TypeDefinition, fb as EIP712TypedData, fa as EIP712Types, e0 as EncryptedVote, w as EncryptionNotImplementedError, E as ErrorCode, fh as EthereumAdapterConfig, eC as EthereumChainId, fi as EthereumChainIdType, ff as EthereumChainMetadata, fe as EthereumTokenMetadata, fd as EthereumTransactionReceipt, fc as EthereumTransactionRequest, eq as EthereumWalletAdapter, fg as EthereumWalletName, dE as ExportForRegulatorParams, cG as ExportedViewingKey, dI as FATFExport, dJ as FATFTransaction, dK as FINCENExport, dL as FINCENTransaction, co as FindBestRouteParams, dA as GenerateAuditReportParams, fw as HardwareAccount, fn as HardwareConnectionStatus, fp as HardwareDeviceInfo, eD as HardwareErrorCode, fy as HardwareErrorCodeType, fu as HardwareEthereumTx, ft as HardwareSignRequest, fv as HardwareSignature, fx as HardwareTransport, fq as HardwareWalletConfig, eE as HardwareWalletError, fk as HardwareWalletType, L as IntentBuilder, I as IntentError, dH as Jurisdiction, fr as LedgerConfig, fl as LedgerModel, eL as LedgerWalletAdapter, es as MockEthereumAdapter, fj as MockEthereumAdapterConfig, fz as MockHardwareConfig, eP as MockLedgerAdapter, br as MockProofProvider, ei as MockSolanaAdapter, f2 as MockSolanaAdapterConfig, c1 as MockSolver, c3 as MockSolverConfig, eQ as MockTrezorAdapter, e8 as MockWalletAdapter, bX as NEARIntentsAdapter, c0 as NEARIntentsAdapterConfig, cp as NEARIntentsBackend, N as NetworkError, bG as ORACLE_DOMAIN, bW as OneClickClient, bO as OracleAttestationMessage, bL as OracleId, bN as OracleInfo, bR as OracleRegistry, bS as OracleRegistryConfig, bP as OracleSignature, bM as OracleStatus, d3 as PaymentBuilder, dD as PdfExportOptions, b7 as PedersenCommitment, b_ as PreparedSwap, cQ as PriceFeed, aP as PrivacyConfig, e3 as PrivateNFT, d_ as PrivateVoting, K as ProductionQuote, u as ProofError, v as ProofNotImplementedError, P as ProofProgressCallback, cn as QuoteComparison, cE as ReceivedNote, dF as RegulatoryExport, dG as RegulatoryFormat, e1 as RevealedVote, cj as Route, cm as RouteWithQuote, F as SIP, J as SIPConfig, S as SIPError, dd as STABLECOIN_ADDRESSES, de as STABLECOIN_DECIMALS, dc as STABLECOIN_INFO, dW as SealedBid, dU as SealedBidAuction, D as SerializedError, cg as SettlementBackend, ch as SettlementBackendFactory, c7 as SettlementBackendName, ci as SettlementBackendRegistry, c9 as SettlementQuote, c8 as SettlementQuoteParams, c5 as SettlementRegistry, c6 as SettlementRegistryError, cc as SettlementSwapParams, cd as SettlementSwapResult, ca as SettlementSwapRoute, cb as SettlementSwapRouteStep, cF as ShieldedBalance, cC as ShieldedSendParams, cD as ShieldedSendResult, bQ as SignedOracleAttestation, ck as SmartRouter, eZ as SolanaAdapterConfig, eY as SolanaCluster, e_ as SolanaConnection, eT as SolanaPublicKey, e$ as SolanaSendOptions, f1 as SolanaSignature, eU as SolanaTransaction, f0 as SolanaUnsignedTransaction, eV as SolanaVersionedTransaction, eg as SolanaWalletAdapter, eX as SolanaWalletName, eW as SolanaWalletProvider, dr as StablecoinInfo, ak as StealthCurve, aA as SuiStealthResult, as as SuiStealthService, bZ as SwapRequest, b$ as SwapResult, c4 as SwapStatus, ce as SwapStatusResponse, d1 as TapScript, d0 as TaprootOutput, dQ as ThresholdShares, dz as ThresholdViewingKey, dT as TimeLockParams, dR as TimeLockResult, aQ as TransactionData, fo as TransportType, ds as Treasury, fs as TrezorConfig, fm as TrezorModel, eN as TrezorWalletAdapter, dS as UnlockResult, V as ValidationError, bV as VerificationResult, dZ as VerifyBidParams, W as WalletAdapter, e9 as WalletError, cr as ZcashNativeBackend, ct as ZcashNativeBackendConfig, cL as ZcashQuote, cK as ZcashQuoteParams, cu as ZcashRPCClient, cv as ZcashRPCError, cx as ZcashShieldedService, cB as ZcashShieldedServiceConfig, cM as ZcashSwapParams, cN as ZcashSwapResult, cz as ZcashSwapService, cH as ZcashSwapServiceConfig, cI as ZcashSwapSourceChain, cJ as ZcashSwapSourceToken, cO as ZcashSwapStatus, b3 as addBlindings, b1 as addCommitments, bx as addOracle, aq as aptosAddressToAuthKey, Q as attachProofs, ep as base58ToHex, b as browserBytesToHex, h as browserHexToBytes, ao as checkAptosStealthAddress, ac as checkEd25519StealthAddress, a3 as checkStealthAddress, av as checkSuiStealthAddress, a_ as commit, b0 as commitZero, bE as computeAttestationHash, cW as computeTweakedKey, aR as createCommitment, er as createEthereumAdapter, cY as createKeySpendOnlyOutput, eM as createLedgerAdapter, et as createMockEthereumAdapter, eu as createMockEthereumProvider, eR as createMockLedgerAdapter, ej as createMockSolanaAdapter, el as createMockSolanaConnection, ek as createMockSolanaProvider, c2 as createMockSolver, eS as createMockTrezorAdapter, bY as createNEARIntentsAdapter, cq as createNEARIntentsBackend, bw as createOracleRegistry, e4 as createPrivateOwnership, d$ as createPrivateVoting, H as createProductionSIP, G as createSIP, dV as createSealedBidAuction, O as createShieldedIntent, d4 as createShieldedPayment, cl as createSmartRouter, eh as createSolanaAdapter, cX as createTaprootOutput, eO as createTrezorAdapter, ee as createWalletFactory, cw as createZcashClient, cs as createZcashNativeBackend, cy as createZcashShieldedService, cA as createZcashSwapService, a5 as decodeStealthMetaAddress, c_ as decodeTaprootAddress, d5 as decryptMemo, aN as decryptWithViewing, an as deriveAptosStealthPrivateKey, ab as deriveEd25519StealthPrivateKey, bv as deriveOracleId, a2 as deriveStealthPrivateKey, au as deriveSuiStealthPrivateKey, aL as deriveViewingKey, bD as deserializeAttestationMessage, Z as deserializeIntent, da as deserializePayment, ew as detectEthereumWallets, en as detectSolanaWallets, ap as ed25519PublicKeyToAptosAddress, ag as ed25519PublicKeyToNearAddress, ad as ed25519PublicKeyToSolanaAddress, aw as ed25519PublicKeyToSuiAddress, a4 as encodeStealthMetaAddress, aM as encryptForViewing, eb as featureNotSupportedError, dp as formatStablecoinAmount, ey as fromHex, dn as fromStablecoinUnits, am as generateAptosStealthAddress, b6 as generateBlinding, aD as generateCosmosStealthAddress, aC as generateCosmosStealthMetaAddress, aa as generateEd25519StealthAddress, a9 as generateEd25519StealthMetaAddress, aT as generateIntentId, dv as generatePdfReport, aV as generateRandomBytes, a1 as generateStealthAddress, a0 as generateStealthMetaAddress, at as generateSuiStealthAddress, aK as generateViewingKey, bA as getActiveOracles, eK as getAvailableTransports, g as getBrowserInfo, bF as getChainNumericId, dl as getChainsForStablecoin, a8 as getCurveForChain, eB as getDefaultRpcEndpoint, eG as getDerivationPath, A as getErrorMessage, ev as getEthereumProvider, b5 as getGenerators, _ as getIntentSummary, db as getPaymentSummary, d8 as getPaymentTimeRemaining, aJ as getPrivacyConfig, aO as getPrivacyDescription, em as getSolanaProvider, df as getStablecoin, di as getStablecoinInfo, dg as getStablecoinsForChain, dj as getSupportedStablecoins, X as getTimeRemaining, cV as getXOnlyPublicKey, bB as hasEnoughOracles, y as hasErrorCode, R as hasRequiredProofs, aU as hash, ez as hexToNumber, i as isBrowser, a7 as isEd25519Chain, U as isExpired, be as isNonNegativeAmount, d7 as isPaymentExpired, ef as isPrivateWalletAdapter, x as isSIPError, dh as isStablecoin, dk as isStablecoinOnChain, bd as isValidAmount, ar as isValidAptosAddress, b9 as isValidChainId, bh as isValidCompressedPublicKey, aF as isValidCosmosAddress, bi as isValidEd25519PublicKey, bb as isValidHex, bc as isValidHexLength, aj as isValidNearAccountId, ai as isValidNearImplicitAddress, ba as isValidPrivacyLevel, bj as isValidPrivateKey, bk as isValidScalar, bf as isValidSlippage, af as isValidSolanaAddress, bg as isValidStealthMetaAddress, ay as isValidSuiAddress, c$ as isValidTaprootAddress, ah as nearAddressToEd25519PublicKey, eA as normalizeAddress, ax as normalizeSuiAddress, ea as notConnectedError, e5 as proveOwnership, a6 as publicKeyToEthAddress, ed as registerWallet, by as removeOracle, cR as schnorrSign, cT as schnorrSignHex, cS as schnorrVerify, cU as schnorrVerifyHex, aW as secureWipe, aX as secureWipeAll, bC as serializeAttestationMessage, Y as serializeIntent, d9 as serializePayment, bu as signAttestationMessage, ae as solanaAddressToEd25519PublicKey, eo as solanaPublicKeyToHex, aE as stealthKeyToCosmosAddress, b4 as subtractBlindings, b2 as subtractCommitments, a as supportsSharedArrayBuffer, eJ as supportsWebBluetooth, eI as supportsWebHID, eH as supportsWebUSB, s as supportsWebWorkers, cZ as taprootAddress, ex as toHex, dm as toStablecoinUnits, T as trackIntent, d6 as trackPayment, bz as updateOracleStatus, bm as validateAsset, bl as validateCreateIntentParams, bn as validateIntentInput, bo as validateIntentOutput, bq as validateScalar, bp as validateViewingKey, bs as verifyAttestation, aS as verifyCommitment, a$ as verifyOpening, bt as verifyOracleSignature, e6 as verifyOwnership, ec as walletRegistry, aY as withSecureBuffer, aZ as withSecureBufferSync, z as wrapError } from './index-BzKgVQ87.js';
|
|
2
2
|
export { Asset, AuditLogEntry, AuditScope, AuditorRegistration, AuditorViewingKey, BatchPaymentRecipient, BatchPaymentRequest, ChainId, Commitment, ComplianceConfig, ComplianceReport, ComplianceRole, CreateBatchProposalParams, CreateComplianceConfigParams, CreateIntentParams, CreatePaymentParams, CreatePaymentProposalParams, CreatePrivateOwnershipParams, CreateTreasuryParams, DefuseAssetId, DisclosedTransaction, DisclosureRequest, FulfillmentCommitment, FulfillmentProof, FulfillmentRequest, FulfillmentResult, FulfillmentStatus, GenerateReportParams, Hash, HexString, WalletAdapter as IWalletAdapter, IntentStatus, NATIVE_TOKENS, OneClickConfig, OneClickDepositMode, OneClickErrorCode, OneClickQuoteRequest, OneClickQuoteResponse, OneClickStatusResponse, OneClickSwapStatus, OneClickSwapType, OwnershipProof, OwnershipVerification, PaymentPurpose, PaymentReceipt, PaymentStatus, PaymentStatusType, PrivacyLevel, PrivateNFTOwnership, PrivateWalletAdapter, ProposalSignature, ProposalStatus, ProposalStatusType, ProposalType, ProveOwnershipParams, Quote, RegisterAuditorParams, ReportData, ReportFormat, ReportStatus, ReportStatusType, ReportType, SIPSolver, SIP_VERSION, ShieldedIntent, ShieldedPayment, Signature, SignedTransaction, Solver, SolverCapabilities, SolverEvent, SolverEventListener, SolverQuote, SolverVisibleIntent, StablecoinSymbol, StealthAddress, StealthAddressRecovery, StealthMetaAddress, SwapRoute, SwapRouteStep, TrackedIntent, TrackedPayment, TransactionReceipt, TreasuryBalance, TreasuryConfig, TreasuryMember, TreasuryProposal, TreasuryRole, TreasuryTransaction, UnsignedTransaction, ViewingKey, WalletAccountChangedEvent, WalletAdapterFactory, WalletChainChangedEvent, WalletConnectEvent, WalletConnectionState, WalletDisconnectEvent, WalletErrorCode, WalletErrorEvent, WalletEvent, WalletEventHandler, WalletEventType, WalletInfo, WalletRegistryEntry, WalletShieldedSendParams, WalletShieldedSendResult, ZKProof, ZcashAccountAddress, ZcashAccountBalance, ZcashAddressInfo, ZcashAddressType, ZcashBlock, ZcashBlockHeader, ZcashBlockchainInfo, ZcashConfig, ZcashErrorCode, ZcashNetwork, ZcashNetworkInfo, ZcashNewAccount, ZcashOperation, ZcashOperationError, ZcashOperationStatus, ZcashOperationTxResult, ZcashPool, ZcashPoolBalance, ZcashPrivacyPolicy, ZcashReceiverType, ZcashSendRecipient, ZcashShieldedSendParams, ZcashUnspentNote, isPrivate, supportsViewingKey } from '@sip-protocol/types';
|
|
3
3
|
export { a as FulfillmentProofParams, F as FundingProofParams, N as NoirProviderConfig, O as OracleAttestation, d as ProofFramework, b as ProofGenerationError, c as ProofProvider, P as ProofResult, V as ValidityProofParams } from './noir-DKfEzWy9.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sip-protocol/sdk",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.17",
|
|
4
4
|
"description": "Core SDK for Shielded Intents Protocol - Privacy layer for cross-chain transactions",
|
|
5
5
|
"author": "SIP Protocol <hello@sip-protocol.org>",
|
|
6
6
|
"homepage": "https://sip-protocol.org",
|
package/src/proofs/browser.ts
CHANGED
|
@@ -684,6 +684,24 @@ export class BrowserNoirProvider implements ProofProvider {
|
|
|
684
684
|
} else {
|
|
685
685
|
// Ensure senderSecret is a proper Uint8Array (handles bundler serialization)
|
|
686
686
|
const senderSecretBytes = this.ensureUint8Array(params.senderSecret)
|
|
687
|
+
|
|
688
|
+
// Debug: Check if bytes were read correctly
|
|
689
|
+
const hasNonZero = senderSecretBytes.some((b) => b !== 0)
|
|
690
|
+
if (!hasNonZero && senderSecretBytes.length === 32) {
|
|
691
|
+
// Log detailed debug info to help diagnose serialization issues
|
|
692
|
+
const inputType = Object.prototype.toString.call(params.senderSecret)
|
|
693
|
+
const inputKeys = Object.keys(params.senderSecret as object).slice(0, 5)
|
|
694
|
+
const inputLength =
|
|
695
|
+
'length' in (params.senderSecret as object) ? (params.senderSecret as { length: number }).length : 'N/A'
|
|
696
|
+
console.error(
|
|
697
|
+
'[BrowserNoirProvider] senderSecret appears to be all zeros after ensureUint8Array!',
|
|
698
|
+
'\n Input type:', inputType,
|
|
699
|
+
'\n Input length:', inputLength,
|
|
700
|
+
'\n Sample keys:', inputKeys,
|
|
701
|
+
'\n First few raw values:', [0, 1, 2, 3].map((i) => (params.senderSecret as Record<number, unknown>)[i])
|
|
702
|
+
)
|
|
703
|
+
}
|
|
704
|
+
|
|
687
705
|
const coords = this.getPublicKeyCoordinates(senderSecretBytes)
|
|
688
706
|
pubKeyX = coords.x
|
|
689
707
|
pubKeyY = coords.y
|
|
@@ -1055,15 +1073,46 @@ export class BrowserNoirProvider implements ProofProvider {
|
|
|
1055
1073
|
|
|
1056
1074
|
/**
|
|
1057
1075
|
* Ensure input is a proper Uint8Array (handles serialization from bundlers)
|
|
1058
|
-
*
|
|
1076
|
+
*
|
|
1077
|
+
* When Uint8Array passes through Next.js/bundlers, several issues can occur:
|
|
1078
|
+
* 1. Object becomes {0: x, 1: y, ...} (plain object with numeric keys)
|
|
1079
|
+
* 2. ArrayBuffer gets detached, making Array.from() return empty
|
|
1080
|
+
* 3. instanceof checks fail across different execution contexts
|
|
1081
|
+
*
|
|
1082
|
+
* This implementation ALWAYS reads bytes by index to be robust against all cases.
|
|
1059
1083
|
*/
|
|
1060
|
-
private ensureUint8Array(input: Uint8Array | ArrayLike<number>): Uint8Array {
|
|
1061
|
-
|
|
1062
|
-
|
|
1084
|
+
private ensureUint8Array(input: Uint8Array | ArrayLike<number> | Record<string, unknown>): Uint8Array {
|
|
1085
|
+
// Determine length from object properties
|
|
1086
|
+
let length = 0
|
|
1087
|
+
|
|
1088
|
+
if (typeof input === 'object' && input !== null) {
|
|
1089
|
+
// Try to get length from the object
|
|
1090
|
+
if ('length' in input && typeof (input as { length: unknown }).length === 'number') {
|
|
1091
|
+
length = (input as { length: number }).length
|
|
1092
|
+
} else if ('byteLength' in input && typeof (input as { byteLength: unknown }).byteLength === 'number') {
|
|
1093
|
+
// ArrayBuffer or TypedArray with byteLength
|
|
1094
|
+
length = (input as { byteLength: number }).byteLength
|
|
1095
|
+
} else {
|
|
1096
|
+
// Count numeric keys for plain objects like {0: x, 1: y, ...}
|
|
1097
|
+
const numericKeys = Object.keys(input).filter(k => /^\d+$/.test(k))
|
|
1098
|
+
length = numericKeys.length > 0 ? Math.max(...numericKeys.map(Number)) + 1 : 0
|
|
1099
|
+
}
|
|
1063
1100
|
}
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1101
|
+
|
|
1102
|
+
// Create result array and copy bytes by index
|
|
1103
|
+
const result = new Uint8Array(length)
|
|
1104
|
+
for (let i = 0; i < length; i++) {
|
|
1105
|
+
// Access by index - works for Uint8Array, Array, and plain objects
|
|
1106
|
+
const val = (input as Record<number, unknown>)[i]
|
|
1107
|
+
if (typeof val === 'number') {
|
|
1108
|
+
result[i] = val & 0xff
|
|
1109
|
+
} else if (val !== undefined && val !== null) {
|
|
1110
|
+
result[i] = Number(val) & 0xff
|
|
1111
|
+
}
|
|
1112
|
+
// else: leave as 0 (default)
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
return result
|
|
1067
1116
|
}
|
|
1068
1117
|
|
|
1069
1118
|
private hexToField(hex: string): string {
|