@volr/react 0.1.124 → 0.1.126
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/index.cjs +35 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -3
- package/dist/index.d.ts +34 -3
- package/dist/index.js +36 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { KeyStorageType as KeyStorageType$1, TypedDataInput, WalletProviderPort, PrecheckInput, PrecheckQuote, RelayInput, RelayResult, Call, PasskeyProviderPort } from '@volr/sdk-core';
|
|
3
|
+
import { KeyStorageType as KeyStorageType$1, TypedDataInput, WalletProviderPort, PrecheckInput, PrecheckQuote, RelayInput, RelayResult, Call, PasskeyProviderPort, PrfInput } from '@volr/sdk-core';
|
|
4
4
|
export { AuthorizationTuple, Call, MpcTransport, PrecheckInput, PrecheckQuote, PrfInput, RelayInput, RelayMode, RelayResult, SessionAuth, UploadBlobOptions, createMasterKeyProvider, createMpcProvider, createPasskeyProvider, deriveEvmKey, deriveWrapKey, sealMasterSeed, uploadBlob } from '@volr/sdk-core';
|
|
5
5
|
import { Address, Abi, PublicClient } from 'viem';
|
|
6
6
|
|
|
@@ -1421,6 +1421,34 @@ interface MigrationRequestResult {
|
|
|
1421
1421
|
/** Token expiration timestamp */
|
|
1422
1422
|
expiresAt: number;
|
|
1423
1423
|
}
|
|
1424
|
+
interface DecryptEntropyParams {
|
|
1425
|
+
/** APIClient instance */
|
|
1426
|
+
client: APIClient;
|
|
1427
|
+
/** User ID */
|
|
1428
|
+
userId: string;
|
|
1429
|
+
/** Blob URL (S3 key) */
|
|
1430
|
+
blobUrl: string;
|
|
1431
|
+
/** PRF input (projectId + credentialId) */
|
|
1432
|
+
prfInput: PrfInput;
|
|
1433
|
+
/** Credential ID (hex string) for allowCredentials */
|
|
1434
|
+
credentialId: string;
|
|
1435
|
+
/**
|
|
1436
|
+
* WebAuthn rpId for the SOURCE domain
|
|
1437
|
+
* @default window.location.hostname
|
|
1438
|
+
*/
|
|
1439
|
+
rpId?: string;
|
|
1440
|
+
/** Relying Party Name (for UX) */
|
|
1441
|
+
rpName?: string;
|
|
1442
|
+
}
|
|
1443
|
+
/**
|
|
1444
|
+
* Decrypt the stored blob (entropy) on the SOURCE domain using the existing passkey.
|
|
1445
|
+
* This is used for cross-domain migration: the plaintext entropy is re-encrypted
|
|
1446
|
+
* with a new passkey on the TARGET domain.
|
|
1447
|
+
*
|
|
1448
|
+
* Note: The Volr blob stores ENTROPY (not the derived seed). Keeping entropy stable
|
|
1449
|
+
* ensures the derived wallet address remains the same across domains.
|
|
1450
|
+
*/
|
|
1451
|
+
declare function decryptEntropyForMigration(params: DecryptEntropyParams): Promise<Uint8Array>;
|
|
1424
1452
|
interface MigrationCompleteParams {
|
|
1425
1453
|
/** APIClient instance */
|
|
1426
1454
|
client: APIClient;
|
|
@@ -1434,7 +1462,10 @@ interface MigrationCompleteParams {
|
|
|
1434
1462
|
projectId: string;
|
|
1435
1463
|
/** Migration token from source domain */
|
|
1436
1464
|
migrationToken: string;
|
|
1437
|
-
/**
|
|
1465
|
+
/**
|
|
1466
|
+
* Decrypted entropy from source domain.
|
|
1467
|
+
* (Name kept for backward compatibility; it is entropy, not a derived seed.)
|
|
1468
|
+
*/
|
|
1438
1469
|
masterSeed: Uint8Array;
|
|
1439
1470
|
/**
|
|
1440
1471
|
* WebAuthn rpId for this domain
|
|
@@ -1599,4 +1630,4 @@ declare function useEIP6963(): UseEIP6963Return;
|
|
|
1599
1630
|
*/
|
|
1600
1631
|
declare function detectWalletConnector(provider: any, providerInfo: EIP6963ProviderInfo | null): string;
|
|
1601
1632
|
|
|
1602
|
-
export { type ApiResponse, type AuthRefreshResponseDto, type AuthResult, type BrandingData, type BuildCallOptions, type ContractAnalysisResult, DEFAULT_EXPIRES_IN_SEC, DEFAULT_MODE, type DepositAsset$1 as DepositAsset, type DepositConfig, type EIP6963AnnounceProviderEvent, type EIP6963ProviderDetail, type EIP6963ProviderInfo, type ERC20BalanceComparison, type Erc20Token$1 as Erc20Token, type EvmChainClient, type EvmClient, type EvmNamespace, type KeyStorageType, type MigrationCompleteParams, type MigrationCompleteResult, type MigrationError, type MigrationMessage, type MigrationRequestParams, type MigrationRequestResult, type MigrationSeedRequest, type MigrationSeedResponse, type MpcConnectionStep, type NetworkDto, type NetworkInfo, type OnSignRequest, type PasskeyAdapterOptions, type PasskeyEnrollmentStep, PasskeyNotFoundError, type PayOptions, type PaymentContext, type PaymentError, type PaymentHandle, type PaymentHandlers, type PaymentHistoryOptions, type PaymentHistoryResult, type PaymentItem, type PaymentResult, type PaymentStatus, type PaymentToken, type PlatformCheckResult, type PrfCompatibilityResult, type PrfInputDto, PrfNotSupportedError, type RegisteredPasskeyDto, type SendBatchOverloads, type SendTxOptions, type SignRequest, type SignerType, type SiweSession, type SiweSessionStatus, type SocialProvider, type TokenBalance, type TransactionDto, type TransactionStatus, type UseEIP6963Return, type UseMpcConnectionReturn, type UsePasskeyEnrollmentReturn, type UseUserBalancesReturn, type UseVolrAuthCallbackOptions, type UseVolrAuthCallbackReturn, type UseVolrLoginReturn, type UseVolrPaymentApiReturn, type UseWithdrawReturn, UserCancelledError, type UserDto, type VolrClient, type VolrConfig, type VolrContextValue, VolrProvider, type VolrUser, type WalletDisplayInfo, type WalletStateComparison, type WithdrawParams, analyzeContractForEIP7702, buildCall, buildCalls, checkPrfCompatibility, checkPrfExtensionAvailable, checkPrfSupport, compareERC20Balances, compareWalletStates, completeMigration, createGetNetworkInfo, createPasskeyAdapter, debugTransactionFailure, defaultIdempotencyKey, detectWalletConnector, diagnoseTransactionFailure, getBrowserVersion, getERC20Balance, getIOSVersion, getPasskeyAuthGuidance, getPlatformHint, getUserCredentials, getWalletState, isEIP7702Delegated, isInAppBrowser, isUserCancelledError, listenForSeedRequests, normalizeHex, normalizeHexArray, openMigrationPopup, requestMigration, requestSeedFromOpener, sendSeedToPopup, uploadBlobViaPresign, useDepositListener, useEIP6963, useInternalAuth, useMpcConnection, usePasskeyEnrollment, useUserBalances, useVolr, useVolrAuthCallback, useVolrContext, useVolrLogin, useVolrPaymentApi, useWithdraw };
|
|
1633
|
+
export { type ApiResponse, type AuthRefreshResponseDto, type AuthResult, type BrandingData, type BuildCallOptions, type ContractAnalysisResult, DEFAULT_EXPIRES_IN_SEC, DEFAULT_MODE, type DecryptEntropyParams, type DepositAsset$1 as DepositAsset, type DepositConfig, type EIP6963AnnounceProviderEvent, type EIP6963ProviderDetail, type EIP6963ProviderInfo, type ERC20BalanceComparison, type Erc20Token$1 as Erc20Token, type EvmChainClient, type EvmClient, type EvmNamespace, type KeyStorageType, type MigrationCompleteParams, type MigrationCompleteResult, type MigrationError, type MigrationMessage, type MigrationRequestParams, type MigrationRequestResult, type MigrationSeedRequest, type MigrationSeedResponse, type MpcConnectionStep, type NetworkDto, type NetworkInfo, type OnSignRequest, type PasskeyAdapterOptions, type PasskeyEnrollmentStep, PasskeyNotFoundError, type PayOptions, type PaymentContext, type PaymentError, type PaymentHandle, type PaymentHandlers, type PaymentHistoryOptions, type PaymentHistoryResult, type PaymentItem, type PaymentResult, type PaymentStatus, type PaymentToken, type PlatformCheckResult, type PrfCompatibilityResult, type PrfInputDto, PrfNotSupportedError, type RegisteredPasskeyDto, type SendBatchOverloads, type SendTxOptions, type SignRequest, type SignerType, type SiweSession, type SiweSessionStatus, type SocialProvider, type TokenBalance, type TransactionDto, type TransactionStatus, type UseEIP6963Return, type UseMpcConnectionReturn, type UsePasskeyEnrollmentReturn, type UseUserBalancesReturn, type UseVolrAuthCallbackOptions, type UseVolrAuthCallbackReturn, type UseVolrLoginReturn, type UseVolrPaymentApiReturn, type UseWithdrawReturn, UserCancelledError, type UserDto, type VolrClient, type VolrConfig, type VolrContextValue, VolrProvider, type VolrUser, type WalletDisplayInfo, type WalletStateComparison, type WithdrawParams, analyzeContractForEIP7702, buildCall, buildCalls, checkPrfCompatibility, checkPrfExtensionAvailable, checkPrfSupport, compareERC20Balances, compareWalletStates, completeMigration, createGetNetworkInfo, createPasskeyAdapter, debugTransactionFailure, decryptEntropyForMigration, defaultIdempotencyKey, detectWalletConnector, diagnoseTransactionFailure, getBrowserVersion, getERC20Balance, getIOSVersion, getPasskeyAuthGuidance, getPlatformHint, getUserCredentials, getWalletState, isEIP7702Delegated, isInAppBrowser, isUserCancelledError, listenForSeedRequests, normalizeHex, normalizeHexArray, openMigrationPopup, requestMigration, requestSeedFromOpener, sendSeedToPopup, uploadBlobViaPresign, useDepositListener, useEIP6963, useInternalAuth, useMpcConnection, usePasskeyEnrollment, useUserBalances, useVolr, useVolrAuthCallback, useVolrContext, useVolrLogin, useVolrPaymentApi, useWithdraw };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { KeyStorageType as KeyStorageType$1, TypedDataInput, WalletProviderPort, PrecheckInput, PrecheckQuote, RelayInput, RelayResult, Call, PasskeyProviderPort } from '@volr/sdk-core';
|
|
3
|
+
import { KeyStorageType as KeyStorageType$1, TypedDataInput, WalletProviderPort, PrecheckInput, PrecheckQuote, RelayInput, RelayResult, Call, PasskeyProviderPort, PrfInput } from '@volr/sdk-core';
|
|
4
4
|
export { AuthorizationTuple, Call, MpcTransport, PrecheckInput, PrecheckQuote, PrfInput, RelayInput, RelayMode, RelayResult, SessionAuth, UploadBlobOptions, createMasterKeyProvider, createMpcProvider, createPasskeyProvider, deriveEvmKey, deriveWrapKey, sealMasterSeed, uploadBlob } from '@volr/sdk-core';
|
|
5
5
|
import { Address, Abi, PublicClient } from 'viem';
|
|
6
6
|
|
|
@@ -1421,6 +1421,34 @@ interface MigrationRequestResult {
|
|
|
1421
1421
|
/** Token expiration timestamp */
|
|
1422
1422
|
expiresAt: number;
|
|
1423
1423
|
}
|
|
1424
|
+
interface DecryptEntropyParams {
|
|
1425
|
+
/** APIClient instance */
|
|
1426
|
+
client: APIClient;
|
|
1427
|
+
/** User ID */
|
|
1428
|
+
userId: string;
|
|
1429
|
+
/** Blob URL (S3 key) */
|
|
1430
|
+
blobUrl: string;
|
|
1431
|
+
/** PRF input (projectId + credentialId) */
|
|
1432
|
+
prfInput: PrfInput;
|
|
1433
|
+
/** Credential ID (hex string) for allowCredentials */
|
|
1434
|
+
credentialId: string;
|
|
1435
|
+
/**
|
|
1436
|
+
* WebAuthn rpId for the SOURCE domain
|
|
1437
|
+
* @default window.location.hostname
|
|
1438
|
+
*/
|
|
1439
|
+
rpId?: string;
|
|
1440
|
+
/** Relying Party Name (for UX) */
|
|
1441
|
+
rpName?: string;
|
|
1442
|
+
}
|
|
1443
|
+
/**
|
|
1444
|
+
* Decrypt the stored blob (entropy) on the SOURCE domain using the existing passkey.
|
|
1445
|
+
* This is used for cross-domain migration: the plaintext entropy is re-encrypted
|
|
1446
|
+
* with a new passkey on the TARGET domain.
|
|
1447
|
+
*
|
|
1448
|
+
* Note: The Volr blob stores ENTROPY (not the derived seed). Keeping entropy stable
|
|
1449
|
+
* ensures the derived wallet address remains the same across domains.
|
|
1450
|
+
*/
|
|
1451
|
+
declare function decryptEntropyForMigration(params: DecryptEntropyParams): Promise<Uint8Array>;
|
|
1424
1452
|
interface MigrationCompleteParams {
|
|
1425
1453
|
/** APIClient instance */
|
|
1426
1454
|
client: APIClient;
|
|
@@ -1434,7 +1462,10 @@ interface MigrationCompleteParams {
|
|
|
1434
1462
|
projectId: string;
|
|
1435
1463
|
/** Migration token from source domain */
|
|
1436
1464
|
migrationToken: string;
|
|
1437
|
-
/**
|
|
1465
|
+
/**
|
|
1466
|
+
* Decrypted entropy from source domain.
|
|
1467
|
+
* (Name kept for backward compatibility; it is entropy, not a derived seed.)
|
|
1468
|
+
*/
|
|
1438
1469
|
masterSeed: Uint8Array;
|
|
1439
1470
|
/**
|
|
1440
1471
|
* WebAuthn rpId for this domain
|
|
@@ -1599,4 +1630,4 @@ declare function useEIP6963(): UseEIP6963Return;
|
|
|
1599
1630
|
*/
|
|
1600
1631
|
declare function detectWalletConnector(provider: any, providerInfo: EIP6963ProviderInfo | null): string;
|
|
1601
1632
|
|
|
1602
|
-
export { type ApiResponse, type AuthRefreshResponseDto, type AuthResult, type BrandingData, type BuildCallOptions, type ContractAnalysisResult, DEFAULT_EXPIRES_IN_SEC, DEFAULT_MODE, type DepositAsset$1 as DepositAsset, type DepositConfig, type EIP6963AnnounceProviderEvent, type EIP6963ProviderDetail, type EIP6963ProviderInfo, type ERC20BalanceComparison, type Erc20Token$1 as Erc20Token, type EvmChainClient, type EvmClient, type EvmNamespace, type KeyStorageType, type MigrationCompleteParams, type MigrationCompleteResult, type MigrationError, type MigrationMessage, type MigrationRequestParams, type MigrationRequestResult, type MigrationSeedRequest, type MigrationSeedResponse, type MpcConnectionStep, type NetworkDto, type NetworkInfo, type OnSignRequest, type PasskeyAdapterOptions, type PasskeyEnrollmentStep, PasskeyNotFoundError, type PayOptions, type PaymentContext, type PaymentError, type PaymentHandle, type PaymentHandlers, type PaymentHistoryOptions, type PaymentHistoryResult, type PaymentItem, type PaymentResult, type PaymentStatus, type PaymentToken, type PlatformCheckResult, type PrfCompatibilityResult, type PrfInputDto, PrfNotSupportedError, type RegisteredPasskeyDto, type SendBatchOverloads, type SendTxOptions, type SignRequest, type SignerType, type SiweSession, type SiweSessionStatus, type SocialProvider, type TokenBalance, type TransactionDto, type TransactionStatus, type UseEIP6963Return, type UseMpcConnectionReturn, type UsePasskeyEnrollmentReturn, type UseUserBalancesReturn, type UseVolrAuthCallbackOptions, type UseVolrAuthCallbackReturn, type UseVolrLoginReturn, type UseVolrPaymentApiReturn, type UseWithdrawReturn, UserCancelledError, type UserDto, type VolrClient, type VolrConfig, type VolrContextValue, VolrProvider, type VolrUser, type WalletDisplayInfo, type WalletStateComparison, type WithdrawParams, analyzeContractForEIP7702, buildCall, buildCalls, checkPrfCompatibility, checkPrfExtensionAvailable, checkPrfSupport, compareERC20Balances, compareWalletStates, completeMigration, createGetNetworkInfo, createPasskeyAdapter, debugTransactionFailure, defaultIdempotencyKey, detectWalletConnector, diagnoseTransactionFailure, getBrowserVersion, getERC20Balance, getIOSVersion, getPasskeyAuthGuidance, getPlatformHint, getUserCredentials, getWalletState, isEIP7702Delegated, isInAppBrowser, isUserCancelledError, listenForSeedRequests, normalizeHex, normalizeHexArray, openMigrationPopup, requestMigration, requestSeedFromOpener, sendSeedToPopup, uploadBlobViaPresign, useDepositListener, useEIP6963, useInternalAuth, useMpcConnection, usePasskeyEnrollment, useUserBalances, useVolr, useVolrAuthCallback, useVolrContext, useVolrLogin, useVolrPaymentApi, useWithdraw };
|
|
1633
|
+
export { type ApiResponse, type AuthRefreshResponseDto, type AuthResult, type BrandingData, type BuildCallOptions, type ContractAnalysisResult, DEFAULT_EXPIRES_IN_SEC, DEFAULT_MODE, type DecryptEntropyParams, type DepositAsset$1 as DepositAsset, type DepositConfig, type EIP6963AnnounceProviderEvent, type EIP6963ProviderDetail, type EIP6963ProviderInfo, type ERC20BalanceComparison, type Erc20Token$1 as Erc20Token, type EvmChainClient, type EvmClient, type EvmNamespace, type KeyStorageType, type MigrationCompleteParams, type MigrationCompleteResult, type MigrationError, type MigrationMessage, type MigrationRequestParams, type MigrationRequestResult, type MigrationSeedRequest, type MigrationSeedResponse, type MpcConnectionStep, type NetworkDto, type NetworkInfo, type OnSignRequest, type PasskeyAdapterOptions, type PasskeyEnrollmentStep, PasskeyNotFoundError, type PayOptions, type PaymentContext, type PaymentError, type PaymentHandle, type PaymentHandlers, type PaymentHistoryOptions, type PaymentHistoryResult, type PaymentItem, type PaymentResult, type PaymentStatus, type PaymentToken, type PlatformCheckResult, type PrfCompatibilityResult, type PrfInputDto, PrfNotSupportedError, type RegisteredPasskeyDto, type SendBatchOverloads, type SendTxOptions, type SignRequest, type SignerType, type SiweSession, type SiweSessionStatus, type SocialProvider, type TokenBalance, type TransactionDto, type TransactionStatus, type UseEIP6963Return, type UseMpcConnectionReturn, type UsePasskeyEnrollmentReturn, type UseUserBalancesReturn, type UseVolrAuthCallbackOptions, type UseVolrAuthCallbackReturn, type UseVolrLoginReturn, type UseVolrPaymentApiReturn, type UseWithdrawReturn, UserCancelledError, type UserDto, type VolrClient, type VolrConfig, type VolrContextValue, VolrProvider, type VolrUser, type WalletDisplayInfo, type WalletStateComparison, type WithdrawParams, analyzeContractForEIP7702, buildCall, buildCalls, checkPrfCompatibility, checkPrfExtensionAvailable, checkPrfSupport, compareERC20Balances, compareWalletStates, completeMigration, createGetNetworkInfo, createPasskeyAdapter, debugTransactionFailure, decryptEntropyForMigration, defaultIdempotencyKey, detectWalletConnector, diagnoseTransactionFailure, getBrowserVersion, getERC20Balance, getIOSVersion, getPasskeyAuthGuidance, getPlatformHint, getUserCredentials, getWalletState, isEIP7702Delegated, isInAppBrowser, isUserCancelledError, listenForSeedRequests, normalizeHex, normalizeHexArray, openMigrationPopup, requestMigration, requestSeedFromOpener, sendSeedToPopup, uploadBlobViaPresign, useDepositListener, useEIP6963, useInternalAuth, useMpcConnection, usePasskeyEnrollment, useUserBalances, useVolr, useVolrAuthCallback, useVolrContext, useVolrLogin, useVolrPaymentApi, useWithdraw };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as nc from 'crypto';
|
|
2
2
|
import { createContext, useRef, useEffect, useMemo, useState, useCallback, useContext } from 'react';
|
|
3
|
-
import { createPasskeyProvider, createMpcProvider, deriveWrapKey, sealMasterSeed, signSession, getAuthNonce, signAuthorization, createMasterKeyProvider, deriveEvmKey, ZERO_HASH, selectSigner, VolrError } from '@volr/sdk-core';
|
|
3
|
+
import { createPasskeyProvider, createMpcProvider, deriveWrapKey, unsealMasterSeed, sealMasterSeed, signSession, getAuthNonce, signAuthorization, createMasterKeyProvider, deriveEvmKey, ZERO_HASH, selectSigner, VolrError } from '@volr/sdk-core';
|
|
4
4
|
export { createMasterKeyProvider, createMpcProvider, createPasskeyProvider, deriveEvmKey, deriveWrapKey, sealMasterSeed, uploadBlob } from '@volr/sdk-core';
|
|
5
5
|
import axios from 'axios';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -20744,6 +20744,40 @@ function blobToBase642(blob) {
|
|
|
20744
20744
|
reader.readAsDataURL(blob);
|
|
20745
20745
|
});
|
|
20746
20746
|
}
|
|
20747
|
+
async function decryptEntropyForMigration(params) {
|
|
20748
|
+
const {
|
|
20749
|
+
client,
|
|
20750
|
+
userId,
|
|
20751
|
+
blobUrl,
|
|
20752
|
+
prfInput,
|
|
20753
|
+
credentialId,
|
|
20754
|
+
rpId = typeof window !== "undefined" ? window.location.hostname : "localhost",
|
|
20755
|
+
rpName = "Volr"
|
|
20756
|
+
} = params;
|
|
20757
|
+
const arrayBuffer = await client.postBinary("/blob/download", { key: blobUrl });
|
|
20758
|
+
const blobBytes = new Uint8Array(arrayBuffer);
|
|
20759
|
+
const nonceLength = 12;
|
|
20760
|
+
const cipherLength = blobBytes.length - nonceLength;
|
|
20761
|
+
if (cipherLength <= 0) {
|
|
20762
|
+
throw new Error("Invalid blob format: blob too small");
|
|
20763
|
+
}
|
|
20764
|
+
const cipher = blobBytes.slice(0, cipherLength);
|
|
20765
|
+
const nonce = blobBytes.slice(cipherLength);
|
|
20766
|
+
const keyStorageType = "passkey";
|
|
20767
|
+
const version5 = "v1";
|
|
20768
|
+
const aadBytes = new TextEncoder().encode(
|
|
20769
|
+
`volr/master-seed/v1|${userId}|${keyStorageType}|${version5}`
|
|
20770
|
+
);
|
|
20771
|
+
const prfSalt = deriveWrapKey(prfInput);
|
|
20772
|
+
const passkeyAdapter = createPasskeyAdapter({ rpId});
|
|
20773
|
+
const { prfOutput } = await passkeyAdapter.authenticate({
|
|
20774
|
+
salt: prfSalt,
|
|
20775
|
+
credentialId
|
|
20776
|
+
});
|
|
20777
|
+
const wrapKey = prfOutput;
|
|
20778
|
+
const entropy = await unsealMasterSeed(cipher, wrapKey, aadBytes, nonce);
|
|
20779
|
+
return entropy;
|
|
20780
|
+
}
|
|
20747
20781
|
async function requestMigration(params) {
|
|
20748
20782
|
const { client, targetOrigin } = params;
|
|
20749
20783
|
const response = await client.post("/wallet/migration/request", { targetOrigin });
|
|
@@ -21072,6 +21106,6 @@ function detectWalletConnector(provider, providerInfo) {
|
|
|
21072
21106
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
21073
21107
|
*/
|
|
21074
21108
|
|
|
21075
|
-
export { DEFAULT_EXPIRES_IN_SEC, DEFAULT_MODE, PasskeyNotFoundError, PrfNotSupportedError, UserCancelledError, VolrProvider, analyzeContractForEIP7702, buildCall, buildCalls, checkPrfCompatibility, checkPrfExtensionAvailable, checkPrfSupport, compareERC20Balances, compareWalletStates, completeMigration, createGetNetworkInfo, createPasskeyAdapter, debugTransactionFailure, defaultIdempotencyKey, detectWalletConnector, diagnoseTransactionFailure, getBrowserVersion, getERC20Balance, getIOSVersion, getPasskeyAuthGuidance, getPlatformHint, getUserCredentials, getWalletState, isEIP7702Delegated, isInAppBrowser, isUserCancelledError, listenForSeedRequests, normalizeHex, normalizeHexArray, openMigrationPopup, requestMigration, requestSeedFromOpener, sendSeedToPopup, uploadBlobViaPresign, useDepositListener, useEIP6963, useInternalAuth, useMpcConnection, usePasskeyEnrollment, useUserBalances, useVolr, useVolrAuthCallback, useVolrContext, useVolrLogin, useVolrPaymentApi, useWithdraw };
|
|
21109
|
+
export { DEFAULT_EXPIRES_IN_SEC, DEFAULT_MODE, PasskeyNotFoundError, PrfNotSupportedError, UserCancelledError, VolrProvider, analyzeContractForEIP7702, buildCall, buildCalls, checkPrfCompatibility, checkPrfExtensionAvailable, checkPrfSupport, compareERC20Balances, compareWalletStates, completeMigration, createGetNetworkInfo, createPasskeyAdapter, debugTransactionFailure, decryptEntropyForMigration, defaultIdempotencyKey, detectWalletConnector, diagnoseTransactionFailure, getBrowserVersion, getERC20Balance, getIOSVersion, getPasskeyAuthGuidance, getPlatformHint, getUserCredentials, getWalletState, isEIP7702Delegated, isInAppBrowser, isUserCancelledError, listenForSeedRequests, normalizeHex, normalizeHexArray, openMigrationPopup, requestMigration, requestSeedFromOpener, sendSeedToPopup, uploadBlobViaPresign, useDepositListener, useEIP6963, useInternalAuth, useMpcConnection, usePasskeyEnrollment, useUserBalances, useVolr, useVolrAuthCallback, useVolrContext, useVolrLogin, useVolrPaymentApi, useWithdraw };
|
|
21076
21110
|
//# sourceMappingURL=index.js.map
|
|
21077
21111
|
//# sourceMappingURL=index.js.map
|