@seams/wallet 0.6.1 → 0.6.2
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/.build-inputs.sha256 +1 -1
- package/dist/esm/SeamsWeb/operations/registration/registration.js +21 -29
- package/dist/esm/core/rpcClients/relayer/walletRegistration.js +1 -43
- package/dist/esm/core/signingEngine/flows/signNear/shared/ed25519YaoNormalSigning.js +19 -0
- package/dist/esm/core/signingEngine/flows/signNear/signTransactions.js +25 -6
- package/dist/esm/core/signingEngine/nonce/nearNonceLane.js +0 -29
- package/dist/esm/core/signingEngine/session/operationState/trace.js +10 -1
- package/dist/esm/react/SeamsWeb/operations/registration/registration.js +21 -29
- package/dist/esm/react/core/rpcClients/relayer/walletRegistration.js +1 -43
- package/dist/esm/react/core/signingEngine/flows/signNear/shared/ed25519YaoNormalSigning.js +19 -0
- package/dist/esm/react/core/signingEngine/flows/signNear/signTransactions.js +25 -6
- package/dist/esm/react/core/signingEngine/nonce/nearNonceLane.js +0 -29
- package/dist/esm/react/core/signingEngine/session/operationState/trace.js +10 -1
- package/dist/esm/sdk/{NonceCoordinator-C7QltTDC.js → NonceCoordinator-C7mqpJiU.js} +0 -29
- package/dist/{public/sdk/adapters-LgE4nnos.js → esm/sdk/adapters-m94YFj70.js} +1 -1
- package/dist/{public/sdk/display-Cw90-qmF.js → esm/sdk/display-DHdC2yXU.js} +1 -1
- package/dist/{public/sdk/export-viewer-host-B3K81QGA.js → esm/sdk/export-viewer-host-CbqG8ZQV.js} +1 -1
- package/dist/esm/sdk/{host-Y_xmIzPO.js → host-BPC1zSVg.js} +2 -2
- package/dist/esm/sdk/{localOnly-B5TYHJiq.js → localOnly-CbLYTVbo.js} +2 -2
- package/dist/esm/sdk/{nearEd25519YaoMaterialActivation-BLxVE6E5.js → nearEd25519YaoMaterialActivation-Cz5UJQ_7.js} +1 -43
- package/dist/esm/sdk/{registration-BtPLgKHk.js → registration-DtDICj-o.js} +1 -1
- package/dist/esm/sdk/{registration-D-istkMZ.js → registration-PIBMSsQR.js} +22 -30
- package/dist/esm/sdk/{registrationPreparationPreload-CvnlDCVn.js → registrationPreparationPreload-BZfAC_ba.js} +2 -2
- package/dist/{public/sdk/runtime-auth-B7z1ANNp.js → esm/sdk/runtime-auth-D_lUQQlc.js} +4 -4
- package/dist/{public/sdk/runtime-device-link-B8HGDakg.js → esm/sdk/runtime-device-link-CEph1iM0.js} +2 -2
- package/dist/esm/sdk/{runtime-ecdsa-tempo-DKdS5-us.js → runtime-ecdsa-tempo-tUWnafRo.js} +2 -2
- package/dist/{public/sdk/runtime-email-otp-D5bxhdyG.js → esm/sdk/runtime-email-otp-1wIPTDim.js} +2 -2
- package/dist/{public/sdk/runtime-export--hvNrx8l.js → esm/sdk/runtime-export-Du2d4_Vu.js} +2 -2
- package/dist/esm/sdk/{runtime-near-CEexHoug.js → runtime-near-CGoWxu7u.js} +2 -2
- package/dist/{public/sdk/runtime-preferences-BiqPp1lV.js → esm/sdk/runtime-preferences-JwJK_xP3.js} +2 -2
- package/dist/esm/sdk/{runtime-recovery-BYu1gDq_.js → runtime-recovery-BEqBdpyo.js} +2 -2
- package/dist/esm/sdk/{runtimeContext-CH97jPZ0.js → runtimeContext-CTt9ON27.js} +22 -22
- package/dist/{public/sdk/runtimeLoader-BFAmJAbu.js → esm/sdk/runtimeLoader-ZXsvx9zX.js} +9 -9
- package/dist/esm/sdk/{secp256k1-Cr1jBW1n.js → secp256k1-CWDid9WH.js} +1 -1
- package/dist/{public/sdk/signEvmFamily-Dxk4sBPY.js → esm/sdk/signEvmFamily-pbMepepQ.js} +5 -5
- package/dist/esm/sdk/{signEvmFamilyWithUiConfirmForTempo-DHTBHHgE.js → signEvmFamilyWithUiConfirmForTempo-CxvfCI_o.js} +2 -2
- package/dist/{public/sdk/signEvmWithUiConfirm-CSxTBQUW.js → esm/sdk/signEvmWithUiConfirm-nk-r3Rff.js} +1 -1
- package/dist/esm/sdk/{signNear-B0OCVKoH.js → signNear-DVD9-IO5.js} +45 -8
- package/dist/esm/sdk/{signatureUses-C1o1pDql.js → signatureUses-BY1IY7uz.js} +1 -1
- package/dist/esm/sdk/{signerLoader-D0WU1jq_.js → signerLoader-D_w-SfR9.js} +3 -3
- package/dist/esm/sdk/{trace-DWnDLSuV.js → trace-08ayoiNp.js} +10 -1
- package/dist/esm/sdk/wallet-iframe-host-ecdsa.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-full.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-near.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-runtime.js +1 -1
- package/dist/esm/sdk/wallet-ui.css +7 -1
- package/dist/public/headers.manifest.json +1 -1
- package/dist/public/sdk/{NonceCoordinator-C7QltTDC.js → NonceCoordinator-C7mqpJiU.js} +0 -29
- package/dist/{esm/sdk/adapters-LgE4nnos.js → public/sdk/adapters-m94YFj70.js} +1 -1
- package/dist/{esm/sdk/display-Cw90-qmF.js → public/sdk/display-DHdC2yXU.js} +1 -1
- package/dist/{esm/sdk/export-viewer-host-B3K81QGA.js → public/sdk/export-viewer-host-CbqG8ZQV.js} +1 -1
- package/dist/public/sdk/{host-Y_xmIzPO.js → host-BPC1zSVg.js} +2 -2
- package/dist/public/sdk/{localOnly-B5TYHJiq.js → localOnly-CbLYTVbo.js} +2 -2
- package/dist/public/sdk/{nearEd25519YaoMaterialActivation-BLxVE6E5.js → nearEd25519YaoMaterialActivation-Cz5UJQ_7.js} +1 -43
- package/dist/public/sdk/{registration-BtPLgKHk.js → registration-DtDICj-o.js} +1 -1
- package/dist/public/sdk/{registration-D-istkMZ.js → registration-PIBMSsQR.js} +22 -30
- package/dist/public/sdk/{registrationPreparationPreload-CvnlDCVn.js → registrationPreparationPreload-BZfAC_ba.js} +2 -2
- package/dist/{esm/sdk/runtime-auth-B7z1ANNp.js → public/sdk/runtime-auth-D_lUQQlc.js} +4 -4
- package/dist/{esm/sdk/runtime-device-link-B8HGDakg.js → public/sdk/runtime-device-link-CEph1iM0.js} +2 -2
- package/dist/public/sdk/{runtime-ecdsa-tempo-DKdS5-us.js → runtime-ecdsa-tempo-tUWnafRo.js} +2 -2
- package/dist/{esm/sdk/runtime-email-otp-D5bxhdyG.js → public/sdk/runtime-email-otp-1wIPTDim.js} +2 -2
- package/dist/{esm/sdk/runtime-export--hvNrx8l.js → public/sdk/runtime-export-Du2d4_Vu.js} +2 -2
- package/dist/public/sdk/{runtime-near-CEexHoug.js → runtime-near-CGoWxu7u.js} +2 -2
- package/dist/{esm/sdk/runtime-preferences-BiqPp1lV.js → public/sdk/runtime-preferences-JwJK_xP3.js} +2 -2
- package/dist/public/sdk/{runtime-recovery-BYu1gDq_.js → runtime-recovery-BEqBdpyo.js} +2 -2
- package/dist/public/sdk/{runtimeContext-CH97jPZ0.js → runtimeContext-CTt9ON27.js} +22 -22
- package/dist/{esm/sdk/runtimeLoader-BFAmJAbu.js → public/sdk/runtimeLoader-ZXsvx9zX.js} +9 -9
- package/dist/public/sdk/{secp256k1-Cr1jBW1n.js → secp256k1-CWDid9WH.js} +1 -1
- package/dist/{esm/sdk/signEvmFamily-Dxk4sBPY.js → public/sdk/signEvmFamily-pbMepepQ.js} +5 -5
- package/dist/public/sdk/{signEvmFamilyWithUiConfirmForTempo-DHTBHHgE.js → signEvmFamilyWithUiConfirmForTempo-CxvfCI_o.js} +2 -2
- package/dist/{esm/sdk/signEvmWithUiConfirm-CSxTBQUW.js → public/sdk/signEvmWithUiConfirm-nk-r3Rff.js} +1 -1
- package/dist/public/sdk/{signNear-B0OCVKoH.js → signNear-DVD9-IO5.js} +45 -8
- package/dist/public/sdk/{signatureUses-C1o1pDql.js → signatureUses-BY1IY7uz.js} +1 -1
- package/dist/public/sdk/{signerLoader-D0WU1jq_.js → signerLoader-D_w-SfR9.js} +3 -3
- package/dist/public/sdk/{trace-DWnDLSuV.js → trace-08ayoiNp.js} +10 -1
- package/dist/public/sdk/wallet-iframe-host-ecdsa.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-full.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-near.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-runtime.js +1 -1
- package/dist/public/sdk/wallet-ui.css +7 -1
- package/dist/public/wallet-assets.manifest.json +58 -58
- package/dist/public/wallet-service/index.html +4 -4
- package/dist/types/wallet/src/SeamsWeb/operations/registration/registration.d.ts +2 -3
- package/dist/types/wallet/src/core/signingEngine/nonce/nearNonceLane.d.ts +2 -1
- package/dist/types/wallet/src/core/signingEngine/session/operationState/trace.d.ts +2 -0
- package/package.json +1 -1
package/dist/{public/sdk/runtime-email-otp-D5bxhdyG.js → esm/sdk/runtime-email-otp-1wIPTDim.js}
RENAMED
|
@@ -14,11 +14,11 @@ import "./passkey-custody-BaHyYMhj.js";
|
|
|
14
14
|
import "./ed25519SeedMaterial-Cghz8-XB.js";
|
|
15
15
|
import "./keccak-DY5wDsym.js";
|
|
16
16
|
import "./signingSessionSeal-CdtgXHSL.js";
|
|
17
|
-
import "./nearEd25519YaoMaterialActivation-
|
|
17
|
+
import "./nearEd25519YaoMaterialActivation-Cz5UJQ_7.js";
|
|
18
18
|
import "./operationFingerprint-CsYO6b0a.js";
|
|
19
19
|
import "./actions-DsBQcjBn.js";
|
|
20
20
|
import "./jsxRuntime.module-FAP0NE9p.js";
|
|
21
|
-
import { handleWalletHostRuntimeRequestWithHandlers, r as redeemHostedWalletSeamsSession } from "./runtimeContext-
|
|
21
|
+
import { handleWalletHostRuntimeRequestWithHandlers, r as redeemHostedWalletSeamsSession } from "./runtimeContext-CTt9ON27.js";
|
|
22
22
|
import { n as respondOkResult, r as withProgress } from "./shared-Qy1DGMqH.js";
|
|
23
23
|
//#region src/SeamsWeb/walletIframe/host/handlers/emailOtp.ts
|
|
24
24
|
function recordFromPayload(value) {
|
|
@@ -15,11 +15,11 @@ import "./passkey-custody-BaHyYMhj.js";
|
|
|
15
15
|
import "./ed25519SeedMaterial-Cghz8-XB.js";
|
|
16
16
|
import "./keccak-DY5wDsym.js";
|
|
17
17
|
import "./signingSessionSeal-CdtgXHSL.js";
|
|
18
|
-
import "./nearEd25519YaoMaterialActivation-
|
|
18
|
+
import "./nearEd25519YaoMaterialActivation-Cz5UJQ_7.js";
|
|
19
19
|
import "./operationFingerprint-CsYO6b0a.js";
|
|
20
20
|
import "./actions-DsBQcjBn.js";
|
|
21
21
|
import "./jsxRuntime.module-FAP0NE9p.js";
|
|
22
|
-
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-
|
|
22
|
+
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-CTt9ON27.js";
|
|
23
23
|
import { n as respondOkResult, t as respondOk } from "./shared-Qy1DGMqH.js";
|
|
24
24
|
//#region src/SeamsWeb/walletIframe/host/handlers/export.ts
|
|
25
25
|
function keyExportInputFromPayload(payload) {
|
|
@@ -14,12 +14,12 @@ import "./passkey-custody-BaHyYMhj.js";
|
|
|
14
14
|
import "./ed25519SeedMaterial-Cghz8-XB.js";
|
|
15
15
|
import "./keccak-DY5wDsym.js";
|
|
16
16
|
import "./signingSessionSeal-CdtgXHSL.js";
|
|
17
|
-
import "./nearEd25519YaoMaterialActivation-
|
|
17
|
+
import "./nearEd25519YaoMaterialActivation-Cz5UJQ_7.js";
|
|
18
18
|
import "./operationFingerprint-CsYO6b0a.js";
|
|
19
19
|
import "./actions-DsBQcjBn.js";
|
|
20
20
|
import { n as SignedTransaction } from "./NearClient-BQgcqAzG.js";
|
|
21
21
|
import "./jsxRuntime.module-FAP0NE9p.js";
|
|
22
|
-
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-
|
|
22
|
+
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-CTt9ON27.js";
|
|
23
23
|
import { i as withRegistrationProgress, n as respondOkResult, r as withProgress, t as respondOk } from "./shared-Qy1DGMqH.js";
|
|
24
24
|
//#region src/SeamsWeb/walletIframe/host/handlers/near.ts
|
|
25
25
|
function walletSessionFromWalletId(walletIdRaw) {
|
package/dist/{public/sdk/runtime-preferences-BiqPp1lV.js → esm/sdk/runtime-preferences-JwJK_xP3.js}
RENAMED
|
@@ -14,11 +14,11 @@ import "./passkey-custody-BaHyYMhj.js";
|
|
|
14
14
|
import { s as IndexedDBManager } from "./ed25519SeedMaterial-Cghz8-XB.js";
|
|
15
15
|
import "./keccak-DY5wDsym.js";
|
|
16
16
|
import "./signingSessionSeal-CdtgXHSL.js";
|
|
17
|
-
import "./nearEd25519YaoMaterialActivation-
|
|
17
|
+
import "./nearEd25519YaoMaterialActivation-Cz5UJQ_7.js";
|
|
18
18
|
import "./operationFingerprint-CsYO6b0a.js";
|
|
19
19
|
import "./actions-DsBQcjBn.js";
|
|
20
20
|
import "./jsxRuntime.module-FAP0NE9p.js";
|
|
21
|
-
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-
|
|
21
|
+
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-CTt9ON27.js";
|
|
22
22
|
import { n as respondOkResult, t as respondOk } from "./shared-Qy1DGMqH.js";
|
|
23
23
|
//#region src/SeamsWeb/walletIframe/host/handlers/preferences.ts
|
|
24
24
|
function createPreferencesWalletIframeHandlers(deps) {
|
|
@@ -13,11 +13,11 @@ import "./passkey-custody-BaHyYMhj.js";
|
|
|
13
13
|
import "./ed25519SeedMaterial-Cghz8-XB.js";
|
|
14
14
|
import "./keccak-DY5wDsym.js";
|
|
15
15
|
import "./signingSessionSeal-CdtgXHSL.js";
|
|
16
|
-
import "./nearEd25519YaoMaterialActivation-
|
|
16
|
+
import "./nearEd25519YaoMaterialActivation-Cz5UJQ_7.js";
|
|
17
17
|
import "./operationFingerprint-CsYO6b0a.js";
|
|
18
18
|
import "./actions-DsBQcjBn.js";
|
|
19
19
|
import "./jsxRuntime.module-FAP0NE9p.js";
|
|
20
|
-
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-
|
|
20
|
+
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-CTt9ON27.js";
|
|
21
21
|
import { n as respondOkResult, r as withProgress } from "./shared-Qy1DGMqH.js";
|
|
22
22
|
//#region src/SeamsWeb/walletIframe/host/handlers/recovery.ts
|
|
23
23
|
function createRecoveryWalletIframeHandlers(deps) {
|
|
@@ -8,7 +8,7 @@ import { b as parsePMRedeemHostedWalletSeamsSessionPayload } from "./messages-B3
|
|
|
8
8
|
import { i as isUserCancellationError, n as getUserFriendlyErrorMessage, o as toError, t as errorMessage } from "./errors-93h9uAW9.js";
|
|
9
9
|
import { i as base64UrlEncode, n as base64Encode, r as base64UrlDecode } from "./base64-Clm8C-e9.js";
|
|
10
10
|
import { n as secureRandomBase64Url, r as secureRandomId, t as secureRandomBase36 } from "./secureRandomId-BORsmdS4.js";
|
|
11
|
-
import { $ as unlockEmailOtpEd25519YaoCapability, A as requestEmailOtpEnrollmentChallenge, At as listExactSealedSessionsForWallet, B as scheduleEcdsaSessionPresignaturePrefill, Bt as resolveExactWalletSessionOperationCredential, C as preparePasskeyEd25519YaoLocalMaterialRehydrationV1, Ct as resolveExactEd25519SealedSessionRuntimeForLane, D as persistPasskeyEd25519YaoSessionForRefresh, Dt as buildCurrentSealedSessionRecord, E as buildPasskeyEd25519RestoreMetadata, Et as acquireSigningSessionRestoreLease, F as buildRecoveredCustodyEnvelopeRecord, Ft as updateExactSealedSessionPolicy, G as requirePasskeyPrfFirstB64u, Gt as ROUTER_AB_ED25519_YAO_ACTIVE_CLIENT_KIND_V1, H as resumePendingNearRegistrations, Ht as openWalletCustodyEd25519ActiveClientV1, I as resolveManagedRuntimeScopeBootstrap, It as writeExactSealedSession, J as assertEd25519YaoWarmRecoveryDescriptorStableMaterialContinuity, Jt as parseEd25519YaoRecoveryCapabilityV1, K as verifyLinkedDevicePasskeyWalletSession, Kt as RouterAbEd25519YaoClientV1, L as awaitNearProvisioningInFlight, Lt as createDeleteDurableSealedSessionCommand, M as configurePasskeyCustodySessionCachePersistence, Mt as readExactSealedSession, N as readPasskeyCustodySessionEnvelope, Nt as releaseSigningSessionRestoreLease, O as collectEmailOtpRegistrationAuthority, Ot as deleteDurableSealedSessionRecord, P as rememberPasskeyCustodySessionEnvelope, Pt as updateExactEd25519SealedSessionPolicy, Q as unlockEmailOtpAuthorityWallet, R as readNearProvisioningState, Rt as buildRouterAbEd25519SigningWalletSession, S as persistPasskeyEd25519YaoSignerMaterialV1, St as parseExactEd25519SealedSessionRuntime, T as buildRestorableMpcMaterialRefInternal, Tt as resolveExactEd25519SealedSessionRuntimeForWalletSubject, U as passkeyCredentialIdB64uFromAuthentication, Ut as walletCustodyActivationFactsFromActiveClientMetadataV1, V as resumePendingEcdsaRegistrationFromStoredCommit, Vt as openOrRejoinWalletCustodyEd25519V1, W as passkeyPrfFirstB64uFromCredential, Wt as walletCustodyCacheEnvelopeFromRecordV1, X as parsePasskeyEd25519YaoSyncResponseV1, Xt as listThresholdEcdsaProvisionTargets, Y as buildRecoveredWalletSessionState, Yt as listConfiguredThresholdEcdsaPublicationTargets, Z as passkeyEd25519YaoLaneReferenceFromRecovery, Zt as isRegistrationBenchmarkDiagnosticsEnabled, _ as walletCustodyCeremonyTransportFromWorkerContextV1, _t as nearEd25519YaoOperationMaterialFacts, a as registerWallet, at as joinNearEd25519CustodyV1, b as ed25519YaoLocalMaterialIdentityFromWalletSession, bt as ed25519AuthorizationIdentityMatchesRuntime, c as exactWalletSessionAuthorityIdentity, ct as rejoinEvmFamilyCustodyV1, d as validateExactWalletSessionAuthorization, dt as createRelayerExactWalletSessionStatusPort, et as unlockEmailOtpWallet, f as destroyUnlockedWalletEd25519ExportRootCapabilitiesV1, ft as sameRuntimePolicyScope$1, g as setUnlockedCustodyEnvelopeUpgradeSinkV1, gt as buildPasskeyRouterAbEd25519WalletSessionState, h as readUnlockedWalletEd25519ExportRootCapabilityV1, ht as buildEmailOtpRouterAbEd25519WalletSessionState, it as joinEvmFamilyCustodyV1, j as resolveGoogleEmailOtpProvider, jt as readExactEd25519SealedSession, k as requestEmailOtpChallenge, kt as listEcdsaSealedSessionsForWallet, l as persistExactWalletSessionAuthorizationFromEcdsaBootstrap, lt as rejoinNearEd25519CustodyV1, m as establishUnlockedWalletEd25519ExportRootCapabilityV1, mt as WALLET_IFRAME_TRANSPORT_TIMING_LABEL, nt as establishEvmFamilyCustodyV1, ot as recoverEvmFamilyCustodyV1, p as dropUnlockedWalletEd25519ExportRootCapabilityReferenceV1, pt as joinCustodyWireFromEnvelopeRecord, q as verifyPasskeyWalletUnlock, qt as RouterAbEd25519YaoHttpActivationTransportV1, rt as establishNearEd25519CustodyV1, st as recoverNearEd25519CustodyV1, t as addWalletSigner, tt as unlockEmailOtpWalletCapabilities, u as validateExactWalletSessionAuthorityIdentity, ut as WalletSessionStatusReadScope, v as requestWalletCustodyCeremonyOperation, vt as rebindRouterAbEd25519WalletSessionStateFromExactRuntime, w as readPasskeyEd25519YaoLocalMaterialLocatorV1, wt as resolveExactEd25519SealedSessionRuntimeForWallet, x as hydratePasskeyEd25519YaoLocalMaterialV1, xt as ed25519SealedRuntimeAuthorityRef, y as walletCustodyCeremonyStepRunner, yt as resolveActiveAuthorizedRouterAbEd25519WalletSessionState, z as subscribeToNearProvisioning, zt as requiredSigningSubjectForExactSigningLane } from "./registration-
|
|
11
|
+
import { $ as unlockEmailOtpEd25519YaoCapability, A as requestEmailOtpEnrollmentChallenge, At as listExactSealedSessionsForWallet, B as scheduleEcdsaSessionPresignaturePrefill, Bt as resolveExactWalletSessionOperationCredential, C as preparePasskeyEd25519YaoLocalMaterialRehydrationV1, Ct as resolveExactEd25519SealedSessionRuntimeForLane, D as persistPasskeyEd25519YaoSessionForRefresh, Dt as buildCurrentSealedSessionRecord, E as buildPasskeyEd25519RestoreMetadata, Et as acquireSigningSessionRestoreLease, F as buildRecoveredCustodyEnvelopeRecord, Ft as updateExactSealedSessionPolicy, G as requirePasskeyPrfFirstB64u, Gt as ROUTER_AB_ED25519_YAO_ACTIVE_CLIENT_KIND_V1, H as resumePendingNearRegistrations, Ht as openWalletCustodyEd25519ActiveClientV1, I as resolveManagedRuntimeScopeBootstrap, It as writeExactSealedSession, J as assertEd25519YaoWarmRecoveryDescriptorStableMaterialContinuity, Jt as parseEd25519YaoRecoveryCapabilityV1, K as verifyLinkedDevicePasskeyWalletSession, Kt as RouterAbEd25519YaoClientV1, L as awaitNearProvisioningInFlight, Lt as createDeleteDurableSealedSessionCommand, M as configurePasskeyCustodySessionCachePersistence, Mt as readExactSealedSession, N as readPasskeyCustodySessionEnvelope, Nt as releaseSigningSessionRestoreLease, O as collectEmailOtpRegistrationAuthority, Ot as deleteDurableSealedSessionRecord, P as rememberPasskeyCustodySessionEnvelope, Pt as updateExactEd25519SealedSessionPolicy, Q as unlockEmailOtpAuthorityWallet, R as readNearProvisioningState, Rt as buildRouterAbEd25519SigningWalletSession, S as persistPasskeyEd25519YaoSignerMaterialV1, St as parseExactEd25519SealedSessionRuntime, T as buildRestorableMpcMaterialRefInternal, Tt as resolveExactEd25519SealedSessionRuntimeForWalletSubject, U as passkeyCredentialIdB64uFromAuthentication, Ut as walletCustodyActivationFactsFromActiveClientMetadataV1, V as resumePendingEcdsaRegistrationFromStoredCommit, Vt as openOrRejoinWalletCustodyEd25519V1, W as passkeyPrfFirstB64uFromCredential, Wt as walletCustodyCacheEnvelopeFromRecordV1, X as parsePasskeyEd25519YaoSyncResponseV1, Xt as listThresholdEcdsaProvisionTargets, Y as buildRecoveredWalletSessionState, Yt as listConfiguredThresholdEcdsaPublicationTargets, Z as passkeyEd25519YaoLaneReferenceFromRecovery, Zt as isRegistrationBenchmarkDiagnosticsEnabled, _ as walletCustodyCeremonyTransportFromWorkerContextV1, _t as nearEd25519YaoOperationMaterialFacts, a as registerWallet, at as joinNearEd25519CustodyV1, b as ed25519YaoLocalMaterialIdentityFromWalletSession, bt as ed25519AuthorizationIdentityMatchesRuntime, c as exactWalletSessionAuthorityIdentity, ct as rejoinEvmFamilyCustodyV1, d as validateExactWalletSessionAuthorization, dt as createRelayerExactWalletSessionStatusPort, et as unlockEmailOtpWallet, f as destroyUnlockedWalletEd25519ExportRootCapabilitiesV1, ft as sameRuntimePolicyScope$1, g as setUnlockedCustodyEnvelopeUpgradeSinkV1, gt as buildPasskeyRouterAbEd25519WalletSessionState, h as readUnlockedWalletEd25519ExportRootCapabilityV1, ht as buildEmailOtpRouterAbEd25519WalletSessionState, it as joinEvmFamilyCustodyV1, j as resolveGoogleEmailOtpProvider, jt as readExactEd25519SealedSession, k as requestEmailOtpChallenge, kt as listEcdsaSealedSessionsForWallet, l as persistExactWalletSessionAuthorizationFromEcdsaBootstrap, lt as rejoinNearEd25519CustodyV1, m as establishUnlockedWalletEd25519ExportRootCapabilityV1, mt as WALLET_IFRAME_TRANSPORT_TIMING_LABEL, nt as establishEvmFamilyCustodyV1, ot as recoverEvmFamilyCustodyV1, p as dropUnlockedWalletEd25519ExportRootCapabilityReferenceV1, pt as joinCustodyWireFromEnvelopeRecord, q as verifyPasskeyWalletUnlock, qt as RouterAbEd25519YaoHttpActivationTransportV1, rt as establishNearEd25519CustodyV1, st as recoverNearEd25519CustodyV1, t as addWalletSigner, tt as unlockEmailOtpWalletCapabilities, u as validateExactWalletSessionAuthorityIdentity, ut as WalletSessionStatusReadScope, v as requestWalletCustodyCeremonyOperation, vt as rebindRouterAbEd25519WalletSessionStateFromExactRuntime, w as readPasskeyEd25519YaoLocalMaterialLocatorV1, wt as resolveExactEd25519SealedSessionRuntimeForWallet, x as hydratePasskeyEd25519YaoLocalMaterialV1, xt as ed25519SealedRuntimeAuthorityRef, y as walletCustodyCeremonyStepRunner, yt as resolveActiveAuthorizedRouterAbEd25519WalletSessionState, z as subscribeToNearProvisioning, zt as requiredSigningSubjectForExactSigningLane } from "./registration-PIBMSsQR.js";
|
|
12
12
|
import { a as computeLinkedDeviceTargetPreparationDigestV1, c as assertNeverLinkSessionStateV1, i as computeLinkedDevicePublicKeyDigestV1, l as activeWalletSessionV1RecordsEqual, n as LINKED_DEVICE_REQUEST_PROOF_HEADER_V1, o as computeWalletSessionInstallationReceiptDigestB64u, r as LINKED_DEVICE_REQUEST_PROOF_MAX_TTL_MS_V1, s as computeWalletSessionOperationCredentialDigestB64u } from "./device-linking-DpVGjSeq.js";
|
|
13
13
|
import { A as alphabetizeStringify, D as sameWalletAuthMethodRecordV2, I as parseDigestB64u, J as resolvePrimaryNearRpcUrl, M as sha256BytesUtf8, N as sha256HexUtf8, O as sponsoredNamedNearAccountProvisioning, R as chainFamilyFromNetwork, S as registrationNearEd25519BranchKey, a as computeAddAuthMethodIntentDigestB64u, b as parseWalletAuthMethodRecordV2, c as computeWalletAuthMethodRevokeOperationFingerprintV1, i as buildWalletAuthMethodRecordV2, j as sha256Bytes, k as walletIdFromString, m as nearEd25519SigningKeyIdFromString, p as implicitNearAccountProvisioning, q as resolvePrimaryExplorerUrl, t as NEAR_ED25519_YAO_KEY_VERSION_V1, u as createServerAllocatedWalletId, y as parseNearEd25519SigningKeyId, z as cloneChainConfig } from "./registrationIntent-DwAIMQYh.js";
|
|
14
14
|
import { a as thresholdEcdsaChainTargetFromRequest, c as toWalletId, i as thresholdEcdsaChainTargetFromConfig, n as nearAccountRefFromAccountId, o as thresholdEcdsaChainTargetKey, s as thresholdEcdsaChainTargetsEqual, t as configuredThresholdEcdsaChainTargets, u as walletSessionRefFromSession } from "./ecdsaChainTarget-BOTPGIU_.js";
|
|
@@ -30,45 +30,45 @@ import { t as parseSignerSlot } from "./signerSlot-DbNAs-kc.js";
|
|
|
30
30
|
import "./keccak-DY5wDsym.js";
|
|
31
31
|
import { a as SIGNING_SESSION_SEAL_ALG, l as parseRouterAbEd25519NormalSigningState, n as PASSKEY_PRF_SECOND_SALT_V1, o as SIGNING_SESSION_SEAL_GROUP_ID, r as ROUTER_AB_ED25519_NORMAL_SIGNING_STATE_KIND, t as PASSKEY_PRF_FIRST_SALT_V1 } from "./signingSessionSeal-CdtgXHSL.js";
|
|
32
32
|
import { t as demoEmailOtpCodeFromDelivery } from "./challengeDelivery-BjLKoou3.js";
|
|
33
|
-
import { _ as parseEmailOtpEcdsaExportWorkerIssuedSessionHandle, a as createSigningPlannerDecisionTraceEvent, c as nearImplicitAccountFundingPort, d as mintEd25519WalletSession, f as nearOperationStepUpPreparationPort, g as buildNearMessageDisplayModel, h as buildNearDisplayModel, i as withThresholdEd25519CommitQueue, l as buildThresholdEd25519WebAuthnPrfSecretSource, m as getLastLoggedInSignerSlot, o as planSigningSession, p as deriveThresholdEd25519ClientVerifyingShareWasm, r as resolveThresholdEd25519CommitQueueKey, s as parseAndValidateRegistrationCredentialConfirmationPayload, t as signNear, u as localPrfFirstForEd25519WalletSessionMintAuthorization, v as parseEmailOtpWorkerIssuedSessionHandle } from "./signNear-
|
|
33
|
+
import { _ as parseEmailOtpEcdsaExportWorkerIssuedSessionHandle, a as createSigningPlannerDecisionTraceEvent, c as nearImplicitAccountFundingPort, d as mintEd25519WalletSession, f as nearOperationStepUpPreparationPort, g as buildNearMessageDisplayModel, h as buildNearDisplayModel, i as withThresholdEd25519CommitQueue, l as buildThresholdEd25519WebAuthnPrfSecretSource, m as getLastLoggedInSignerSlot, o as planSigningSession, p as deriveThresholdEd25519ClientVerifyingShareWasm, r as resolveThresholdEd25519CommitQueueKey, s as parseAndValidateRegistrationCredentialConfirmationPayload, t as signNear, u as localPrfFirstForEd25519WalletSessionMintAuthorization, v as parseEmailOtpWorkerIssuedSessionHandle } from "./signNear-DVD9-IO5.js";
|
|
34
34
|
import { t as executeWorkerOperation } from "./executeWorkerOperation-Bn8GEuT_.js";
|
|
35
|
-
import { A as thresholdEcdsaRoleLocalComputeSignatureShareFromPresignatureHandleWasm, B as SignerWorkerOperationError, C as prepareLinkedDeviceEcdsaSourceContributionWasm, D as storeLinkedDeviceEcdsaHolderMaterialWasm, E as storeEcdsaRoleLocalSigningMaterialWasm, F as thresholdEcdsaRoleLocalPresignSessionStepWasm, H as getSignerWorkerOperationCoreCode, I as thresholdEcdsaRoleLocalReservePresignatureWasm, L as verifyRouterAbEcdsaRegistrationClientProofsWasm, M as thresholdEcdsaRoleLocalListAvailablePresignaturesWasm, N as thresholdEcdsaRoleLocalPresignSessionAbortWasm, O as thresholdEcdsaRoleLocalAdmitPresignatureWasm, P as thresholdEcdsaRoleLocalPresignSessionInitFromMaterialHandleWasm, R as EcdsaDerivationClientCustomRequestType, S as prepareEcdsaClientBootstrapCommandWasm, T as signWalletRecoveryEcdsaMaterialPossessionProofWasm, U as getSignerWorkerOperationErrorCode, V as WorkerControlMessage, _ as finalizeEcdsaHolderOrdinaryExportWasm, a as resolveRouterAbEcdsaDerivationPresignaturePoolPolicy, b as openEcdsaRoleLocalSigningMaterialWasm, c as clearLinkedDeviceEcdsaHolderMaterialsWasm, d as createEcdsaHolderOrdinaryExportRequestWasm, f as createRouterAbEcdsaPostRegistrationCeremonyWasm, g as finalizeEcdsaClientBootstrapCommandWasm, h as destroyLinkedDeviceEcdsaHolderMaterialsWasm, i as clearRouterAbEcdsaDerivationClientPresignaturesForWallet, j as thresholdEcdsaRoleLocalDestroyPresignatureWasm, k as thresholdEcdsaRoleLocalCommitPresignatureWasm, l as closeRouterAbEcdsaPostRegistrationCeremonyWasm, m as destroyLinkedDeviceEcdsaHolderMaterialWasm, o as scheduleRouterAbEcdsaDerivationClientPresignaturePoolRefill, p as createRouterAbEcdsaRegistrationCeremonyWasm, r as clearAllRouterAbEcdsaDerivationClientPresignatures, s as waitForRouterAbEcdsaDerivationClientPresignaturePoolReady, u as closeRouterAbEcdsaRegistrationCeremonyWasm, v as finalizeRouterAbEcdsaExplicitExportWasm, w as reconcileCanonicalEcdsaActivationWasm, x as persistInitialCanonicalEcdsaActivationWasm, y as finalizeRouterAbEcdsaRegistrationActivationWasm, z as EcdsaPresignClientRequestType } from "./secp256k1-
|
|
35
|
+
import { A as thresholdEcdsaRoleLocalComputeSignatureShareFromPresignatureHandleWasm, B as SignerWorkerOperationError, C as prepareLinkedDeviceEcdsaSourceContributionWasm, D as storeLinkedDeviceEcdsaHolderMaterialWasm, E as storeEcdsaRoleLocalSigningMaterialWasm, F as thresholdEcdsaRoleLocalPresignSessionStepWasm, H as getSignerWorkerOperationCoreCode, I as thresholdEcdsaRoleLocalReservePresignatureWasm, L as verifyRouterAbEcdsaRegistrationClientProofsWasm, M as thresholdEcdsaRoleLocalListAvailablePresignaturesWasm, N as thresholdEcdsaRoleLocalPresignSessionAbortWasm, O as thresholdEcdsaRoleLocalAdmitPresignatureWasm, P as thresholdEcdsaRoleLocalPresignSessionInitFromMaterialHandleWasm, R as EcdsaDerivationClientCustomRequestType, S as prepareEcdsaClientBootstrapCommandWasm, T as signWalletRecoveryEcdsaMaterialPossessionProofWasm, U as getSignerWorkerOperationErrorCode, V as WorkerControlMessage, _ as finalizeEcdsaHolderOrdinaryExportWasm, a as resolveRouterAbEcdsaDerivationPresignaturePoolPolicy, b as openEcdsaRoleLocalSigningMaterialWasm, c as clearLinkedDeviceEcdsaHolderMaterialsWasm, d as createEcdsaHolderOrdinaryExportRequestWasm, f as createRouterAbEcdsaPostRegistrationCeremonyWasm, g as finalizeEcdsaClientBootstrapCommandWasm, h as destroyLinkedDeviceEcdsaHolderMaterialsWasm, i as clearRouterAbEcdsaDerivationClientPresignaturesForWallet, j as thresholdEcdsaRoleLocalDestroyPresignatureWasm, k as thresholdEcdsaRoleLocalCommitPresignatureWasm, l as closeRouterAbEcdsaPostRegistrationCeremonyWasm, m as destroyLinkedDeviceEcdsaHolderMaterialWasm, o as scheduleRouterAbEcdsaDerivationClientPresignaturePoolRefill, p as createRouterAbEcdsaRegistrationCeremonyWasm, r as clearAllRouterAbEcdsaDerivationClientPresignatures, s as waitForRouterAbEcdsaDerivationClientPresignaturePoolReady, u as closeRouterAbEcdsaRegistrationCeremonyWasm, v as finalizeRouterAbEcdsaExplicitExportWasm, w as reconcileCanonicalEcdsaActivationWasm, x as persistInitialCanonicalEcdsaActivationWasm, y as finalizeRouterAbEcdsaRegistrationActivationWasm, z as EcdsaPresignClientRequestType } from "./secp256k1-CWDid9WH.js";
|
|
36
36
|
import { c as serializeRegistrationCredentialWithPRF, i as normalizeAuthenticationCredential, l as getPrfFirstB64uFromCredential, n as getPrfSecondSaltV1, o as redactedPasskeyRegistrationCredential, r as isSerializedRegistrationCredential, s as serializeAuthenticationCredentialWithPRF, t as getPrfFirstSaltV1, u as redactCredentialExtensionOutputs } from "./helpers-DpRjHMBx.js";
|
|
37
37
|
import { C as validateTempoFeeToken, D as requestParentDomainWebAuthn, E as executeWebAuthnWithParentFallbacksSafari, S as requireTempoFeeTokenPreferenceSigningRequest, T as WindowParentDomainWebAuthnClient, b as parseTempoEvmAddress, d as walletIframeUnlockRequestFromLoginHooks, f as needsExplicitActivation, p as OverlayController, r as parseWalletIframeExactSessionIdentity, x as readTempoFeeTokenPreference, y as buildTempoSetUserTokenRequest } from "./exactSessionState-Bt0HforB.js";
|
|
38
38
|
import { C as ecdsaRoleLocalReadyRecordMatchesInput, E as parseEcdsaRoleLocalReadyRecord, O as serializeEcdsaRoleLocalReadyRecord, S as buildEcdsaRoleLocalPublicFacts, T as ecdsaRoleLocalReadyRecordStorageKeyFacts, b as buildEcdsaRoleLocalEmailOtpAuthMethod, w as ecdsaRoleLocalReadyRecordStorageKey, x as buildEcdsaRoleLocalPasskeyAuthMethod, y as routerAbEcdsaDerivationPublicCapabilitiesEqual } from "./ecdsaCapabilityManifest-C8itxV9S.js";
|
|
39
39
|
import { i as buildNearAccountRefs } from "./profileAccountProjection-C9rVhbeJ.js";
|
|
40
40
|
import { a as isWorkerError, o as isWorkerProgress, s as isWorkerSuccess, t as DEFAULT_CONFIRMATION_CONFIG } from "./signer-worker-DYRteieu.js";
|
|
41
|
-
import { A as
|
|
41
|
+
import { A as parseProfileContinuityEcdsaWarmKey, D as startWalletAddAuthMethod, S as requestAddAuthMethodEmailOtpChallenge, T as revokeWalletAuthMethod, _ as finalizeWalletAddAuthMethod, a as buildRehydrateMaterialActivationHydrationPlan, g as fetchWalletEcdsaKeyFactsInventoryWithWebAuthn, h as fetchWalletEcdsaKeyFactsInventoryWithOperationCredential, i as buildBlockedMpcCapabilityHydrationPlan, k as activateRouterAbEcdsaPostRegistrationSession, l as computeWalletCustodyAdminChallengeDigest, n as nearEd25519YaoRuntimeRef, o as buildUseLiveRuntimeHydrationPlan, p as createWalletAddAuthMethodIntent, r as resolveNearEd25519YaoCapabilityHydrationV1, t as nearEd25519YaoMaterialActivationFromMetadata, y as fundImplicitNearAccountForTesting } from "./nearEd25519YaoMaterialActivation-Cz5UJQ_7.js";
|
|
42
42
|
import { n as buildRelayerJsonPostRequestInit, r as normalizeRelayerBaseUrl, t as buildBearerAuthorizationHeader } from "./relayerHttp-LsVTZCxA.js";
|
|
43
43
|
import { _ as isEmailOtpPendingSingleUseAuthContext, a as nearEd25519SessionMatchesMaterialActivation, b as laneCandidateStateFromRuntimePolicy, d as buildEmailOtpAuthContextForWalletAuthMethod, f as emailOtpAuthContextConsumedAtMs, g as emailOtpAuthContextRetention, h as emailOtpAuthContextProviderUserId, i as classifyNearEd25519WalletSessionAuthorization, m as emailOtpAuthContextProvider, n as buildAuthorizationRequiredNearEd25519YaoSigningPreparation, p as emailOtpAuthContextEmailHashHex, r as buildAuthorizedNearEd25519YaoSigningPreparation, t as buildActiveNearEd25519WalletSessionAuthorization, u as buildEmailOtpAuthContextForCanonicalWallet, v as isEmailOtpSessionAuthContext, x as selectedEcdsaLane } from "./nearEd25519YaoSigningPreparation-DX6xG-IW.js";
|
|
44
44
|
import { a as throwEmailOtpSigningSessionAuthStateError, i as emailOtpEcdsaBootstrapRouteAuthFromRoutePlan, n as buildEmailOtpSigningSessionRoutePlan, o as buildEmailOtpRoutePlan, r as buildFreshEmailOtpRoutePlan, t as assertEmailOtpSigningSessionAuthLane } from "./routePlan-nLpPFHB-.js";
|
|
45
45
|
import "./operationFingerprint-CsYO6b0a.js";
|
|
46
46
|
import { n as generateSessionId, t as cacheCredentialBoundarySetupExportPrfFirst } from "./prfCache-CgAr-VEU.js";
|
|
47
|
-
import {
|
|
47
|
+
import { l as emitSigningSessionFlowFailure, u as emitSigningSessionFlowTrace } from "./trace-08ayoiNp.js";
|
|
48
48
|
import { t as webAuthnPromptCoordinator } from "./webauthnPromptCoordinator-CLeba8ru.js";
|
|
49
49
|
import { a as toActionArgsWasm, t as ActionType } from "./actions-DsBQcjBn.js";
|
|
50
50
|
import { t as MinimalNearClient } from "./NearClient-BQgcqAzG.js";
|
|
51
|
-
import { A as UserConfirmMessageType, C as getSignIntentDigestSubject, E as getTxCount, M as normalizeConfirmationConfig, S as getNearAccountId, T as getSigningAuthMode, _ as sendConfirmProgress, a as formatNearAccountFundingProgressNotice, b as assertSigningRequestContext, c as collectAuthenticationCredentialForChallengeB64u, d as collectAuthenticationCredentialForWalletChallengeB64u, f as ERROR_MESSAGES, g as sanitizeForPostMessage, h as parseTransactionSummary, i as formatNearAccountFundingNotice, j as UserConfirmationType, m as isUserCancelledUserConfirm, n as createConfirmTxFlowAdapters, o as __isWalletIframeHostMode, p as createUserConfirmScopedWorker, r as mountConfirmUI, s as __setWalletIframeHostMode, t as createConfirmSession, v as sendConfirmResponse, w as getSignTransactionPayload, x as getIntentDigest, y as assertNoForbiddenMainThreadSigningSecrets } from "./adapters-
|
|
51
|
+
import { A as UserConfirmMessageType, C as getSignIntentDigestSubject, E as getTxCount, M as normalizeConfirmationConfig, S as getNearAccountId, T as getSigningAuthMode, _ as sendConfirmProgress, a as formatNearAccountFundingProgressNotice, b as assertSigningRequestContext, c as collectAuthenticationCredentialForChallengeB64u, d as collectAuthenticationCredentialForWalletChallengeB64u, f as ERROR_MESSAGES, g as sanitizeForPostMessage, h as parseTransactionSummary, i as formatNearAccountFundingNotice, j as UserConfirmationType, m as isUserCancelledUserConfirm, n as createConfirmTxFlowAdapters, o as __isWalletIframeHostMode, p as createUserConfirmScopedWorker, r as mountConfirmUI, s as __setWalletIframeHostMode, t as createConfirmSession, v as sendConfirmResponse, w as getSignTransactionPayload, x as getIntentDigest, y as assertNoForbiddenMainThreadSigningSecrets } from "./adapters-m94YFj70.js";
|
|
52
52
|
import { i as orderActionForDigest, n as computeUiIntentDigestFromNep413, r as computeUiIntentDigestFromTxs } from "./intentDigest-A1MbbJPu.js";
|
|
53
53
|
import { r as showWalletRecoveryCodesUi, t as pendingWalletRecoveryCodeBackupRepository } from "./pendingWalletRecoveryCodeBackup-DyvRysWg.js";
|
|
54
54
|
import { t as createEvmClient } from "./EvmClient-CHw6txjt.js";
|
|
55
55
|
import { n as resolveAppearanceTheme, o as resolveThemePalette } from "./configHelpers-DB73zYvO.js";
|
|
56
56
|
import { n as getDefaultCspNonce, t as createCspStylesheetManager } from "./csp-stylesheet-DLj_a6t_.js";
|
|
57
57
|
import { r as buildConfigsFromEnv } from "./defaultConfigs-CyNOW4Sy.js";
|
|
58
|
-
import { t as createNonceCoordinator } from "./NonceCoordinator-
|
|
58
|
+
import { t as createNonceCoordinator } from "./NonceCoordinator-C7mqpJiU.js";
|
|
59
59
|
import { i as resumePendingWalletRecoveries } from "./walletRecoveryCommit-G6w6N5RV.js";
|
|
60
|
-
import { i as loadWebAuthnP256EngineCtor, n as loadSignEvmFamilyWithUiConfirmForTempo, r as loadSignEvmWithUiConfirm, t as loadSecp256k1EngineCtor } from "./signerLoader-
|
|
61
|
-
import { A as authorizeEvmFamilyEcdsaSigningCapability, B as listLinkedEcdsaHolderRuntimesV1, C as buildExactPasskeyOwnerLaneScope, D as buildPersistedEcdsaRoleLocalMaterial, E as resolveExactWalletAuthAuthority$1, F as signingAuthorizationFromPreprocessing, H as resolveLinkedEcdsaHolderRuntimeV1, I as ensureSealedRefreshStartupParityForThresholdEcdsaBootstrap, L as isRetryableSealedRefreshCapabilityFetchError, M as buildEcdsaPreprocessingCapability, N as buildExactEcdsaDirectCapabilityRuntime, O as ecdsaRoleLocalPersistedMaterialSource, P as buildExactEvmFamilyWalletSessionAuthorization, R as clearLinkedEcdsaHolderRuntimesV1, S as buildExactLinkedEmailOtpOwnerLaneScope, T as resolveExactOwnerLaneScope, V as removeLinkedEcdsaHolderRuntimeV1, _ as resolveEmailOtpEcdsaSigningSessionAuth, a as reportTempoFinalized, b as withThresholdEcdsaSigningQueue, c as resolveActiveWalletAuthorityEcdsaRuntimeV1, d as createActiveEcdsaCapabilityRuntimeForChainResolver, f as createActiveEcdsaCapabilityRuntimeResolver, g as requestEmailOtpSigningSessionChallenge$1, h as refreshEmailOtpSigningSession$1, i as reportTempoDroppedOrReplaced, j as buildCanonicalEvmFamilyEcdsaSigningCapability, k as resolveEcdsaRoleLocalMaterial, l as issueEcdsaOperationStepUpAuthorization, m as resolveExactEcdsaSealedRuntime, n as reportTempoBroadcastAccepted, o as signEvmFamily, p as resolveExactEcdsaCapabilityRuntime, r as reportTempoBroadcastRejected, t as reconcileTempoNonceLane, u as prepareEcdsaOperationStepUp, v as clearThresholdEcdsaSigningQueue, w as isOwnerRelinkRequiredError, x as buildExactEcdsaPasskeyOwnerLaneScope, y as resolveThresholdEcdsaSigningQueueKey, z as installLinkedEcdsaHolderRuntimeV1 } from "./signEvmFamily-
|
|
60
|
+
import { i as loadWebAuthnP256EngineCtor, n as loadSignEvmFamilyWithUiConfirmForTempo, r as loadSignEvmWithUiConfirm, t as loadSecp256k1EngineCtor } from "./signerLoader-D_w-SfR9.js";
|
|
61
|
+
import { A as authorizeEvmFamilyEcdsaSigningCapability, B as listLinkedEcdsaHolderRuntimesV1, C as buildExactPasskeyOwnerLaneScope, D as buildPersistedEcdsaRoleLocalMaterial, E as resolveExactWalletAuthAuthority$1, F as signingAuthorizationFromPreprocessing, H as resolveLinkedEcdsaHolderRuntimeV1, I as ensureSealedRefreshStartupParityForThresholdEcdsaBootstrap, L as isRetryableSealedRefreshCapabilityFetchError, M as buildEcdsaPreprocessingCapability, N as buildExactEcdsaDirectCapabilityRuntime, O as ecdsaRoleLocalPersistedMaterialSource, P as buildExactEvmFamilyWalletSessionAuthorization, R as clearLinkedEcdsaHolderRuntimesV1, S as buildExactLinkedEmailOtpOwnerLaneScope, T as resolveExactOwnerLaneScope, V as removeLinkedEcdsaHolderRuntimeV1, _ as resolveEmailOtpEcdsaSigningSessionAuth, a as reportTempoFinalized, b as withThresholdEcdsaSigningQueue, c as resolveActiveWalletAuthorityEcdsaRuntimeV1, d as createActiveEcdsaCapabilityRuntimeForChainResolver, f as createActiveEcdsaCapabilityRuntimeResolver, g as requestEmailOtpSigningSessionChallenge$1, h as refreshEmailOtpSigningSession$1, i as reportTempoDroppedOrReplaced, j as buildCanonicalEvmFamilyEcdsaSigningCapability, k as resolveEcdsaRoleLocalMaterial, l as issueEcdsaOperationStepUpAuthorization, m as resolveExactEcdsaSealedRuntime, n as reportTempoBroadcastAccepted, o as signEvmFamily, p as resolveExactEcdsaCapabilityRuntime, r as reportTempoBroadcastRejected, t as reconcileTempoNonceLane, u as prepareEcdsaOperationStepUp, v as clearThresholdEcdsaSigningQueue, w as isOwnerRelinkRequiredError, x as buildExactEcdsaPasskeyOwnerLaneScope, y as resolveThresholdEcdsaSigningQueueKey, z as installLinkedEcdsaHolderRuntimeV1 } from "./signEvmFamily-pbMepepQ.js";
|
|
62
62
|
import { n as SigningAuthPlanKind } from "./promptText-BEgOkGxB.js";
|
|
63
63
|
import { C as isSigningOperationReviewApprovedStateKind, d as fullWalletLoginRequired, f as invalidWalletSigningMaterial, m as walletSigningMaterialBlockError, p as isWalletSigningStateFailure, v as SigningOperationInteractionEventKind } from "./operationFingerprint-DEPg9A3h.js";
|
|
64
64
|
import { _ as WALLET_SESSION_FAILURE_CODES, g as walletSessionFailureFromError, h as walletSessionFailureFromCode, p as WalletSessionFailureError } from "./routerAbNormalSigning-DktZKnf1.js";
|
|
65
65
|
import { _ as parseWalletSessionAuthorizationBoundary, d as availableEd25519SigningLaneAuthMethod, f as ecdsaAvailableLaneCandidatesForTarget, g as readAvailableSigningLanes, h as isConcreteAvailableSigningLane, l as activeWalletAuthorityAvailableLaneFromProjection, m as ecdsaAvailableLaneIdentityKey, p as ecdsaAvailableLaneForTarget, u as availableEcdsaSigningLaneAuthMethod, v as requireAuthoritativeExpiredWalletSessionAuthorizationBoundary } from "./transactionState-Bpm4GamO.js";
|
|
66
66
|
import { t as bytesToHex } from "./bytes-CwytAKz8.js";
|
|
67
|
-
import { a as PENDING_CHALLENGE_B64U, c as consumeIntentDigestPreparation, l as createEvmNonceBackend, n as EvmFamilyEcdsaMaterialSupersededError, s as clearIntentDigestPreparation } from "./signatureUses-
|
|
68
|
-
import { n as removeExportViewerHostIfPresent, t as isExportViewerSessionOpen } from "./export-viewer-host-
|
|
67
|
+
import { a as PENDING_CHALLENGE_B64U, c as consumeIntentDigestPreparation, l as createEvmNonceBackend, n as EvmFamilyEcdsaMaterialSupersededError, s as clearIntentDigestPreparation } from "./signatureUses-BY1IY7uz.js";
|
|
68
|
+
import { n as removeExportViewerHostIfPresent, t as isExportViewerSessionOpen } from "./export-viewer-host-CbqG8ZQV.js";
|
|
69
69
|
import { i as observeTransactionLifecycleReport, n as failTransactionActivity, r as observeTransactionActivity, t as beginTransactionActivity } from "./transaction-activity-DKgIGpKG.js";
|
|
70
70
|
import "./jsxRuntime.module-FAP0NE9p.js";
|
|
71
|
-
import { t as handleRegistrationFlow } from "./registration-
|
|
71
|
+
import { t as handleRegistrationFlow } from "./registration-DtDICj-o.js";
|
|
72
72
|
import { i as rotateWalletRecoverySet, n as readWalletRecoveryCodeStatus, r as requestWalletCustodyEmailOtpChallenge, t as acknowledgeWalletRecoveryBackup } from "./walletRecoveryRotate-BYOYJAyb.js";
|
|
73
73
|
//#region src/core/walletRuntimePaths/workers.ts
|
|
74
74
|
/**
|
|
@@ -7759,13 +7759,13 @@ async function handlePromptFromWorker(ctx, message, worker, options) {
|
|
|
7759
7759
|
switch (request.type) {
|
|
7760
7760
|
case UserConfirmationType.AUTHORIZE_KEY_EXPORT:
|
|
7761
7761
|
case UserConfirmationType.SHOW_SECURE_PRIVATE_KEY_UI: {
|
|
7762
|
-
const { handleLocalOnlyFlow } = await import("./localOnly-
|
|
7762
|
+
const { handleLocalOnlyFlow } = await import("./localOnly-CbLYTVbo.js");
|
|
7763
7763
|
await handleLocalOnlyFlow(ctx, request, scopedWorker, flowOptions);
|
|
7764
7764
|
break;
|
|
7765
7765
|
}
|
|
7766
7766
|
case UserConfirmationType.REGISTER_ACCOUNT:
|
|
7767
7767
|
case UserConfirmationType.LINK_DEVICE: {
|
|
7768
|
-
const { handleRegistrationFlow } = await import("./registration-
|
|
7768
|
+
const { handleRegistrationFlow } = await import("./registration-DtDICj-o.js").then((n) => n.n);
|
|
7769
7769
|
await handleRegistrationFlow(ctx, request, scopedWorker, flowOptions);
|
|
7770
7770
|
break;
|
|
7771
7771
|
}
|
|
@@ -26702,32 +26702,32 @@ function createSigningRuntime(deps) {
|
|
|
26702
26702
|
storeWalletEmailOtpEcdsaRegistrationData: async (input) => (await getEcdsaWalletRecords()).storeWalletEmailOtpEcdsaRegistrationData(input)
|
|
26703
26703
|
};
|
|
26704
26704
|
const nearSigning = { signNear: async (request) => {
|
|
26705
|
-
const { signNear } = await import("./signNear-
|
|
26705
|
+
const { signNear } = await import("./signNear-DVD9-IO5.js").then((n) => n.n);
|
|
26706
26706
|
return signNear(deps.signing.near.getDeps(), request);
|
|
26707
26707
|
} };
|
|
26708
26708
|
const evmFamilySigning = {
|
|
26709
26709
|
signEvmFamily: async (args) => {
|
|
26710
|
-
const { signEvmFamily } = await import("./signEvmFamily-
|
|
26710
|
+
const { signEvmFamily } = await import("./signEvmFamily-pbMepepQ.js").then((n) => n.s);
|
|
26711
26711
|
return signEvmFamily(deps.signing.evmFamily.getDeps(), args);
|
|
26712
26712
|
},
|
|
26713
26713
|
reportTempoBroadcastAccepted: async (args) => {
|
|
26714
|
-
const { reportTempoBroadcastAccepted } = await import("./signEvmFamily-
|
|
26714
|
+
const { reportTempoBroadcastAccepted } = await import("./signEvmFamily-pbMepepQ.js").then((n) => n.s);
|
|
26715
26715
|
return reportTempoBroadcastAccepted(deps.signing.evmFamily.getDeps(), args);
|
|
26716
26716
|
},
|
|
26717
26717
|
reportTempoBroadcastRejected: async (args) => {
|
|
26718
|
-
const { reportTempoBroadcastRejected } = await import("./signEvmFamily-
|
|
26718
|
+
const { reportTempoBroadcastRejected } = await import("./signEvmFamily-pbMepepQ.js").then((n) => n.s);
|
|
26719
26719
|
return reportTempoBroadcastRejected(deps.signing.evmFamily.getDeps(), args);
|
|
26720
26720
|
},
|
|
26721
26721
|
reportTempoFinalized: async (args) => {
|
|
26722
|
-
const { reportTempoFinalized } = await import("./signEvmFamily-
|
|
26722
|
+
const { reportTempoFinalized } = await import("./signEvmFamily-pbMepepQ.js").then((n) => n.s);
|
|
26723
26723
|
return reportTempoFinalized(deps.signing.evmFamily.getDeps(), args);
|
|
26724
26724
|
},
|
|
26725
26725
|
reportTempoDroppedOrReplaced: async (args) => {
|
|
26726
|
-
const { reportTempoDroppedOrReplaced } = await import("./signEvmFamily-
|
|
26726
|
+
const { reportTempoDroppedOrReplaced } = await import("./signEvmFamily-pbMepepQ.js").then((n) => n.s);
|
|
26727
26727
|
return reportTempoDroppedOrReplaced(deps.signing.evmFamily.getDeps(), args);
|
|
26728
26728
|
},
|
|
26729
26729
|
reconcileTempoNonceLane: async (args) => {
|
|
26730
|
-
const { reconcileTempoNonceLane } = await import("./signEvmFamily-
|
|
26730
|
+
const { reconcileTempoNonceLane } = await import("./signEvmFamily-pbMepepQ.js").then((n) => n.s);
|
|
26731
26731
|
return reconcileTempoNonceLane(deps.signing.evmFamily.getDeps(), args);
|
|
26732
26732
|
}
|
|
26733
26733
|
};
|
|
@@ -32217,7 +32217,7 @@ async function logout(context) {
|
|
|
32217
32217
|
}
|
|
32218
32218
|
async function resumeNearAfterSuccessfulUnlock(args) {
|
|
32219
32219
|
try {
|
|
32220
|
-
await (await import("./registration-
|
|
32220
|
+
await (await import("./registration-PIBMSsQR.js").then((n) => n.o)).resumeNearRegistrationAfterUnlock(args);
|
|
32221
32221
|
} catch (error) {
|
|
32222
32222
|
console.warn("[login] NEAR continuation could not start", error instanceof Error ? error.message : "module unavailable");
|
|
32223
32223
|
} finally {
|
|
@@ -21,19 +21,19 @@ async function preloadWalletHostRecoveryCodeSurface() {
|
|
|
21
21
|
await recoveryCodeSurfacePromise;
|
|
22
22
|
}
|
|
23
23
|
async function preloadRegistrationPreparation() {
|
|
24
|
-
registrationPreparationPromise ??= import("./registrationPreparationPreload-
|
|
24
|
+
registrationPreparationPromise ??= import("./registrationPreparationPreload-BZfAC_ba.js");
|
|
25
25
|
await (await registrationPreparationPromise).preloadWalletHostRegistrationPreparation();
|
|
26
26
|
}
|
|
27
27
|
function loadRuntimeForKind(kind) {
|
|
28
28
|
switch (kind) {
|
|
29
|
-
case "auth": return import("./runtime-auth-
|
|
30
|
-
case "near": return import("./runtime-near-
|
|
31
|
-
case "ecdsa": return import("./runtime-ecdsa-tempo-
|
|
32
|
-
case "email_otp": return import("./runtime-email-otp-
|
|
33
|
-
case "recovery": return import("./runtime-recovery-
|
|
34
|
-
case "export": return import("./runtime-export
|
|
35
|
-
case "device_link": return import("./runtime-device-link-
|
|
36
|
-
case "preferences": return import("./runtime-preferences-
|
|
29
|
+
case "auth": return import("./runtime-auth-D_lUQQlc.js");
|
|
30
|
+
case "near": return import("./runtime-near-CGoWxu7u.js");
|
|
31
|
+
case "ecdsa": return import("./runtime-ecdsa-tempo-tUWnafRo.js");
|
|
32
|
+
case "email_otp": return import("./runtime-email-otp-1wIPTDim.js");
|
|
33
|
+
case "recovery": return import("./runtime-recovery-BEqBdpyo.js");
|
|
34
|
+
case "export": return import("./runtime-export-Du2d4_Vu.js");
|
|
35
|
+
case "device_link": return import("./runtime-device-link-CEph1iM0.js");
|
|
36
|
+
case "preferences": return import("./runtime-preferences-JwJK_xP3.js");
|
|
37
37
|
}
|
|
38
38
|
return assertNever(kind);
|
|
39
39
|
}
|
|
@@ -6,7 +6,7 @@ import { Bt as parseWalletAuthAuthorityRef, Cn as routerAbMpcMaterialActivationR
|
|
|
6
6
|
import { d as parseEcdsaThresholdKeyId, i as parseEcdsaKeyHandle, l as parseEcdsaRoleLocalPersistedMaterialRef, r as parseEcdsaClientVerifyingShareB64u, t as formatEcdsaKeyHandleForWire, u as parseEcdsaRoleLocalWorkerHandle } from "./keyMaterialBrands-BbjCfzXv.js";
|
|
7
7
|
import { t as executeWorkerOperation } from "./executeWorkerOperation-Bn8GEuT_.js";
|
|
8
8
|
import { n as ecdsaClientPresignPoolKey, t as FIXED_ECDSA_PRESIGN_PROTOCOL_ID } from "./ecdsaPresignPoolIdentity-Yopr4jvS.js";
|
|
9
|
-
import { i as emitEcdsaSigningTiming,
|
|
9
|
+
import { i as emitEcdsaSigningTiming, n as emitEcdsaPresignServerTiming, r as emitEcdsaServerTiming, u as emitSigningSessionFlowTrace } from "./trace-08ayoiNp.js";
|
|
10
10
|
import { t as DEFAULT_ROUTER_AB_ECDSA_DERIVATION_PRESIGNATURE_POOL_POLICY } from "./defaultConfigs-CyNOW4Sy.js";
|
|
11
11
|
import { c as prepareRouterAbEcdsaDerivationEvmDigestSigningV1, l as prepareRouterAbEcdsaFinalPresignBatchV1, o as finalizeRouterAbEcdsaDerivationEvmDigestSigningV1, t as RouterAbSigningRequestError } from "./routerAbNormalSigning-DktZKnf1.js";
|
|
12
12
|
import { o as validateSecp256k1PublicKey33Wasm, s as verifySecp256k1RecoverableSignatureAgainstPublicKey33Wasm, t as addSecp256k1PublicKeys33Wasm } from "./evmCryptoWasm-BVj135bZ.js";
|
|
@@ -16,21 +16,21 @@ import { d as parseEcdsaThresholdKeyId, l as parseEcdsaRoleLocalPersistedMateria
|
|
|
16
16
|
import { a as SIGNING_SESSION_EXPIRY_DETECTION_SOURCES, m as createSigningFlowEvent, o as SigningEventPhase } from "./sdkSentEvents-5Pi-hjHB.js";
|
|
17
17
|
import { t as parseSignerSlot } from "./signerSlot-DbNAs-kc.js";
|
|
18
18
|
import { t as demoEmailOtpCodeFromDelivery } from "./challengeDelivery-BjLKoou3.js";
|
|
19
|
-
import { b as openEcdsaRoleLocalSigningMaterialWasm, t as buildReadySecp256k1SigningMaterial } from "./secp256k1-
|
|
19
|
+
import { b as openEcdsaRoleLocalSigningMaterialWasm, t as buildReadySecp256k1SigningMaterial } from "./secp256k1-CWDid9WH.js";
|
|
20
20
|
import { D as projectEcdsaRoleLocalPublicFactsToChainTarget, y as routerAbEcdsaDerivationPublicCapabilitiesEqual } from "./ecdsaCapabilityManifest-C8itxV9S.js";
|
|
21
21
|
import { c as evmNonceLeaseToManagedReservation, l as evmReserveNonceInputToLane, s as evmManagedReservationToLane } from "./nonceLaneKeys-B_RcSS6M.js";
|
|
22
22
|
import { c as buildTempoTransactionSigningLane, o as buildEvmTransactionSigningLane, x as selectedEcdsaLane, y as laneCandidateAuthMethod } from "./nearEd25519YaoSigningPreparation-DX6xG-IW.js";
|
|
23
23
|
import { a as throwEmailOtpSigningSessionAuthStateError, o as buildEmailOtpRoutePlan } from "./routePlan-nLpPFHB-.js";
|
|
24
24
|
import { r as parseSigningOperationFingerprintDigest } from "./operationFingerprint-CsYO6b0a.js";
|
|
25
|
-
import {
|
|
26
|
-
import { i as loadWebAuthnP256EngineCtor, n as loadSignEvmFamilyWithUiConfirmForTempo, r as loadSignEvmWithUiConfirm, t as loadSecp256k1EngineCtor } from "./signerLoader-
|
|
25
|
+
import { c as emitSigningPlannerDecisionTrace, l as emitSigningSessionFlowFailure, o as emitSigningBoundaryTrace, s as emitSigningLaneResolutionTrace, t as createSigningBoundaryTraceEvent, u as emitSigningSessionFlowTrace } from "./trace-08ayoiNp.js";
|
|
26
|
+
import { i as loadWebAuthnP256EngineCtor, n as loadSignEvmFamilyWithUiConfirmForTempo, r as loadSignEvmWithUiConfirm, t as loadSecp256k1EngineCtor } from "./signerLoader-D_w-SfR9.js";
|
|
27
27
|
import { a as isPasskeySigningAuthPlan, i as isEmailOtpSigningAuthPlan, n as SigningAuthPlanKind } from "./promptText-BEgOkGxB.js";
|
|
28
28
|
import { t as computeSigningOperationFingerprint, u as signingAuthPlanFromSigningSessionPlan } from "./operationFingerprint-DEPg9A3h.js";
|
|
29
29
|
import { S as decideWalletSessionQuotaAdmissionFailure, _ as WALLET_SESSION_FAILURE_CODES, g as walletSessionFailureFromError, m as walletSessionFailureErrorFromPayload, v as WalletSessionQuotaAdmissionError, x as classifyWalletSessionQuotaAdmissionFailure, y as buildOperationAuthorizationQueueKey } from "./routerAbNormalSigning-DktZKnf1.js";
|
|
30
30
|
import { b as withThresholdCommitQueue, f as ecdsaAvailableLaneCandidatesForTarget, h as isConcreteAvailableSigningLane, o as selectEvmFamilyEcdsaMaterialCandidate, r as prepareTransactionSigningOperation, u as availableEcdsaSigningLaneAuthMethod, v as requireAuthoritativeExpiredWalletSessionAuthorizationBoundary, y as clearThresholdCommitQueue } from "./transactionState-Bpm4GamO.js";
|
|
31
31
|
import { t as bytesToHex } from "./bytes-CwytAKz8.js";
|
|
32
|
-
import { d as reserveNonceInputFromBoundary, f as buildEvmDisplayModel, r as isEvmFamilyEcdsaMaterialSupersededError, t as requiredEvmFamilyRequestSignatureUses, u as fromManagedNonceReservationSnapshot } from "./signatureUses-
|
|
33
|
-
import { t as buildTempoDisplayModel } from "./display-
|
|
32
|
+
import { d as reserveNonceInputFromBoundary, f as buildEvmDisplayModel, r as isEvmFamilyEcdsaMaterialSupersededError, t as requiredEvmFamilyRequestSignatureUses, u as fromManagedNonceReservationSnapshot } from "./signatureUses-BY1IY7uz.js";
|
|
33
|
+
import { t as buildTempoDisplayModel } from "./display-DHdC2yXU.js";
|
|
34
34
|
//#region src/core/signingEngine/session/material/linkedEcdsaHolderRuntime.ts
|
|
35
35
|
const linkedHolderRuntimes = /* @__PURE__ */ new Map();
|
|
36
36
|
function runtimeKey(input) {
|
|
@@ -11,8 +11,8 @@ import "./signingSessionSeal-CdtgXHSL.js";
|
|
|
11
11
|
import { t as executeWorkerOperation } from "./executeWorkerOperation-Bn8GEuT_.js";
|
|
12
12
|
import "./operationFingerprint-CsYO6b0a.js";
|
|
13
13
|
import { t as bytesToHex } from "./bytes-CwytAKz8.js";
|
|
14
|
-
import { f as buildEvmDisplayModel, i as signEvmFamilyWithUiConfirm, t as requiredEvmFamilyRequestSignatureUses } from "./signatureUses-
|
|
15
|
-
import { t as buildTempoDisplayModel } from "./display-
|
|
14
|
+
import { f as buildEvmDisplayModel, i as signEvmFamilyWithUiConfirm, t as requiredEvmFamilyRequestSignatureUses } from "./signatureUses-BY1IY7uz.js";
|
|
15
|
+
import { t as buildTempoDisplayModel } from "./display-DHdC2yXU.js";
|
|
16
16
|
import { i as decodeCoseP256PublicKeyWasm } from "./evmCryptoWasm-BVj135bZ.js";
|
|
17
17
|
import { t as EvmAdapter } from "./evmAdapter-C5NR5tiV.js";
|
|
18
18
|
//#region src/core/signingEngine/chains/tempo/tempoSignerWasm.ts
|
|
@@ -7,7 +7,7 @@ import "./capabilityKinds-jwCEaqBU.js";
|
|
|
7
7
|
import "./evmFamilyEcdsaIdentity-_kuKSW35.js";
|
|
8
8
|
import "./signingSessionSeal-CdtgXHSL.js";
|
|
9
9
|
import "./operationFingerprint-CsYO6b0a.js";
|
|
10
|
-
import { f as buildEvmDisplayModel, i as signEvmFamilyWithUiConfirm, t as requiredEvmFamilyRequestSignatureUses } from "./signatureUses-
|
|
10
|
+
import { f as buildEvmDisplayModel, i as signEvmFamilyWithUiConfirm, t as requiredEvmFamilyRequestSignatureUses } from "./signatureUses-BY1IY7uz.js";
|
|
11
11
|
import { t as EvmAdapter } from "./evmAdapter-C5NR5tiV.js";
|
|
12
12
|
//#region src/core/signingEngine/flows/signEvmFamily/signEvmWithUiConfirm.ts
|
|
13
13
|
async function signEvmWithUiConfirm(args) {
|
|
@@ -23,15 +23,15 @@ import { a as normalizeRegistrationCredential, i as normalizeAuthenticationCrede
|
|
|
23
23
|
import { p as nonceLeaseToRef } from "./nonceLaneKeys-B_RcSS6M.js";
|
|
24
24
|
import { i as buildNearAccountRefs, n as resolveProfileAccountContextFromCandidates } from "./profileAccountProjection-C9rVhbeJ.js";
|
|
25
25
|
import { i as WorkerResponseType, n as NearSignerWorkerCustomRequestType, r as WorkerRequestType } from "./signer-worker-DYRteieu.js";
|
|
26
|
-
import {
|
|
26
|
+
import { s as parseWalletSessionAlreadyCommittedResponseV1, t as nearEd25519YaoMaterialActivationFromMetadata, y as fundImplicitNearAccountForTesting } from "./nearEd25519YaoMaterialActivation-Cz5UJQ_7.js";
|
|
27
27
|
import { n as buildRelayerJsonPostRequestInit, t as buildBearerAuthorizationHeader } from "./relayerHttp-LsVTZCxA.js";
|
|
28
28
|
import { s as buildNearTransactionSigningLane } from "./nearEd25519YaoSigningPreparation-DX6xG-IW.js";
|
|
29
29
|
import { n as computeCapabilityOperationFingerprintDigest, r as parseSigningOperationFingerprintDigest, t as buildCapabilityOperationEnvelope } from "./operationFingerprint-CsYO6b0a.js";
|
|
30
|
-
import { a as
|
|
30
|
+
import { a as emitEd25519SigningTiming, c as emitSigningPlannerDecisionTrace, o as emitSigningBoundaryTrace, s as emitSigningLaneResolutionTrace, t as createSigningBoundaryTraceEvent } from "./trace-08ayoiNp.js";
|
|
31
31
|
import { a as toActionArgsWasm, n as fromActionArgsWasm, o as validateActionArgsWasm, t as ActionType } from "./actions-DsBQcjBn.js";
|
|
32
32
|
import { n as SignedTransaction } from "./NearClient-BQgcqAzG.js";
|
|
33
33
|
import { n as PASSKEY_MANAGER_DEFAULT_CONFIGS } from "./defaultConfigs-CyNOW4Sy.js";
|
|
34
|
-
import { n as buildNearNonceLane } from "./NonceCoordinator-
|
|
34
|
+
import { n as buildNearNonceLane } from "./NonceCoordinator-C7mqpJiU.js";
|
|
35
35
|
import { a as isPasskeySigningAuthPlan, i as isEmailOtpSigningAuthPlan, n as SigningAuthPlanKind, o as isWarmSessionSigningAuthPlan } from "./promptText-BEgOkGxB.js";
|
|
36
36
|
import { S as isSigningOperationReviewApprovedState, _ as SigningOperationCommandKind, c as runSigningConfirmationCommand, g as prepareStepUpAuth, h as buildSigningConfirmationAuthParams, l as runTransactionSigningConfirmationCommand, n as confirmationConfigForSigningAuthPlan, o as mapSigningConfirmationProgress, s as resolveSigningConfirmationAuthMethod, u as signingAuthPlanFromSigningSessionPlan, w as runSigningOperationCommand, x as createSigningOperationStateRef } from "./operationFingerprint-DEPg9A3h.js";
|
|
37
37
|
import { C as waitForWalletSessionQuotaAdmissionRetry, S as decideWalletSessionQuotaAdmissionFailure, a as buildRouterAbEd25519NormalSigningFinalizeRequestV2, b as buildWalletSessionQuotaAdmissionQueueKey, d as routerAbCanonicalWireBytesToB64u, f as routerAbNormalSigningActionFingerprint, g as walletSessionFailureFromError, i as buildRouterAbEd25519Nep413PrepareRequestV2, n as buildRouterAbEd25519DelegateActionPrepareRequestV2, r as buildRouterAbEd25519NearTransactionPrepareRequestV2, s as finalizeRouterAbNormalSigningV2, u as prepareRouterAbNormalSigningV2, v as WalletSessionQuotaAdmissionError, x as classifyWalletSessionQuotaAdmissionFailure } from "./routerAbNormalSigning-DktZKnf1.js";
|
|
@@ -1771,6 +1771,18 @@ function requireActiveClientMatchesNormalSigningOperation(args) {
|
|
|
1771
1771
|
if (!sameBytes(metadata.signingWorkerVerifyingShare, args.signingWorkerVerifyingShare)) throw new Error("Router A/B Ed25519 active Client SigningWorker verifying share mismatch");
|
|
1772
1772
|
}
|
|
1773
1773
|
async function tryFinalizeRouterAbEd25519NormalSigningSignature(args) {
|
|
1774
|
+
const operationId = args.prepare.request.intent.operation_id;
|
|
1775
|
+
const signatureStartedAt = performance.now();
|
|
1776
|
+
let outcome = "failed";
|
|
1777
|
+
try {
|
|
1778
|
+
const finalized = await finalizeRouterAbEd25519NormalSigningSignature(args, operationId);
|
|
1779
|
+
outcome = "succeeded";
|
|
1780
|
+
return finalized;
|
|
1781
|
+
} finally {
|
|
1782
|
+
emitEd25519SigningTiming(operationId, "signature_total", signatureStartedAt, outcome);
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
async function finalizeRouterAbEd25519NormalSigningSignature(args, operationId) {
|
|
1774
1786
|
const signingPayload = base64UrlDecode(args.signingDigestB64u);
|
|
1775
1787
|
if (signingPayload.length !== 32) throw new Error(`Router A/B normal-signing ${args.signingPayloadLabel} must be 32 bytes`);
|
|
1776
1788
|
const admittedDigest = requireWireBytes32(args.prepare.admissionMaterial.admittedSigningDigest.bytes, "admitted digest");
|
|
@@ -1790,11 +1802,13 @@ async function tryFinalizeRouterAbEd25519NormalSigningSignature(args) {
|
|
|
1790
1802
|
runtimePolicyScope: args.walletSessionState.runtimePolicyScope,
|
|
1791
1803
|
relayerUrl: args.walletSessionState.relayerUrl
|
|
1792
1804
|
} : args.materialFacts;
|
|
1805
|
+
const prepareStartedAt = performance.now();
|
|
1793
1806
|
const prepareResponse = await prepareRouterAbNormalSigningV2({
|
|
1794
1807
|
relayServerUrl: materialFacts.relayerUrl,
|
|
1795
1808
|
credential: args.credential,
|
|
1796
1809
|
request: args.prepare.request
|
|
1797
1810
|
});
|
|
1811
|
+
emitEd25519SigningTiming(operationId, "prepare", prepareStartedAt);
|
|
1798
1812
|
requireRouterAbNormalSigningPrepareMatchesRequest({
|
|
1799
1813
|
request: args.prepare.request,
|
|
1800
1814
|
signingPayloadDigest: args.prepare.admissionMaterial.signingPayloadDigest,
|
|
@@ -1815,12 +1829,15 @@ async function tryFinalizeRouterAbEd25519NormalSigningSignature(args) {
|
|
|
1815
1829
|
signingWorkerId: prepareResponse.signing_worker.server_id,
|
|
1816
1830
|
signingWorkerVerifyingShare
|
|
1817
1831
|
});
|
|
1832
|
+
const clientShareStartedAt = performance.now();
|
|
1818
1833
|
const clientShare = await args.activeClient.createSigningShare({
|
|
1819
1834
|
admittedDigest,
|
|
1820
1835
|
signingWorkerCommitments: prepareResponse.server_commitments,
|
|
1821
1836
|
signingWorkerVerifyingShare
|
|
1822
1837
|
});
|
|
1838
|
+
emitEd25519SigningTiming(operationId, "client_share", clientShareStartedAt);
|
|
1823
1839
|
if (clientShare.clientVerifyingShare.length !== 32) throw new Error("Router A/B normal-signing Client verifying share must be 32 bytes");
|
|
1840
|
+
const finalizeStartedAt = performance.now();
|
|
1824
1841
|
const signingResponse = await finalizeRouterAbNormalSigningV2({
|
|
1825
1842
|
relayServerUrl: materialFacts.relayerUrl,
|
|
1826
1843
|
credential: args.credential,
|
|
@@ -1834,6 +1851,7 @@ async function tryFinalizeRouterAbEd25519NormalSigningSignature(args) {
|
|
|
1834
1851
|
clientSignatureShareB64u: clientShare.clientSignatureShareB64u
|
|
1835
1852
|
})
|
|
1836
1853
|
});
|
|
1854
|
+
emitEd25519SigningTiming(operationId, "finalize", finalizeStartedAt);
|
|
1837
1855
|
requireRouterAbNormalSigningResponseMatchesRequest({
|
|
1838
1856
|
request: args.prepare.request,
|
|
1839
1857
|
signingPayloadDigest: args.prepare.admissionMaterial.signingPayloadDigest,
|
|
@@ -2643,6 +2661,16 @@ function disposeOwnedNearOperationStepUpMaterialAndRethrow(args, error) {
|
|
|
2643
2661
|
disposeOwnedNearOperationStepUpMaterial(args);
|
|
2644
2662
|
throw error;
|
|
2645
2663
|
}
|
|
2664
|
+
async function resolveWarmNearSigningMaterial(args) {
|
|
2665
|
+
return {
|
|
2666
|
+
material: await resolvePreparedNearEd25519YaoMaterial(args.preparation, args.executor),
|
|
2667
|
+
walletSessionState: await args.executor.resolveWalletSessionState()
|
|
2668
|
+
};
|
|
2669
|
+
}
|
|
2670
|
+
function requireWarmNearSigningMaterialTask(task) {
|
|
2671
|
+
if (!task) throw new Error("[SigningEngine][near] warm signing material was not prepared");
|
|
2672
|
+
return task;
|
|
2673
|
+
}
|
|
2646
2674
|
async function resolveNearTransactionOperationStepUpMaterial(args) {
|
|
2647
2675
|
if (args.authorization.kind === "passkey") {
|
|
2648
2676
|
if (args.material.kind !== "passkey_live" && args.material.kind !== "passkey_sealed") throw new Error("[SigningEngine][near] passkey transaction material changed factor");
|
|
@@ -2983,6 +3011,8 @@ async function runAuthorizedNearTransactionWithActionsSigning({ ctx, commandSubj
|
|
|
2983
3011
|
const nearAccountId = toAccountId(nearAccount.accountId);
|
|
2984
3012
|
const relayerUrl = ctx.relayerUrl;
|
|
2985
3013
|
const warnings = [];
|
|
3014
|
+
const durableLeaseRecovery = ctx.nonceCoordinator.recoverDurableLeases({ walletId: String(commandSubject.walletSession.walletId) });
|
|
3015
|
+
durableLeaseRecovery.catch(() => {});
|
|
2986
3016
|
emitNearSigningEvent$2(onEvent, nearAccountId, {
|
|
2987
3017
|
phase: SigningEventPhase.STEP_02_REQUEST_PREPARED,
|
|
2988
3018
|
status: "running",
|
|
@@ -3082,6 +3112,11 @@ async function runAuthorizedNearTransactionWithActionsSigning({ ctx, commandSubj
|
|
|
3082
3112
|
...passkeyEd25519OperationStepUp ? { passkeyEd25519OperationStepUp } : {},
|
|
3083
3113
|
...emailOtpEd25519StepUp ? { emailOtpEd25519StepUp } : {}
|
|
3084
3114
|
});
|
|
3115
|
+
const warmSigningMaterialTask = preparedStepUp.kind === "warm_session" ? resolveWarmNearSigningMaterial({
|
|
3116
|
+
preparation: yaoSigningPreparation,
|
|
3117
|
+
executor: yaoMaterialExecutor
|
|
3118
|
+
}) : null;
|
|
3119
|
+
warmSigningMaterialTask?.catch(() => {});
|
|
3085
3120
|
const confirmationAuthPayload = preparedStepUp.confirmationAuthPayload;
|
|
3086
3121
|
if (isWarmSessionSigningAuthPlan(confirmationAuthPayload.signingAuthPlan)) emitNearSigningEvent$2(onEvent, nearAccountId, {
|
|
3087
3122
|
phase: SigningEventPhase.STEP_06_AUTH_WARM_SESSION_CLAIMED,
|
|
@@ -3176,6 +3211,7 @@ async function runAuthorizedNearTransactionWithActionsSigning({ ctx, commandSubj
|
|
|
3176
3211
|
readiness: operationStepUpReadiness
|
|
3177
3212
|
});
|
|
3178
3213
|
}
|
|
3214
|
+
const confirmationCompletedAt = performance.now();
|
|
3179
3215
|
const operationStepUpMaterial = operationStepUpReadiness ? await operationStepUpReadiness : null;
|
|
3180
3216
|
if (transactionReviewRequired) emitNearSigningEvent$2(onEvent, nearAccountId, {
|
|
3181
3217
|
phase: SigningEventPhase.STEP_05_CONFIRMATION_APPROVED,
|
|
@@ -3208,7 +3244,7 @@ async function runAuthorizedNearTransactionWithActionsSigning({ ctx, commandSubj
|
|
|
3208
3244
|
});
|
|
3209
3245
|
const ownsResolvedOperationStepUpMaterial = operationStepUpMaterial?.kind === "passkey_sealed" || operationStepUpMaterial?.kind === "email_otp_sealed";
|
|
3210
3246
|
try {
|
|
3211
|
-
await
|
|
3247
|
+
await durableLeaseRecovery;
|
|
3212
3248
|
} catch (error) {
|
|
3213
3249
|
disposeOwnedNearOperationStepUpMaterial({
|
|
3214
3250
|
resolved: resolvedOperationStepUpMaterial,
|
|
@@ -3231,14 +3267,14 @@ async function runAuthorizedNearTransactionWithActionsSigning({ ctx, commandSubj
|
|
|
3231
3267
|
});
|
|
3232
3268
|
const resolvedMaterial = stepUpAuthorization.kind === "warm_session" ? {
|
|
3233
3269
|
kind: "warm_session",
|
|
3234
|
-
|
|
3270
|
+
resolved: await requireWarmNearSigningMaterialTask(warmSigningMaterialTask)
|
|
3235
3271
|
} : {
|
|
3236
3272
|
kind: "operation_step_up",
|
|
3237
3273
|
resolved: resolvedOperationStepUpMaterial
|
|
3238
3274
|
};
|
|
3239
|
-
const canonicalThresholdSessionId = resolvedMaterial.kind === "warm_session" ? resolvedMaterial.material.facts.thresholdSessionId : resolvedMaterial.resolved.material.facts.thresholdSessionId;
|
|
3240
|
-
const activeYaoClient = resolvedMaterial.kind === "warm_session" ? resolvedMaterial.material.activeClient : resolvedMaterial.resolved.material.activeClient;
|
|
3241
|
-
const activeWalletSessionState = resolvedMaterial.kind === "warm_session" ?
|
|
3275
|
+
const canonicalThresholdSessionId = resolvedMaterial.kind === "warm_session" ? resolvedMaterial.resolved.material.facts.thresholdSessionId : resolvedMaterial.resolved.material.facts.thresholdSessionId;
|
|
3276
|
+
const activeYaoClient = resolvedMaterial.kind === "warm_session" ? resolvedMaterial.resolved.material.activeClient : resolvedMaterial.resolved.material.activeClient;
|
|
3277
|
+
const activeWalletSessionState = resolvedMaterial.kind === "warm_session" ? resolvedMaterial.resolved.walletSessionState : null;
|
|
3242
3278
|
const confirmedNearContext = resolvedMaterial.kind === "warm_session" ? await resolveConfirmedNearTransactionContext({
|
|
3243
3279
|
confirmation,
|
|
3244
3280
|
ctx,
|
|
@@ -3369,6 +3405,7 @@ async function runAuthorizedNearTransactionWithActionsSigning({ ctx, commandSubj
|
|
|
3369
3405
|
warnings,
|
|
3370
3406
|
nonceLeases: nonceLeaseRefs
|
|
3371
3407
|
});
|
|
3408
|
+
emitEd25519SigningTiming(String(signingOperation.operationId), "confirmed_to_signed", confirmationCompletedAt);
|
|
3372
3409
|
emitNearSigningEvent$2(onEvent, nearAccountId, {
|
|
3373
3410
|
phase: SigningEventPhase.STEP_11_TRANSACTION_SIGNED,
|
|
3374
3411
|
status: "succeeded",
|
|
@@ -5,7 +5,7 @@ import { E as SigningSessionIds } from "./evmFamilyEcdsaIdentity-_kuKSW35.js";
|
|
|
5
5
|
import { m as createSigningFlowEvent, o as SigningEventPhase } from "./sdkSentEvents-5Pi-hjHB.js";
|
|
6
6
|
import { i as normalizeAuthenticationCredential } from "./helpers-DpRjHMBx.js";
|
|
7
7
|
import { r as parseSigningOperationFingerprintDigest } from "./operationFingerprint-CsYO6b0a.js";
|
|
8
|
-
import { i as emitEcdsaSigningTiming } from "./trace-
|
|
8
|
+
import { i as emitEcdsaSigningTiming } from "./trace-08ayoiNp.js";
|
|
9
9
|
import { t as createEvmClient } from "./EvmClient-CHw6txjt.js";
|
|
10
10
|
import { a as isPasskeySigningAuthPlan, i as isEmailOtpSigningAuthPlan, o as isWarmSessionSigningAuthPlan, r as isActiveWalletAuthoritySigningAuthPlan } from "./promptText-BEgOkGxB.js";
|
|
11
11
|
import { E as runUnplannedSigningOperationCommandSequence, T as runSigningOperationCommandSteps, _ as SigningOperationCommandKind, a as makeRequestId, b as createSigningOperationPlan, g as prepareStepUpAuth, i as inferDigest32FromSignRequest, o as mapSigningConfirmationProgress, r as createSigningConfirmationCommandHandler, s as resolveSigningConfirmationAuthMethod, y as buildSigningOperationCommandSteps } from "./operationFingerprint-DEPg9A3h.js";
|
|
@@ -4,7 +4,7 @@ let webAuthnP256EngineCtorPromise = null;
|
|
|
4
4
|
let signEvmWithUiConfirmPromise = null;
|
|
5
5
|
let signEvmFamilyWithUiConfirmForTempoPromise = null;
|
|
6
6
|
async function loadSecp256k1EngineCtor() {
|
|
7
|
-
if (!secp256k1EngineCtorPromise) secp256k1EngineCtorPromise = import("./secp256k1-
|
|
7
|
+
if (!secp256k1EngineCtorPromise) secp256k1EngineCtorPromise = import("./secp256k1-CWDid9WH.js").then((n) => n.n).then((mod) => mod.Secp256k1Engine);
|
|
8
8
|
return await secp256k1EngineCtorPromise;
|
|
9
9
|
}
|
|
10
10
|
async function loadWebAuthnP256EngineCtor() {
|
|
@@ -12,11 +12,11 @@ async function loadWebAuthnP256EngineCtor() {
|
|
|
12
12
|
return await webAuthnP256EngineCtorPromise;
|
|
13
13
|
}
|
|
14
14
|
async function loadSignEvmWithUiConfirm() {
|
|
15
|
-
if (!signEvmWithUiConfirmPromise) signEvmWithUiConfirmPromise = import("./signEvmWithUiConfirm-
|
|
15
|
+
if (!signEvmWithUiConfirmPromise) signEvmWithUiConfirmPromise = import("./signEvmWithUiConfirm-nk-r3Rff.js").then((mod) => mod.signEvmWithUiConfirm);
|
|
16
16
|
return await signEvmWithUiConfirmPromise;
|
|
17
17
|
}
|
|
18
18
|
async function loadSignEvmFamilyWithUiConfirmForTempo() {
|
|
19
|
-
if (!signEvmFamilyWithUiConfirmForTempoPromise) signEvmFamilyWithUiConfirmForTempoPromise = import("./signEvmFamilyWithUiConfirmForTempo-
|
|
19
|
+
if (!signEvmFamilyWithUiConfirmForTempoPromise) signEvmFamilyWithUiConfirmForTempoPromise = import("./signEvmFamilyWithUiConfirmForTempo-CxvfCI_o.js").then((mod) => mod.signEvmFamilyWithUiConfirmForTempo);
|
|
20
20
|
return await signEvmFamilyWithUiConfirmForTempoPromise;
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
@@ -65,6 +65,15 @@ function emitEcdsaSigningTiming(operationId, stage, startedAt, outcome = "succee
|
|
|
65
65
|
outcome
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
+
function emitEd25519SigningTiming(operationId, stage, startedAt, outcome = "succeeded") {
|
|
69
|
+
emitSigningSessionFlowTrace("near", {
|
|
70
|
+
event: "ed25519_signing_timing",
|
|
71
|
+
operationId,
|
|
72
|
+
stage,
|
|
73
|
+
durationMs: Math.max(0, performance.now() - startedAt),
|
|
74
|
+
outcome
|
|
75
|
+
});
|
|
76
|
+
}
|
|
68
77
|
function emitSigningLaneResolutionTrace(scope, lane, args = {}) {
|
|
69
78
|
if (!lane || !isSigningSessionTraceEnabled()) return;
|
|
70
79
|
try {
|
|
@@ -115,4 +124,4 @@ function isSigningSessionTraceEnabled() {
|
|
|
115
124
|
}
|
|
116
125
|
}
|
|
117
126
|
//#endregion
|
|
118
|
-
export {
|
|
127
|
+
export { emitEd25519SigningTiming as a, emitSigningPlannerDecisionTrace as c, emitEcdsaSigningTiming as i, emitSigningSessionFlowFailure as l, emitEcdsaPresignServerTiming as n, emitSigningBoundaryTrace as o, emitEcdsaServerTiming as r, emitSigningLaneResolutionTrace as s, createSigningBoundaryTraceEvent as t, emitSigningSessionFlowTrace as u };
|