@seams/wallet 0.7.1 → 0.7.3
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/THIRD_PARTY_NOTICES.md +1 -105
- package/dist/.build-inputs.sha256 +1 -1
- package/dist/esm/SeamsWeb/SeamsWeb.js +10 -1
- package/dist/esm/SeamsWeb/operations/auth/login.js +16 -6
- package/dist/esm/SeamsWeb/operations/auth/scheduleLinkedDevicePresignaturePrefill.js +64 -0
- package/dist/esm/SeamsWeb/operations/auth/walletAuth.js +2 -3
- package/dist/esm/SeamsWeb/operations/auth/walletUnlockEcdsaSubject.js +1 -4
- package/dist/esm/SeamsWeb/operations/devices/deviceLinkingHttpTransport.js +11 -12
- package/dist/esm/SeamsWeb/operations/devices/deviceLinkingResume.js +1 -5
- package/dist/esm/SeamsWeb/operations/devices/deviceLinkingWorkerChannels.js +24 -24
- package/dist/esm/SeamsWeb/operations/recovery/walletRecoveryDurablePayload.js +4 -7
- package/dist/esm/SeamsWeb/operations/registration/pendingRegistrationRecovery.js +2 -8
- package/dist/esm/SeamsWeb/operations/tempo/executeEvmFamilyTransaction.js +4 -1
- package/dist/esm/SeamsWeb/publicApi/auth.js +2 -1
- package/dist/esm/SeamsWeb/publicApi/tempo.js +6 -0
- package/dist/esm/SeamsWeb/signingSurface/BrowserSigningSurface.js +24 -15
- package/dist/esm/SeamsWeb/walletIframe/host/restoredSessionPresignaturePrefill.js +29 -0
- package/dist/esm/SeamsWeb/walletIframe/host/ui/auth-menu/AuthMenuSurface.js +88 -222
- package/dist/esm/SeamsWeb/walletIframe/shared/exactSessionState.js +6 -26
- package/dist/esm/build-paths.js +0 -2
- package/dist/esm/components/AccountMenuButton/MenuItem.css +17 -0
- package/dist/esm/components/AccountMenuButton/UserAccountButton.css +0 -5
- package/dist/esm/components/AccountMenuButton/Web3AuthProfileButton.css +0 -52
- package/dist/esm/components/QRCodeScanner.css +0 -15
- package/dist/esm/components/ShowQRCode.css +0 -14
- package/dist/esm/core/indexedDB/pendingWalletRecoveryCommit.js +5 -10
- package/dist/esm/core/indexedDB/pendingWalletRegistrationCommit.js +139 -273
- package/dist/esm/core/indexedDB/seamsWalletDB/laneHolderMaterialStore.js +10 -13
- package/dist/esm/core/rpcClients/relayer/walletRecoveryPrepare.js +69 -121
- package/dist/esm/core/signingEngine/assembly/ports/recovery.js +1 -1
- package/dist/esm/core/signingEngine/chains/evm/display/functionSelectors.js +2 -5
- package/dist/esm/core/signingEngine/flows/recovery/ecdsaExportFlow.js +2 -2
- package/dist/esm/core/signingEngine/flows/recovery/ecdsaExportMaterial.js +35 -28
- package/dist/esm/core/signingEngine/flows/recovery/ed25519YaoExportFlow.js +3 -3
- package/dist/esm/core/signingEngine/flows/recovery/exportKeypairOperation.js +1 -4
- package/dist/esm/core/signingEngine/flows/recovery/passkeyEd25519YaoRecovery.js +1 -4
- package/dist/esm/core/signingEngine/flows/signEvmFamily/emailOtpSigningSession.js +2 -2
- package/dist/esm/core/signingEngine/flows/signEvmFamily/preparedSigning.js +2 -9
- package/dist/esm/core/signingEngine/flows/signEvmFamily/signEvmFamily.js +6 -8
- package/dist/esm/core/signingEngine/flows/signEvmFamily/signers/ecdsaDerivationClientSigningMaterialSource.js +24 -18
- package/dist/esm/core/signingEngine/flows/signEvmFamily/signingFlow.js +6 -4
- package/dist/esm/core/signingEngine/flows/signEvmFamily/signingFlowRuntime.js +10 -9
- package/dist/esm/core/signingEngine/flows/signEvmFamily/transactionExecutor.js +2 -5
- package/dist/esm/core/signingEngine/flows/signNear/signNear.js +2 -2
- package/dist/esm/core/signingEngine/routerAb/ecdsaDerivation/presignaturePool.js +2 -0
- package/dist/esm/core/signingEngine/session/availability/availableSigningLanes.js +1 -10
- package/dist/esm/core/signingEngine/session/availability/persistedAvailableSigningLanes.js +7 -6
- package/dist/esm/core/signingEngine/session/emailOtp/EmailOtpWalletSessionCoordinator.js +108 -24
- package/dist/esm/core/signingEngine/session/emailOtp/ecdsaLogin.js +3 -8
- package/dist/esm/core/signingEngine/session/emailOtp/ecdsaRecovery.js +2 -2
- package/dist/esm/core/signingEngine/session/identity/selectLane.js +7 -21
- package/dist/esm/core/signingEngine/session/material/activeWalletAuthorityEcdsaRuntime.js +2 -7
- package/dist/esm/core/signingEngine/session/material/ecdsaCapabilityManifest.js +3 -15
- package/dist/esm/core/signingEngine/session/material/ecdsaSigningCapability.js +1 -1
- package/dist/esm/core/signingEngine/session/passkey/ed25519YaoWarmRecovery.js +1 -4
- package/dist/esm/core/signingEngine/session/persistence/sealedSessionRecords.js +5 -8
- package/dist/esm/core/signingEngine/session/warmCapabilities/ecdsaLoginPrefillSigningMaterialSource.js +2 -2
- package/dist/esm/core/signingEngine/session/warmCapabilities/nearEd25519CapabilityRehydration.js +1 -1
- package/dist/esm/core/signingEngine/threshold/commitQueueShared.js +20 -6
- package/dist/esm/core/signingEngine/threshold/crypto/ecdsaDerivationClientWasm.js +7 -4
- package/dist/esm/core/signingEngine/threshold/ecdsa/signingQueue.js +8 -50
- package/dist/esm/core/signingEngine/threshold/ed25519/commitQueue.js +7 -43
- package/dist/esm/core/signingEngine/uiConfirm/PasskeyMpcSessionManager.js +3 -2
- package/dist/esm/core/signingEngine/uiConfirm/ui/preact/TransactionReceipt.js +18 -16
- package/dist/esm/core/signingEngine/uiConfirm/ui/transaction-display/tree.js +1 -10
- package/dist/esm/core/signingEngine/workerManager/deviceLinkingPorts.js +67 -48
- package/dist/esm/core/signingEngine/workerManager/workerTransport.js +1 -5
- package/dist/esm/react/SeamsWeb/SeamsWeb.js +10 -1
- package/dist/esm/react/SeamsWeb/operations/auth/login.js +16 -6
- package/dist/esm/react/SeamsWeb/operations/auth/scheduleLinkedDevicePresignaturePrefill.js +64 -0
- package/dist/esm/react/SeamsWeb/operations/auth/walletAuth.js +2 -3
- package/dist/esm/react/SeamsWeb/operations/auth/walletUnlockEcdsaSubject.js +1 -4
- package/dist/esm/react/SeamsWeb/operations/devices/deviceLinkingHttpTransport.js +11 -12
- package/dist/esm/react/SeamsWeb/operations/devices/deviceLinkingResume.js +1 -5
- package/dist/esm/react/SeamsWeb/operations/devices/deviceLinkingWorkerChannels.js +24 -24
- package/dist/esm/react/SeamsWeb/operations/recovery/walletRecoveryDurablePayload.js +4 -7
- package/dist/esm/react/SeamsWeb/operations/registration/pendingRegistrationRecovery.js +2 -8
- package/dist/esm/react/SeamsWeb/operations/tempo/executeEvmFamilyTransaction.js +4 -1
- package/dist/esm/react/SeamsWeb/publicApi/auth.js +2 -1
- package/dist/esm/react/SeamsWeb/publicApi/tempo.js +6 -0
- package/dist/esm/react/SeamsWeb/signingSurface/BrowserSigningSurface.js +24 -15
- package/dist/esm/react/SeamsWeb/walletIframe/host/restoredSessionPresignaturePrefill.js +29 -0
- package/dist/esm/react/SeamsWeb/walletIframe/shared/exactSessionState.js +6 -26
- package/dist/esm/react/build-paths.js +0 -2
- package/dist/esm/react/components/AccountMenuButton/AuthenticationMethodsModal.js +2 -2
- package/dist/esm/react/components/AccountMenuButton/ExportKeysSection.js +1 -1
- package/dist/esm/react/components/AccountMenuButton/LinkedDevicesModal.js +4 -4
- package/dist/esm/react/components/AccountMenuButton/LockMenuItem.js +2 -1
- package/dist/esm/react/components/AccountMenuButton/MenuItem.css +17 -0
- package/dist/esm/react/components/AccountMenuButton/UserAccountButton.css +0 -5
- package/dist/esm/react/components/AccountMenuButton/WalletSettingsLayout.js +7 -7
- package/dist/esm/react/components/AccountMenuButton/Web3AuthProfileButton.css +0 -52
- package/dist/esm/react/components/AccountMenuButton/icons/GlobeIcon.js +12 -27
- package/dist/esm/react/components/AccountMenuButton/icons/KeyIcon.js +12 -27
- package/dist/esm/react/components/AccountMenuButton/icons/LaptopIcon.js +4 -19
- package/dist/esm/react/components/AccountMenuButton/icons/LinkIcon.js +4 -19
- package/dist/esm/react/components/AccountMenuButton/icons/LockIcon.js +11 -26
- package/dist/esm/react/components/AccountMenuButton/icons/MailIcon.js +10 -25
- package/dist/esm/react/components/AccountMenuButton/icons/RecoveryCodesIcon.js +16 -31
- package/dist/esm/react/components/AccountMenuButton/icons/ScanIcon.js +9 -24
- package/dist/esm/react/components/AccountMenuButton/icons/SlidersIcon.js +14 -29
- package/dist/esm/react/components/AccountMenuButton/icons/SmartphoneIcon.js +11 -26
- package/dist/esm/react/components/AccountMenuButton/icons/lucideIcon.js +27 -0
- package/dist/esm/react/components/AccountMenuButton/icons/strokeIcon.js +7 -17
- package/dist/esm/react/components/AccountMenuButton/index.js +6 -6
- package/dist/esm/react/components/QRCodeScanner.css +0 -15
- package/dist/esm/react/components/ShowQRCode.css +0 -14
- package/dist/esm/react/context/useSeamsWithSdkFlow.js +1 -2
- package/dist/esm/react/context/useWalletIframeLifecycle.js +0 -14
- package/dist/esm/react/core/indexedDB/pendingWalletRecoveryCommit.js +5 -10
- package/dist/esm/react/core/indexedDB/pendingWalletRegistrationCommit.js +139 -273
- package/dist/esm/react/core/rpcClients/relayer/walletRecoveryPrepare.js +4 -4
- package/dist/esm/react/core/signingEngine/assembly/ports/recovery.js +1 -1
- package/dist/esm/react/core/signingEngine/chains/evm/display/functionSelectors.js +2 -5
- package/dist/esm/react/core/signingEngine/flows/recovery/ecdsaExportFlow.js +2 -2
- package/dist/esm/react/core/signingEngine/flows/recovery/ecdsaExportMaterial.js +35 -28
- package/dist/esm/react/core/signingEngine/flows/recovery/ed25519YaoExportFlow.js +3 -3
- package/dist/esm/react/core/signingEngine/flows/recovery/exportKeypairOperation.js +1 -4
- package/dist/esm/react/core/signingEngine/flows/recovery/passkeyEd25519YaoRecovery.js +1 -4
- package/dist/esm/react/core/signingEngine/flows/signEvmFamily/emailOtpSigningSession.js +2 -2
- package/dist/esm/react/core/signingEngine/flows/signEvmFamily/preparedSigning.js +2 -9
- package/dist/esm/react/core/signingEngine/flows/signEvmFamily/signEvmFamily.js +6 -8
- package/dist/esm/react/core/signingEngine/flows/signEvmFamily/signers/ecdsaDerivationClientSigningMaterialSource.js +24 -18
- package/dist/esm/react/core/signingEngine/flows/signEvmFamily/signingFlow.js +6 -4
- package/dist/esm/react/core/signingEngine/flows/signEvmFamily/signingFlowRuntime.js +10 -9
- package/dist/esm/react/core/signingEngine/flows/signEvmFamily/transactionExecutor.js +2 -5
- package/dist/esm/react/core/signingEngine/flows/signNear/signNear.js +2 -2
- package/dist/esm/react/core/signingEngine/routerAb/ecdsaDerivation/presignaturePool.js +2 -0
- package/dist/esm/react/core/signingEngine/session/availability/availableSigningLanes.js +1 -10
- package/dist/esm/react/core/signingEngine/session/availability/persistedAvailableSigningLanes.js +7 -6
- package/dist/esm/react/core/signingEngine/session/emailOtp/EmailOtpWalletSessionCoordinator.js +108 -24
- package/dist/esm/react/core/signingEngine/session/emailOtp/ecdsaLogin.js +3 -8
- package/dist/esm/react/core/signingEngine/session/emailOtp/ecdsaRecovery.js +2 -2
- package/dist/esm/react/core/signingEngine/session/identity/selectLane.js +7 -21
- package/dist/esm/react/core/signingEngine/session/material/activeWalletAuthorityEcdsaRuntime.js +2 -7
- package/dist/esm/react/core/signingEngine/session/material/ecdsaCapabilityManifest.js +3 -15
- package/dist/esm/react/core/signingEngine/session/material/ecdsaSigningCapability.js +1 -1
- package/dist/esm/react/core/signingEngine/session/passkey/ed25519YaoWarmRecovery.js +1 -4
- package/dist/esm/react/core/signingEngine/session/persistence/sealedSessionRecords.js +5 -8
- package/dist/esm/react/core/signingEngine/session/warmCapabilities/ecdsaLoginPrefillSigningMaterialSource.js +2 -2
- package/dist/esm/react/core/signingEngine/session/warmCapabilities/nearEd25519CapabilityRehydration.js +1 -1
- package/dist/esm/react/core/signingEngine/threshold/commitQueueShared.js +20 -6
- package/dist/esm/react/core/signingEngine/threshold/crypto/ecdsaDerivationClientWasm.js +7 -4
- package/dist/esm/react/core/signingEngine/threshold/ecdsa/signingQueue.js +8 -50
- package/dist/esm/react/core/signingEngine/threshold/ed25519/commitQueue.js +7 -43
- package/dist/esm/react/core/signingEngine/uiConfirm/PasskeyMpcSessionManager.js +3 -2
- package/dist/esm/react/core/signingEngine/uiConfirm/ui/preact/TransactionReceipt.js +18 -16
- package/dist/esm/react/core/signingEngine/uiConfirm/ui/transaction-display/tree.js +1 -10
- package/dist/esm/react/core/signingEngine/workerManager/deviceLinkingPorts.js +67 -48
- package/dist/esm/react/core/signingEngine/workerManager/workerTransport.js +1 -5
- package/dist/esm/react/shared-ts/src/authorization/walletSessionIssuance.js +5 -8
- package/dist/esm/react/shared-ts/src/authorization/walletSignerActivationEquality.js +12 -0
- package/dist/esm/react/shared-ts/src/device-linking/committedSignerPackages.js +2 -5
- package/dist/esm/react/shared-ts/src/device-linking/delegatedActivationPlan.js +1 -5
- package/dist/esm/react/shared-ts/src/device-linking/ed25519ExportRoot.js +11 -15
- package/dist/esm/react/shared-ts/src/device-linking/sourceContribution.js +5 -8
- package/dist/esm/react/shared-ts/src/passkey-custody/primitives.js +5 -1
- package/dist/esm/react/shared-ts/src/signing-lanes/ownerContinuity.js +3 -7
- package/dist/esm/react/shared-ts/src/signing-lanes/recordParsers.js +12 -16
- package/dist/esm/react/shared-ts/src/threshold/signingRootScope.js +4 -1
- package/dist/esm/react/shared-ts/src/utils/ecdsaKeyFactsInventory.js +2 -4
- package/dist/esm/react/shared-ts/src/utils/ecdsaServerTiming.js +0 -1
- package/dist/esm/react/shared-ts/src/utils/exactKeys.js +17 -0
- package/dist/esm/react/shared-ts/src/utils/registrationIntent.js +2 -8
- package/dist/esm/react/shared-ts/src/utils/registrationSignerPlan.js +2 -5
- package/dist/esm/react/shared-ts/src/utils/routerAbEcdsaDerivation.js +1 -1
- package/dist/esm/react/shared-ts/src/utils/routerAbEd25519Yao.js +1 -1
- package/dist/esm/react/shared-ts/src/utils/thresholdEcdsaChainTarget.js +9 -0
- package/dist/esm/react/shared-ts/src/wallet-recovery/walletRecoveryCommittedProjection.js +1 -4
- package/dist/esm/react/styles/styles.css +17 -86
- package/dist/esm/react/utils/menuItemBlink.js +24 -0
- package/dist/esm/sdk/{accountLifecycle-BAGG_rbk.js → accountLifecycle-zthG08aC.js} +1 -1
- package/dist/esm/sdk/{adapters-B4JeK1nJ.js → adapters-Dli9XAZp.js} +20 -48
- package/dist/{public/sdk/canonicalSignerErrorCode-CRoJMVpp.js → esm/sdk/canonicalSignerErrorCode-BBIk365e.js} +1 -15
- package/dist/esm/sdk/{challengeDelivery-Dd0586fo.js → challengeDelivery-DZtopOAG.js} +1 -1
- package/dist/{public/sdk/configHelpers-vAQCzUD0.js → esm/sdk/configHelpers-D1EqxVxg.js} +1 -1
- package/dist/{public/sdk/defaultConfigs-B3c16M_8.js → esm/sdk/defaultConfigs-D_33pPT9.js} +3 -3
- package/dist/esm/sdk/{display-KdIL0ff7.js → display-P4nQF-yc.js} +1 -1
- package/dist/esm/sdk/{ecdsaCapabilityManifest-kzO_fW09.js → ecdsaCapabilityManifest-DuMs0VtU.js} +6 -18
- package/dist/{public/sdk/ecdsaPresignLifecycle-BFOTNYCK.js → esm/sdk/ecdsaPresignLifecycle-Bfx2AQKb.js} +2 -2
- package/dist/esm/sdk/{ecdsaWalletRecords-Cz4m6bIz.js → ecdsaWalletRecords-D42rtA9z.js} +2 -2
- package/dist/{public/sdk/evmFamilyEcdsaIdentity-Co5XDcEA.js → esm/sdk/evmFamilyEcdsaIdentity-CqGafQsI.js} +20 -34
- package/dist/esm/sdk/{exactSessionState-CiD5fBEs.js → exactSessionState-LWDUXydN.js} +10 -30
- package/dist/esm/sdk/{exactSigningLaneIdentity-DQeqPMST.js → exactSigningLaneIdentity-m6uTXV_A.js} +1 -1
- package/dist/esm/sdk/{export-viewer-host-ZqA2Yz3H.js → export-viewer-host-rWMSQQMP.js} +1 -1
- package/dist/{public/sdk/host-BWBbCAMu.js → esm/sdk/host-CnV8nAUe.js} +3 -3
- package/dist/{public/sdk/keyMaterialBrands-CX41hur6.js → esm/sdk/keyMaterialBrands-CogGAAZn.js} +1 -1
- package/dist/{public/sdk/localOnly-Bg8UuLZ5.js → esm/sdk/localOnly-DTpa2jD5.js} +2 -2
- package/dist/esm/sdk/{nearEd25519YaoMaterialActivation-DPb0s3hQ.js → nearEd25519YaoMaterialActivation-B5GecIvq.js} +38 -28
- package/dist/esm/sdk/{nearEd25519YaoSigningPreparation-BeD-SmbK.js → nearEd25519YaoSigningPreparation-CdOT5RuC.js} +3 -3
- package/dist/esm/sdk/{passkey-custody-Bk1jAknm.js → passkey-custody-UUHbC0pk.js} +1 -1
- package/dist/esm/sdk/{pendingWalletRecoveryCodeBackup-DLzBb3WQ.js → pendingWalletRecoveryCodeBackup-BWluQMbt.js} +1 -1
- package/dist/esm/sdk/{recovery-entrypoint-DW2tGyMs.js → recovery-entrypoint-C3fydnRC.js} +10 -10
- package/dist/esm/sdk/{registration-BZDzDv91.js → registration-Ct_7LdGf.js} +30 -42
- package/dist/esm/sdk/{registration-BzVHODuD.js → registration-DHERU8R_.js} +1 -1
- package/dist/esm/sdk/{registrationAccounts-CKku_Sgy.js → registrationAccounts-DmWPzf3T.js} +2 -2
- package/dist/esm/sdk/{registrationIntent-D0PxwEY4.js → registrationIntent-4zwk16zQ.js} +3 -9
- package/dist/esm/sdk/{registrationPreparationPreload-CIAuRlxI.js → registrationPreparationPreload-D6zpWp4O.js} +2 -2
- package/dist/esm/sdk/{registrationSignerPlan-CAikVZZQ.js → registrationSignerPlan-DhV8VAob.js} +2 -5
- package/dist/{public/sdk/router-C5lF_J_u.js → esm/sdk/router-B4ZWFy9E.js} +7 -7
- package/dist/{public/sdk/routerAbNormalSigning-fhvpDtmY.js → esm/sdk/routerAbNormalSigning-CVFEOZ2m.js} +1 -1
- package/dist/esm/sdk/router_ab_ed25519_yao_client_bg.wasm +0 -0
- package/dist/esm/sdk/{runtime-auth-DFTqwj3u.js → runtime-auth-DdfynDKt.js} +126 -273
- package/dist/esm/sdk/{runtime-device-link-C1Oub8Lw.js → runtime-device-link-HJ2ptFux.js} +12 -12
- package/dist/esm/sdk/{runtime-ecdsa-tempo-rkWwolw1.js → runtime-ecdsa-tempo-BGLsTAWR.js} +13 -13
- package/dist/{public/sdk/runtime-email-otp-vuUG5LYl.js → esm/sdk/runtime-email-otp-CpX88VZJ.js} +12 -12
- package/dist/{public/sdk/runtime-export-FZWj0HxJ.js → esm/sdk/runtime-export-DIVY473L.js} +13 -13
- package/dist/esm/sdk/{runtime-near-B9cjurVD.js → runtime-near-CxtQi4b2.js} +12 -12
- package/dist/esm/sdk/{runtime-preferences-Dq0bfyS5.js → runtime-preferences-vnJc5Svg.js} +12 -12
- package/dist/esm/sdk/{runtime-recovery-codes-bTm3fLV4.js → runtime-recovery-codes-BSCLVHQj.js} +6 -6
- package/dist/{public/sdk/runtime-recovery-C-vfFKF3.js → esm/sdk/runtime-recovery-i08vCJST.js} +12 -12
- package/dist/esm/sdk/{runtimeContext-iLXnxVlZ.js → runtimeContext-D3TBExQ6.js} +346 -305
- package/dist/esm/sdk/{runtimeLoader-hod6T2-m.js → runtimeLoader-DQVEFVaW.js} +11 -11
- package/dist/{public/sdk/secp256k1-el9aE4Sv.js → esm/sdk/secp256k1-D-I6Gh4D.js} +36 -25
- package/dist/esm/sdk/{sessionPolicy-CHiilOAB.js → sessionPolicy-DO-MkL65.js} +8 -1
- package/dist/{public/sdk/signEvmFamily-e4IWWsZs.js → esm/sdk/signEvmFamily-C3C97Th-.js} +43 -102
- package/dist/esm/sdk/{signEvmFamilyWithUiConfirmForTempo-Cu9qdk8M.js → signEvmFamilyWithUiConfirmForTempo-BI9DSTIS.js} +2 -2
- package/dist/{public/sdk/signEvmWithUiConfirm-C61TCBnh.js → esm/sdk/signEvmWithUiConfirm-Bmcim5-g.js} +1 -1
- package/dist/esm/sdk/{signNear-Bblwn2kT.js → signNear-Bmb2fj_a.js} +19 -55
- package/dist/{public/sdk/signerLoader-D7Aey0FD.js → esm/sdk/signerLoader-B7orgq5Z.js} +3 -3
- package/dist/{public/sdk/signingFlow-rZfPegH9.js → esm/sdk/signingFlow-SZ8t_lxv.js} +9 -10
- package/dist/esm/sdk/{trace-rHe0wz7q.js → trace-DKLQZvec.js} +0 -1
- package/dist/esm/sdk/{transactionState-DP9O8F6f.js → transactionState-CJ4U8pcl.js} +50 -41
- package/dist/esm/sdk/tx-confirm-ui.js +11 -46
- 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/{public/sdk/wallet-recovery-Bz9qKgaL.js → esm/sdk/wallet-recovery-BX61-79p.js} +3 -6
- package/dist/esm/sdk/wallet-ui.css +41 -301
- package/dist/{public/sdk/walletAuthority-BQBxgUBn.js → esm/sdk/walletAuthority-DD9T25F6.js} +1 -5
- package/dist/esm/sdk/{walletCustodyEcdsaContinuity-Hn4ORIbf.js → walletCustodyEcdsaContinuity-CF4bv9OI.js} +166 -296
- package/dist/esm/sdk/{walletRecoveryCommit-sjGNTHUj.js → walletRecoveryCommit-AI1AtIRP.js} +81 -139
- package/dist/esm/shared-ts/src/authorization/walletSessionIssuance.js +5 -8
- package/dist/esm/shared-ts/src/authorization/walletSignerActivationEquality.js +12 -0
- package/dist/esm/shared-ts/src/device-linking/committedSignerPackages.js +2 -5
- package/dist/esm/shared-ts/src/device-linking/delegatedActivationPlan.js +1 -5
- package/dist/esm/shared-ts/src/device-linking/ed25519ExportRoot.js +11 -15
- package/dist/esm/shared-ts/src/device-linking/sourceContribution.js +5 -8
- package/dist/esm/shared-ts/src/passkey-custody/primitives.js +5 -1
- package/dist/esm/shared-ts/src/signing-lanes/ownerContinuity.js +3 -7
- package/dist/esm/shared-ts/src/signing-lanes/recordParsers.js +12 -16
- package/dist/esm/shared-ts/src/threshold/signingRootScope.js +4 -1
- package/dist/esm/shared-ts/src/utils/ecdsaKeyFactsInventory.js +2 -4
- package/dist/esm/shared-ts/src/utils/ecdsaServerTiming.js +0 -1
- package/dist/esm/shared-ts/src/utils/exactKeys.js +17 -0
- package/dist/esm/shared-ts/src/utils/registrationIntent.js +2 -8
- package/dist/esm/shared-ts/src/utils/registrationSignerPlan.js +2 -5
- package/dist/esm/shared-ts/src/utils/routerAbEcdsaDerivation.js +1 -1
- package/dist/esm/shared-ts/src/utils/routerAbEd25519Yao.js +1 -1
- package/dist/esm/shared-ts/src/utils/thresholdEcdsaChainTarget.js +9 -0
- package/dist/esm/shared-ts/src/wallet-recovery/walletRecoveryCommittedProjection.js +1 -4
- package/dist/esm/utils/menuItemBlink.js +24 -0
- package/dist/esm/wasm/near_signer/pkg/wasm_signer_worker.d.ts +1 -1
- package/dist/esm/wasm/near_signer/pkg/wasm_signer_worker_bg.wasm +0 -0
- package/dist/esm/wasm/router_ab_ecdsa_client/pkg/router_ab_ecdsa_client_bg.wasm +0 -0
- package/dist/esm/wasm/router_ab_ed25519_yao_client/pkg/router_ab_ed25519_yao_client_bg.wasm +0 -0
- package/dist/public/headers.manifest.json +1 -1
- package/dist/public/sdk/{accountLifecycle-BAGG_rbk.js → accountLifecycle-zthG08aC.js} +1 -1
- package/dist/public/sdk/{adapters-B4JeK1nJ.js → adapters-Dli9XAZp.js} +20 -48
- package/dist/{esm/sdk/canonicalSignerErrorCode-CRoJMVpp.js → public/sdk/canonicalSignerErrorCode-BBIk365e.js} +1 -15
- package/dist/public/sdk/{challengeDelivery-Dd0586fo.js → challengeDelivery-DZtopOAG.js} +1 -1
- package/dist/{esm/sdk/configHelpers-vAQCzUD0.js → public/sdk/configHelpers-D1EqxVxg.js} +1 -1
- package/dist/{esm/sdk/defaultConfigs-B3c16M_8.js → public/sdk/defaultConfigs-D_33pPT9.js} +3 -3
- package/dist/public/sdk/{display-KdIL0ff7.js → display-P4nQF-yc.js} +1 -1
- package/dist/public/sdk/{ecdsaCapabilityManifest-kzO_fW09.js → ecdsaCapabilityManifest-DuMs0VtU.js} +6 -18
- package/dist/{esm/sdk/ecdsaPresignLifecycle-BFOTNYCK.js → public/sdk/ecdsaPresignLifecycle-Bfx2AQKb.js} +2 -2
- package/dist/public/sdk/{ecdsaWalletRecords-Cz4m6bIz.js → ecdsaWalletRecords-D42rtA9z.js} +2 -2
- package/dist/{esm/sdk/evmFamilyEcdsaIdentity-Co5XDcEA.js → public/sdk/evmFamilyEcdsaIdentity-CqGafQsI.js} +20 -34
- package/dist/public/sdk/{exactSessionState-CiD5fBEs.js → exactSessionState-LWDUXydN.js} +10 -30
- package/dist/public/sdk/{exactSigningLaneIdentity-DQeqPMST.js → exactSigningLaneIdentity-m6uTXV_A.js} +1 -1
- package/dist/public/sdk/{export-viewer-host-ZqA2Yz3H.js → export-viewer-host-rWMSQQMP.js} +1 -1
- package/dist/{esm/sdk/host-BWBbCAMu.js → public/sdk/host-CnV8nAUe.js} +3 -3
- package/dist/{esm/sdk/keyMaterialBrands-CX41hur6.js → public/sdk/keyMaterialBrands-CogGAAZn.js} +1 -1
- package/dist/{esm/sdk/localOnly-Bg8UuLZ5.js → public/sdk/localOnly-DTpa2jD5.js} +2 -2
- package/dist/public/sdk/{nearEd25519YaoMaterialActivation-DPb0s3hQ.js → nearEd25519YaoMaterialActivation-B5GecIvq.js} +38 -28
- package/dist/public/sdk/{nearEd25519YaoSigningPreparation-BeD-SmbK.js → nearEd25519YaoSigningPreparation-CdOT5RuC.js} +3 -3
- package/dist/public/sdk/{passkey-custody-Bk1jAknm.js → passkey-custody-UUHbC0pk.js} +1 -1
- package/dist/public/sdk/{pendingWalletRecoveryCodeBackup-DLzBb3WQ.js → pendingWalletRecoveryCodeBackup-BWluQMbt.js} +1 -1
- package/dist/public/sdk/{recovery-entrypoint-DW2tGyMs.js → recovery-entrypoint-C3fydnRC.js} +10 -10
- package/dist/public/sdk/{registration-BZDzDv91.js → registration-Ct_7LdGf.js} +30 -42
- package/dist/public/sdk/{registration-BzVHODuD.js → registration-DHERU8R_.js} +1 -1
- package/dist/public/sdk/{registrationAccounts-CKku_Sgy.js → registrationAccounts-DmWPzf3T.js} +2 -2
- package/dist/public/sdk/{registrationIntent-D0PxwEY4.js → registrationIntent-4zwk16zQ.js} +3 -9
- package/dist/public/sdk/{registrationPreparationPreload-CIAuRlxI.js → registrationPreparationPreload-D6zpWp4O.js} +2 -2
- package/dist/public/sdk/{registrationSignerPlan-CAikVZZQ.js → registrationSignerPlan-DhV8VAob.js} +2 -5
- package/dist/{esm/sdk/router-C5lF_J_u.js → public/sdk/router-B4ZWFy9E.js} +7 -7
- package/dist/{esm/sdk/routerAbNormalSigning-fhvpDtmY.js → public/sdk/routerAbNormalSigning-CVFEOZ2m.js} +1 -1
- package/dist/public/sdk/router_ab_ed25519_yao_client_bg.wasm +0 -0
- package/dist/public/sdk/{runtime-auth-DFTqwj3u.js → runtime-auth-DdfynDKt.js} +126 -273
- package/dist/public/sdk/{runtime-device-link-C1Oub8Lw.js → runtime-device-link-HJ2ptFux.js} +12 -12
- package/dist/public/sdk/{runtime-ecdsa-tempo-rkWwolw1.js → runtime-ecdsa-tempo-BGLsTAWR.js} +13 -13
- package/dist/{esm/sdk/runtime-email-otp-vuUG5LYl.js → public/sdk/runtime-email-otp-CpX88VZJ.js} +12 -12
- package/dist/{esm/sdk/runtime-export-FZWj0HxJ.js → public/sdk/runtime-export-DIVY473L.js} +13 -13
- package/dist/public/sdk/{runtime-near-B9cjurVD.js → runtime-near-CxtQi4b2.js} +12 -12
- package/dist/public/sdk/{runtime-preferences-Dq0bfyS5.js → runtime-preferences-vnJc5Svg.js} +12 -12
- package/dist/public/sdk/{runtime-recovery-codes-bTm3fLV4.js → runtime-recovery-codes-BSCLVHQj.js} +6 -6
- package/dist/{esm/sdk/runtime-recovery-C-vfFKF3.js → public/sdk/runtime-recovery-i08vCJST.js} +12 -12
- package/dist/public/sdk/{runtimeContext-iLXnxVlZ.js → runtimeContext-D3TBExQ6.js} +346 -305
- package/dist/public/sdk/{runtimeLoader-hod6T2-m.js → runtimeLoader-DQVEFVaW.js} +11 -11
- package/dist/{esm/sdk/secp256k1-el9aE4Sv.js → public/sdk/secp256k1-D-I6Gh4D.js} +36 -25
- package/dist/public/sdk/{sessionPolicy-CHiilOAB.js → sessionPolicy-DO-MkL65.js} +8 -1
- package/dist/{esm/sdk/signEvmFamily-e4IWWsZs.js → public/sdk/signEvmFamily-C3C97Th-.js} +43 -102
- package/dist/public/sdk/{signEvmFamilyWithUiConfirmForTempo-Cu9qdk8M.js → signEvmFamilyWithUiConfirmForTempo-BI9DSTIS.js} +2 -2
- package/dist/{esm/sdk/signEvmWithUiConfirm-C61TCBnh.js → public/sdk/signEvmWithUiConfirm-Bmcim5-g.js} +1 -1
- package/dist/public/sdk/{signNear-Bblwn2kT.js → signNear-Bmb2fj_a.js} +19 -55
- package/dist/{esm/sdk/signerLoader-D7Aey0FD.js → public/sdk/signerLoader-B7orgq5Z.js} +3 -3
- package/dist/{esm/sdk/signingFlow-rZfPegH9.js → public/sdk/signingFlow-SZ8t_lxv.js} +9 -10
- package/dist/public/sdk/{trace-rHe0wz7q.js → trace-DKLQZvec.js} +0 -1
- package/dist/public/sdk/{transactionState-DP9O8F6f.js → transactionState-CJ4U8pcl.js} +50 -41
- package/dist/public/sdk/tx-confirm-ui.js +11 -46
- 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/{esm/sdk/wallet-recovery-Bz9qKgaL.js → public/sdk/wallet-recovery-BX61-79p.js} +3 -6
- package/dist/public/sdk/wallet-ui.css +41 -301
- package/dist/{esm/sdk/walletAuthority-BQBxgUBn.js → public/sdk/walletAuthority-DD9T25F6.js} +1 -5
- package/dist/public/sdk/{walletCustodyEcdsaContinuity-Hn4ORIbf.js → walletCustodyEcdsaContinuity-CF4bv9OI.js} +166 -296
- package/dist/public/sdk/{walletRecoveryCommit-sjGNTHUj.js → walletRecoveryCommit-AI1AtIRP.js} +81 -139
- package/dist/public/sdk/workers/device-linking-key.worker.js +106 -105
- package/dist/public/sdk/workers/ecdsa-derivation-client.worker.js +15 -24
- package/dist/public/sdk/workers/ecdsa-presign-client.worker.js +58 -73
- package/dist/public/sdk/workers/email-otp.worker.js +13 -16
- package/dist/public/sdk/workers/evm_crypto.wasm +0 -0
- package/dist/public/sdk/workers/evm_crypto_bg.wasm +0 -0
- package/dist/public/sdk/workers/near_signer.wasm +0 -0
- package/dist/public/sdk/workers/router_ab_ecdsa_client_bg.wasm +0 -0
- package/dist/public/sdk/workers/router_ab_ed25519_yao_client_bg.wasm +0 -0
- package/dist/public/sdk/workers/tempo_signer.wasm +0 -0
- package/dist/public/sdk/workers/tempo_signer_bg.wasm +0 -0
- package/dist/public/sdk/workers/wallet-custody-ceremony.worker.js +7 -7
- package/dist/public/sdk/workers/wallet_custody_ceremony_bg.wasm +0 -0
- package/dist/public/sdk/workers/wasm_signer_worker_bg.wasm +0 -0
- package/dist/public/wallet-assets.manifest.json +112 -112
- package/dist/public/wallet-service/index.html +4 -4
- package/dist/types/shared-ts/src/authorization/delegatedAuthority.d.ts +2 -1
- package/dist/types/shared-ts/src/authorization/walletSessionIssuance.d.ts +9 -2
- package/dist/types/shared-ts/src/authorization/walletSignerActivationEquality.d.ts +4 -0
- package/dist/types/shared-ts/src/device-linking/committedSignerPackages.d.ts +3 -4
- package/dist/types/shared-ts/src/device-linking/contracts.d.ts +5 -63
- package/dist/types/shared-ts/src/device-linking/sourceContribution.d.ts +2 -0
- package/dist/types/shared-ts/src/passkey-custody/custodyEnvelope.d.ts +5 -12
- package/dist/types/shared-ts/src/passkey-custody/primitives.d.ts +9 -0
- package/dist/types/shared-ts/src/signing-lanes/execution.d.ts +11 -1
- package/dist/types/shared-ts/src/signing-lanes/ids.d.ts +1 -10
- package/dist/types/shared-ts/src/signing-lanes/rotation.d.ts +3 -5
- package/dist/types/shared-ts/src/tenant-root/tenantRootIdentifier.d.ts +3 -0
- package/dist/types/shared-ts/src/tenant-root/tenantRootOperationRecord.d.ts +2 -1
- package/dist/types/shared-ts/src/threshold/ecdsaDerivationRoleLocalBootstrap.d.ts +6 -0
- package/dist/types/shared-ts/src/threshold/signingRootScope.d.ts +1 -0
- package/dist/types/shared-ts/src/utils/ecdsaKeyFactsInventory.d.ts +2 -11
- package/dist/types/shared-ts/src/utils/eip1559TxWasmJson.d.ts +16 -0
- package/dist/types/shared-ts/src/utils/emailOtpDomain.d.ts +2 -0
- package/dist/types/shared-ts/src/utils/exactKeys.d.ts +11 -0
- package/dist/types/shared-ts/src/utils/failure.d.ts +12 -0
- package/dist/types/shared-ts/src/utils/jsonRpc.d.ts +3 -4
- package/dist/types/shared-ts/src/utils/nearRpcResults.d.ts +1 -0
- package/dist/types/shared-ts/src/utils/registrationAuthMethodInput.d.ts +3 -8
- package/dist/types/shared-ts/src/utils/registrationSignerPlan.d.ts +7 -19
- package/dist/types/shared-ts/src/utils/routerAbEcdsaDerivation.d.ts +3 -1
- package/dist/types/shared-ts/src/utils/routerAbEd25519Yao.d.ts +1 -0
- package/dist/types/shared-ts/src/utils/routerAbEd25519YaoDigests.d.ts +3 -4
- package/dist/types/shared-ts/src/utils/routerAbNormalSigningIdentity.d.ts +30 -8
- package/dist/types/shared-ts/src/utils/routerApiKeyAuth.d.ts +2 -0
- package/dist/types/shared-ts/src/utils/signingSessionSeal.d.ts +10 -11
- package/dist/types/shared-ts/src/utils/thresholdEcdsaChainTarget.d.ts +25 -0
- package/dist/types/shared-ts/src/utils/variant.d.ts +18 -0
- package/dist/types/shared-ts/src/utils/walletAuthMethodRecord.d.ts +3 -6
- package/dist/types/shared-ts/src/utils/webauthnDeviceInfo.d.ts +4 -2
- package/dist/types/shared-ts/src/wallet-recovery/recoveryEnvelopes.d.ts +3 -16
- package/dist/types/shared-ts/src/wallet-recovery/walletRecoveryPreparation.d.ts +15 -0
- package/dist/types/shared-ts/src/wallet-recovery/walletRecoveryTarget.d.ts +3 -4
- package/dist/types/wallet/build-paths.d.ts +1 -2
- package/dist/types/wallet/src/SeamsWeb/SeamsWeb.d.ts +2 -0
- package/dist/types/wallet/src/SeamsWeb/operations/auth/scheduleLinkedDevicePresignaturePrefill.d.ts +11 -0
- package/dist/types/wallet/src/SeamsWeb/operations/auth/walletAuth.d.ts +2 -1
- package/dist/types/wallet/src/SeamsWeb/operations/auth/walletUnlockSubject.d.ts +3 -17
- package/dist/types/wallet/src/SeamsWeb/operations/authMethods/emailOtp/walletActivation.d.ts +3 -4
- package/dist/types/wallet/src/SeamsWeb/operations/devices/deviceLinkingAuthorityInstallation.d.ts +2 -10
- package/dist/types/wallet/src/SeamsWeb/operations/tempo/executeEvmFamilyTransaction.d.ts +1 -1
- package/dist/types/wallet/src/SeamsWeb/publicApi/types.d.ts +7 -16
- package/dist/types/wallet/src/SeamsWeb/walletIframe/host/restoredSessionPresignaturePrefill.d.ts +2 -1
- package/dist/types/wallet/src/SeamsWeb/walletIframe/host/ui/auth-menu/AuthMenuSurface.d.ts +1 -2
- package/dist/types/wallet/src/SeamsWeb/walletIframe/shared/messages.d.ts +5 -15
- package/dist/types/wallet/src/core/accountData/near/keyMaterial.d.ts +3 -5
- package/dist/types/wallet/src/core/indexedDB/passkeyClientDB.types.d.ts +2 -8
- package/dist/types/wallet/src/core/indexedDB/pendingWalletRegistrationCommit.d.ts +3 -4
- package/dist/types/wallet/src/core/indexedDB/seamsWalletDB/ecdsaCapabilityManifestLookups.d.ts +7 -12
- package/dist/types/wallet/src/core/indexedDB/seamsWalletDB/walletSessionAuthorizationStore.d.ts +3 -6
- package/dist/types/wallet/src/core/platform/ecdsaRoleLocalRecords.d.ts +9 -38
- package/dist/types/wallet/src/core/platform/http.d.ts +3 -5
- package/dist/types/wallet/src/core/platform/ports.d.ts +3 -7
- package/dist/types/wallet/src/core/rpcClients/near/NearRpcError.d.ts +1 -2
- package/dist/types/wallet/src/core/rpcClients/relayer/ownerWalletExecutionLanePreflight.d.ts +2 -11
- package/dist/types/wallet/src/core/rpcClients/relayer/thresholdEcdsa.d.ts +2 -8
- package/dist/types/wallet/src/core/rpcClients/relayer/walletRecoveryPrepare.d.ts +2 -14
- package/dist/types/wallet/src/core/signingEngine/chains/near/payloads.d.ts +2 -10
- package/dist/types/wallet/src/core/signingEngine/flows/recovery/ecdsaDerivationExport.d.ts +3 -4
- package/dist/types/wallet/src/core/signingEngine/flows/recovery/ecdsaExportFlow.d.ts +4 -8
- package/dist/types/wallet/src/core/signingEngine/flows/recovery/keyExportFlow.d.ts +7 -6
- package/dist/types/wallet/src/core/signingEngine/flows/registration/accountLifecycle.d.ts +1 -10
- package/dist/types/wallet/src/core/signingEngine/flows/signEvmFamily/emailOtpSigningSession.d.ts +1 -1
- package/dist/types/wallet/src/core/signingEngine/flows/signEvmFamily/freshAuthRetryPolicy.d.ts +3 -4
- package/dist/types/wallet/src/core/signingEngine/flows/signEvmFamily/nonceResolution.d.ts +3 -4
- package/dist/types/wallet/src/core/signingEngine/flows/signEvmFamily/readySecp256k1Material.d.ts +5 -8
- package/dist/types/wallet/src/core/signingEngine/flows/signEvmFamily/signers/ecdsaDerivationClientSigningMaterialSource.d.ts +1 -0
- package/dist/types/wallet/src/core/signingEngine/flows/signEvmFamily/signingFlowRuntime.d.ts +10 -5
- package/dist/types/wallet/src/core/signingEngine/flows/signNear/shared/ed25519YaoCapabilityResolution.d.ts +3 -10
- package/dist/types/wallet/src/core/signingEngine/flows/signNear/shared/operationStepUpPreparation.d.ts +3 -5
- package/dist/types/wallet/src/core/signingEngine/flows/signNear/signNep413.d.ts +3 -7
- package/dist/types/wallet/src/core/signingEngine/interfaces/near.d.ts +3 -4
- package/dist/types/wallet/src/core/signingEngine/interfaces/operationDeps.d.ts +3 -5
- package/dist/types/wallet/src/core/signingEngine/interfaces/operationStepUpPreparation.d.ts +3 -5
- package/dist/types/wallet/src/core/signingEngine/nonce/nearTransactionReadiness.d.ts +3 -5
- package/dist/types/wallet/src/core/signingEngine/nonce/nonceTypes.d.ts +2 -2
- package/dist/types/wallet/src/core/signingEngine/routerAb/ecdsaDerivation/clientCeremony.d.ts +5 -22
- package/dist/types/wallet/src/core/signingEngine/routerAb/ecdsaDerivation/poolFillRoutes.d.ts +3 -14
- package/dist/types/wallet/src/core/signingEngine/session/availability/persistedAvailableSigningLanes.d.ts +1 -1
- package/dist/types/wallet/src/core/signingEngine/session/emailOtp/EmailOtpWalletSessionCoordinator.d.ts +37 -14
- package/dist/types/wallet/src/core/signingEngine/session/emailOtp/ecdsaPublication.d.ts +3 -5
- package/dist/types/wallet/src/core/signingEngine/session/emailOtp/ed25519ExportContext.d.ts +2 -6
- package/dist/types/wallet/src/core/signingEngine/session/emailOtp/walletUnlock.d.ts +6 -15
- package/dist/types/wallet/src/core/signingEngine/session/identity/evmFamilyEcdsaIdentity.d.ts +3 -5
- package/dist/types/wallet/src/core/signingEngine/session/identity/exactWalletSessionCredential.d.ts +3 -4
- package/dist/types/wallet/src/core/signingEngine/session/identity/exactWalletSessionReader.d.ts +3 -6
- package/dist/types/wallet/src/core/signingEngine/session/identity/laneIdentity.d.ts +5 -8
- package/dist/types/wallet/src/core/signingEngine/session/identity/signingLaneAuthBinding.d.ts +3 -5
- package/dist/types/wallet/src/core/signingEngine/session/material/activeEcdsaCapabilityRuntime.d.ts +5 -10
- package/dist/types/wallet/src/core/signingEngine/session/material/activeWalletAuthorityEcdsaRuntime.d.ts +3 -6
- package/dist/types/wallet/src/core/signingEngine/session/material/capabilityPreparationResult.d.ts +3 -22
- package/dist/types/wallet/src/core/signingEngine/session/material/ecdsaCapabilityHydration.d.ts +3 -4
- package/dist/types/wallet/src/core/signingEngine/session/material/ecdsaSealedRuntime.d.ts +3 -4
- package/dist/types/wallet/src/core/signingEngine/session/material/ecdsaSigningCapability.d.ts +5 -0
- package/dist/types/wallet/src/core/signingEngine/session/material/nearEd25519YaoSigningPreparation.d.ts +5 -10
- package/dist/types/wallet/src/core/signingEngine/session/operationState/authorizationAdmission.d.ts +3 -8
- package/dist/types/wallet/src/core/signingEngine/session/operationState/types.d.ts +3 -5
- package/dist/types/wallet/src/core/signingEngine/session/passkey/ecdsaBootstrap.d.ts +3 -4
- package/dist/types/wallet/src/core/signingEngine/session/passkey/ecdsaSessionProvision.d.ts +3 -4
- package/dist/types/wallet/src/core/signingEngine/session/passkey/unlockEcdsaWarmupPlanner.d.ts +7 -25
- package/dist/types/wallet/src/core/signingEngine/session/sealedRecovery/sealedRecovery.types.d.ts +3 -4
- package/dist/types/wallet/src/core/signingEngine/session/warmCapabilities/capabilityReaderCore.d.ts +3 -16
- package/dist/types/wallet/src/core/signingEngine/session/warmCapabilities/ed25519SealedSessionRuntime.d.ts +6 -26
- package/dist/types/wallet/src/core/signingEngine/session/warmCapabilities/persistencePorts.d.ts +3 -4
- package/dist/types/wallet/src/core/signingEngine/stepUpConfirmation/channel/confirmTypes.d.ts +11 -36
- package/dist/types/wallet/src/core/signingEngine/stepUpConfirmation/otpPrompt/authLane.d.ts +5 -8
- package/dist/types/wallet/src/core/signingEngine/stepUpConfirmation/passkeyPrompt/touchIdPrompt.d.ts +3 -5
- package/dist/types/wallet/src/core/signingEngine/stepUpConfirmation/passkeyPrompt/webauthnPromptCoordinator.d.ts +3 -8
- package/dist/types/wallet/src/core/signingEngine/stepUpConfirmation/types.d.ts +7 -22
- package/dist/types/wallet/src/core/signingEngine/threshold/commitQueueShared.d.ts +10 -10
- package/dist/types/wallet/src/core/signingEngine/threshold/crypto/ecdsaDerivationClientWasm.d.ts +1 -1
- package/dist/types/wallet/src/core/signingEngine/threshold/ecdsa/bootstrapSession.d.ts +3 -4
- package/dist/types/wallet/src/core/signingEngine/threshold/ecdsa/signingQueue.d.ts +1 -7
- package/dist/types/wallet/src/core/signingEngine/threshold/ed25519/commitQueue.d.ts +1 -6
- package/dist/types/wallet/src/core/signingEngine/threshold/ed25519/walletSession.d.ts +6 -36
- package/dist/types/wallet/src/core/signingEngine/threshold/ed25519/yaoPublicCapabilityReferences.d.ts +3 -4
- package/dist/types/wallet/src/core/signingEngine/uiConfirm/ui/preact/ExportPrivateKeySurface.d.ts +5 -9
- package/dist/types/wallet/src/core/signingEngine/workerManager/ecdsaPresignLifecycle.d.ts +5 -16
- package/dist/types/wallet/src/core/signingEngine/workerManager/workerTypes.d.ts +3 -0
- package/dist/types/wallet/src/core/signingEngine/workerManager/workers/email-otp/crypto.d.ts +2 -11
- package/dist/types/wallet/src/core/signingEngine/workerManager/workers/email-otp/custodyRestore.d.ts +0 -2
- package/dist/types/wallet/src/core/types/linkDevice.d.ts +3 -18
- package/dist/types/wallet/src/core/types/sdkPublicResults.d.ts +5 -18
- package/dist/types/wallet/src/core/types/sdkSentEvents.d.ts +4 -21
- package/dist/types/wallet/src/core/types/seams.d.ts +17 -71
- package/dist/types/wallet/src/externalEvm/types.d.ts +5 -12
- package/dist/types/wallet/src/react/components/AccountMenuButton/icons/GlobeIcon.d.ts +1 -4
- package/dist/types/wallet/src/react/components/AccountMenuButton/icons/KeyIcon.d.ts +1 -4
- package/dist/types/wallet/src/react/components/AccountMenuButton/icons/LaptopIcon.d.ts +1 -4
- package/dist/types/wallet/src/react/components/AccountMenuButton/icons/LinkIcon.d.ts +1 -4
- package/dist/types/wallet/src/react/components/AccountMenuButton/icons/LockIcon.d.ts +1 -4
- package/dist/types/wallet/src/react/components/AccountMenuButton/icons/MailIcon.d.ts +1 -4
- package/dist/types/wallet/src/react/components/AccountMenuButton/icons/RecoveryCodesIcon.d.ts +1 -4
- package/dist/types/wallet/src/react/components/AccountMenuButton/icons/ScanIcon.d.ts +1 -4
- package/dist/types/wallet/src/react/components/AccountMenuButton/icons/SlidersIcon.d.ts +1 -4
- package/dist/types/wallet/src/react/components/AccountMenuButton/icons/SmartphoneIcon.d.ts +1 -4
- package/dist/types/wallet/src/react/components/AccountMenuButton/icons/lucideIcon.d.ts +5 -0
- package/dist/types/wallet/src/react/hooks/useAccountInput.d.ts +1 -22
- package/dist/types/wallet/src/react/transactionReview/controller.d.ts +3 -10
- package/dist/types/wallet/src/utils/menuItemBlink.d.ts +9 -0
- package/dist/workers/device-linking-key.worker.js +106 -105
- package/dist/workers/ecdsa-derivation-client.worker.js +15 -24
- package/dist/workers/ecdsa-presign-client.worker.js +58 -73
- package/dist/workers/email-otp.worker.js +13 -16
- package/dist/workers/evm_crypto.wasm +0 -0
- package/dist/workers/evm_crypto_bg.wasm +0 -0
- package/dist/workers/near_signer.wasm +0 -0
- package/dist/workers/router_ab_ecdsa_client_bg.wasm +0 -0
- package/dist/workers/router_ab_ed25519_yao_client_bg.wasm +0 -0
- package/dist/workers/tempo_signer.wasm +0 -0
- package/dist/workers/tempo_signer_bg.wasm +0 -0
- package/dist/workers/wallet-custody-ceremony.worker.js +7 -7
- package/dist/workers/wallet_custody_ceremony_bg.wasm +0 -0
- package/dist/workers/wasm_signer_worker_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/esm/components/AccountMenuButton/HaloBorder/HaloBorder.css +0 -101
- package/dist/esm/core/signingEngine/session/emailOtp/coordinatorRuntime.js +0 -131
- package/dist/esm/core/signingEngine/uiConfirm/ui/transaction-display/renderers/evm.js +0 -12
- package/dist/esm/core/signingEngine/uiConfirm/ui/transaction-display/renderers/near.js +0 -12
- package/dist/esm/core/signingEngine/uiConfirm/ui/transaction-display/renderers/tempo.js +0 -12
- package/dist/esm/react/components/AccountMenuButton/HaloBorder/HaloBorder.css +0 -101
- package/dist/esm/react/core/signingEngine/session/emailOtp/coordinatorRuntime.js +0 -131
- package/dist/esm/react/core/signingEngine/uiConfirm/ui/transaction-display/renderers/evm.js +0 -12
- package/dist/esm/react/core/signingEngine/uiConfirm/ui/transaction-display/renderers/near.js +0 -12
- package/dist/esm/react/core/signingEngine/uiConfirm/ui/transaction-display/renderers/tempo.js +0 -12
- package/dist/types/wallet/src/core/signingEngine/session/emailOtp/coordinatorRuntime.d.ts +0 -43
- package/dist/types/wallet/src/core/signingEngine/uiConfirm/ui/transaction-display/renderers/evm.d.ts +0 -5
- package/dist/types/wallet/src/core/signingEngine/uiConfirm/ui/transaction-display/renderers/near.d.ts +0 -5
- package/dist/types/wallet/src/core/signingEngine/uiConfirm/ui/transaction-display/renderers/tempo.d.ts +0 -5
|
@@ -2,21 +2,21 @@ import { D as parseWalletAuthorityId, M as parseWebAuthnRpId, O as parseWalletId
|
|
|
2
2
|
import { D as parseImplicitNearAccountId, O as parseNamedNearAccountId, d as isPlainObject, k as parseNearAccountId, u as isObject } from "./validation-gat4LEKm.js";
|
|
3
3
|
import { t as errorMessage } from "./errors-93h9uAW9.js";
|
|
4
4
|
import { r as base64UrlDecode } from "./base64-Clm8C-e9.js";
|
|
5
|
-
import { h as normalizeRuntimePolicyScope, o as normalizeThresholdRuntimePolicyScope } from "./sessionPolicy-
|
|
6
|
-
import {
|
|
5
|
+
import { h as normalizeRuntimePolicyScope, o as normalizeThresholdRuntimePolicyScope } from "./sessionPolicy-DO-MkL65.js";
|
|
6
|
+
import { At as parseActiveWalletSessionV1, D as parseRouterAbEcdsaRegistrationPublicActivationReceiptV1, O as parseRouterAbEcdsaRegistrationRequestFactsV1, Q as isPasskeyWalletAuthAuthority, T as parseRouterAbEcdsaPostRegistrationSessionActivationResponseV1, Tt as routerAbMpcMaterialActivationRefFromWire, _ as parseRouterAbEcdsaDerivationNormalSigningStateV1, c as ROUTER_AB_ECDSA_DERIVATION_SESSION_ACTIVATION_PATH, j as requireRouterAbEcdsaDerivationNormalSigningStateV1, jt as parseWalletSessionOperationCredentialV1, k as parseRouterAbEcdsaStrictForwardedRegistrationResponseV1, tt as parseWalletAuthAuthority, v as parseRouterAbEcdsaDerivationPublicCapabilityV1 } from "./ecdsaPresignLifecycle-Bfx2AQKb.js";
|
|
7
7
|
import { d as parseMpcWalletSigningQuotaId, g as parseWalletSessionMintId, h as parseWalletSessionId, m as parseWalletSessionAuthorizationId } from "./capabilityKinds-hvYqa6S_.js";
|
|
8
8
|
import { f as alphabetizeStringify } from "./chains-BMh3btVo.js";
|
|
9
9
|
import { o as sha256Utf8DigestB64u, r as parseDigestB64u } from "./canonicalPrimitives-BTHWz80v.js";
|
|
10
10
|
import { a as thresholdEcdsaChainTargetFromRequest, c as toWalletId, l as walletIdFromWalletProfile, o as thresholdEcdsaChainTargetKey, s as thresholdEcdsaChainTargetsEqual } from "./ecdsaChainTarget-Bl-JWyuw.js";
|
|
11
11
|
import { n as SIGNER_AUTH_METHODS, r as SIGNER_KINDS } from "./signerDomain-IEAVrOrc.js";
|
|
12
|
-
import { O as parseThresholdEcdsaKeyHandle, S as toThresholdEcdsaPublicKeyB64u, a as buildEvmFamilyEcdsaWalletKey,
|
|
13
|
-
import { u as parseWalletAuthorityV1, w as parseWalletAuthMethodRecordV2 } from "./walletAuthority-
|
|
12
|
+
import { O as parseThresholdEcdsaKeyHandle, S as toThresholdEcdsaPublicKeyB64u, a as buildEvmFamilyEcdsaWalletKey, g as resolveThresholdEcdsaKeyIdFromRecord, h as parseThresholdSigningRootBinding, ln as parseRouterAbEd25519YaoRegistrationAdmissionRequestV1, mn as parseWalletAddAuthMethodRegistrationOptions, rt as parseWebAuthnAuthenticatorDeviceInfo, y as toEvmFamilyEcdsaKeyHandle } from "./evmFamilyEcdsaIdentity-CqGafQsI.js";
|
|
13
|
+
import { u as parseWalletAuthorityV1, w as parseWalletAuthMethodRecordV2 } from "./walletAuthority-DD9T25F6.js";
|
|
14
14
|
import { a as parseNearEd25519SigningKeyId, l as normalizeRegistrationAuthMethodInput, o as walletIdFromString } from "./registrationIds-DLSdEKSv.js";
|
|
15
|
-
import { d as parsePasskeyCustodyEnvelopeRecord, t as parseWalletCustodyRegistrationOutcome } from "./passkey-custody-
|
|
15
|
+
import { d as parsePasskeyCustodyEnvelopeRecord, t as parseWalletCustodyRegistrationOutcome } from "./passkey-custody-UUHbC0pk.js";
|
|
16
16
|
import { l as parseRouterAbEd25519NormalSigningState, u as requireRouterAbEd25519NormalSigningState } from "./signingSessionSeal-Cu-GHm6y.js";
|
|
17
|
-
import { o as normalizeRegistrationSignerPlan, u as registrationSignerSetSelectionFromPlan } from "./registrationSignerPlan-
|
|
18
|
-
import { a as parseAddAuthMethodIntentV1, c as sameAddSignerIntentV1, i as computeRegistrationIntentDigestB64u, n as addSignerIntentGrantFromString, o as parseAddSignerIntentV1, s as sameAddAuthMethodIntentV1, t as addAuthMethodIntentGrantFromString } from "./registrationIntent-
|
|
19
|
-
import { a as toEcdsaDerivationThresholdKeyId } from "./challengeDelivery-
|
|
17
|
+
import { o as normalizeRegistrationSignerPlan, u as registrationSignerSetSelectionFromPlan } from "./registrationSignerPlan-DhV8VAob.js";
|
|
18
|
+
import { a as parseAddAuthMethodIntentV1, c as sameAddSignerIntentV1, i as computeRegistrationIntentDigestB64u, n as addSignerIntentGrantFromString, o as parseAddSignerIntentV1, s as sameAddAuthMethodIntentV1, t as addAuthMethodIntentGrantFromString } from "./registrationIntent-4zwk16zQ.js";
|
|
19
|
+
import { a as toEcdsaDerivationThresholdKeyId } from "./challengeDelivery-DZtopOAG.js";
|
|
20
20
|
import { n as buildRelayerJsonPostRequestInit, r as normalizeRelayerBaseUrl, t as buildBearerAuthorizationHeader } from "./relayerHttp-VC8Holz1.js";
|
|
21
21
|
//#region ../shared-ts/src/utils/registrationEstablishedSession.ts
|
|
22
22
|
function parseRegistrationEstablishedSessionResultV2(raw) {
|
|
@@ -24,7 +24,7 @@ function parseRegistrationEstablishedSessionResultV2(raw) {
|
|
|
24
24
|
if (!result || !("kind" in result) || typeof result.kind !== "string") return null;
|
|
25
25
|
switch (result.kind) {
|
|
26
26
|
case "issued": {
|
|
27
|
-
if (!hasExactKeys(result, ["kind", "session"]) || !("session" in result)) return null;
|
|
27
|
+
if (!hasExactKeys$1(result, ["kind", "session"]) || !("session" in result)) return null;
|
|
28
28
|
const session = parseRegistrationEstablishedSessionV2(result.session);
|
|
29
29
|
return session === null ? null : {
|
|
30
30
|
kind: "issued",
|
|
@@ -32,7 +32,7 @@ function parseRegistrationEstablishedSessionResultV2(raw) {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
case "already_committed": {
|
|
35
|
-
if (!hasExactKeys(result, [
|
|
35
|
+
if (!hasExactKeys$1(result, [
|
|
36
36
|
"kind",
|
|
37
37
|
"session",
|
|
38
38
|
"next"
|
|
@@ -51,7 +51,7 @@ function parseRegistrationEstablishedSessionResultV2(raw) {
|
|
|
51
51
|
function parseRegistrationEstablishedSessionV2(raw) {
|
|
52
52
|
try {
|
|
53
53
|
const record = inspectRawObject(raw);
|
|
54
|
-
if (!record || !hasExactKeys(record, [
|
|
54
|
+
if (!record || !hasExactKeys$1(record, [
|
|
55
55
|
"kind",
|
|
56
56
|
"walletId",
|
|
57
57
|
"authorizationId",
|
|
@@ -110,7 +110,7 @@ function hasUnexpectedRegistrationSigningFamily(walletSession, ...allowedFamilie
|
|
|
110
110
|
function parseRegistrationEstablishedSessionProjectionV2(raw) {
|
|
111
111
|
try {
|
|
112
112
|
const record = inspectRawObject(raw);
|
|
113
|
-
if (!record || !hasExactKeys(record, [
|
|
113
|
+
if (!record || !hasExactKeys$1(record, [
|
|
114
114
|
"kind",
|
|
115
115
|
"walletId",
|
|
116
116
|
"authorizationId",
|
|
@@ -156,7 +156,7 @@ function parseRegistrationEstablishedSessionProjectionTokensV2(raw) {
|
|
|
156
156
|
if (!record || !("kind" in record) || typeof record.kind !== "string") return null;
|
|
157
157
|
switch (record.kind) {
|
|
158
158
|
case "evm_family_ecdsa": {
|
|
159
|
-
if (!hasExactKeys(record, ["kind", "ecdsa"]) || !("ecdsa" in record)) return null;
|
|
159
|
+
if (!hasExactKeys$1(record, ["kind", "ecdsa"]) || !("ecdsa" in record)) return null;
|
|
160
160
|
const ecdsa = parseRegistrationEstablishedEcdsaSessionProjectionV2(record.ecdsa);
|
|
161
161
|
return ecdsa === null ? null : {
|
|
162
162
|
kind: "evm_family_ecdsa",
|
|
@@ -164,7 +164,7 @@ function parseRegistrationEstablishedSessionProjectionTokensV2(raw) {
|
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
166
|
case "near_ed25519": {
|
|
167
|
-
if (!hasExactKeys(record, ["kind", "ed25519"]) || !("ed25519" in record)) return null;
|
|
167
|
+
if (!hasExactKeys$1(record, ["kind", "ed25519"]) || !("ed25519" in record)) return null;
|
|
168
168
|
const ed25519 = parseRegistrationEstablishedEd25519SessionProjectionV2(record.ed25519);
|
|
169
169
|
return ed25519 === null ? null : {
|
|
170
170
|
kind: "near_ed25519",
|
|
@@ -172,7 +172,7 @@ function parseRegistrationEstablishedSessionProjectionTokensV2(raw) {
|
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
case "near_ed25519_and_evm_family_ecdsa": {
|
|
175
|
-
if (!hasExactKeys(record, [
|
|
175
|
+
if (!hasExactKeys$1(record, [
|
|
176
176
|
"kind",
|
|
177
177
|
"ecdsa",
|
|
178
178
|
"ed25519"
|
|
@@ -190,7 +190,7 @@ function parseRegistrationEstablishedSessionProjectionTokensV2(raw) {
|
|
|
190
190
|
}
|
|
191
191
|
function parseRegistrationEstablishedEcdsaSessionProjectionV2(raw) {
|
|
192
192
|
const record = inspectRawObject(raw);
|
|
193
|
-
if (!record || !hasExactKeys(record, [
|
|
193
|
+
if (!record || !hasExactKeys$1(record, [
|
|
194
194
|
"sessionKind",
|
|
195
195
|
"thresholdSessionId",
|
|
196
196
|
"keyHandle",
|
|
@@ -223,7 +223,7 @@ function parseRegistrationEstablishedEcdsaSessionProjectionV2(raw) {
|
|
|
223
223
|
}
|
|
224
224
|
function parseRegistrationEstablishedEd25519SessionProjectionV2(raw) {
|
|
225
225
|
const record = inspectRawObject(raw);
|
|
226
|
-
if (!record || !hasExactKeys(record, [
|
|
226
|
+
if (!record || !hasExactKeys$1(record, [
|
|
227
227
|
"sessionKind",
|
|
228
228
|
"thresholdSessionId",
|
|
229
229
|
"nearAccountId",
|
|
@@ -257,7 +257,7 @@ function parseRegistrationEstablishedEd25519SessionProjectionV2(raw) {
|
|
|
257
257
|
}
|
|
258
258
|
function parseRuntimePolicyScopeProjection(raw) {
|
|
259
259
|
const record = inspectRawObject(raw);
|
|
260
|
-
if (!record || !hasExactKeys(record, [
|
|
260
|
+
if (!record || !hasExactKeys$1(record, [
|
|
261
261
|
"orgId",
|
|
262
262
|
"projectId",
|
|
263
263
|
"envId",
|
|
@@ -276,7 +276,7 @@ function parseNonNegativeSafeInteger(raw) {
|
|
|
276
276
|
function inspectRawObject(value) {
|
|
277
277
|
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
278
278
|
}
|
|
279
|
-
function hasExactKeys(record, expectedKeys) {
|
|
279
|
+
function hasExactKeys$1(record, expectedKeys) {
|
|
280
280
|
return Object.keys(record).length === expectedKeys.length && expectedKeys.every((key) => Object.prototype.hasOwnProperty.call(record, key));
|
|
281
281
|
}
|
|
282
282
|
//#endregion
|
|
@@ -3742,6 +3742,20 @@ async function computeWalletCustodyAdminChallengeDigest(input) {
|
|
|
3742
3742
|
})}`);
|
|
3743
3743
|
}
|
|
3744
3744
|
//#endregion
|
|
3745
|
+
//#region ../shared-ts/src/utils/exactKeys.ts
|
|
3746
|
+
/**
|
|
3747
|
+
* True when `value` is a non-array object whose own enumerable string keys are exactly `keys`.
|
|
3748
|
+
*
|
|
3749
|
+
* A key whose value is `undefined` still counts as present. Symbol, non-enumerable and inherited
|
|
3750
|
+
* keys are not counted, and the prototype is not checked. A list that repeats a key never matches.
|
|
3751
|
+
* Kept apart from validation.ts, which the wallet iframe's boot path loads.
|
|
3752
|
+
*/
|
|
3753
|
+
function hasExactKeys(value, keys) {
|
|
3754
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
|
|
3755
|
+
const actual = Object.keys(value);
|
|
3756
|
+
return actual.length === keys.length && actual.every((key) => keys.includes(key));
|
|
3757
|
+
}
|
|
3758
|
+
//#endregion
|
|
3745
3759
|
//#region ../shared-ts/src/authorization/walletSessionIssuance.ts
|
|
3746
3760
|
const COMMITTED_IDENTITY_FIELDS = [
|
|
3747
3761
|
"kind",
|
|
@@ -3779,12 +3793,8 @@ const UNLOCK_FLAT_RESPONSE_FIELDS = [
|
|
|
3779
3793
|
"unlocked",
|
|
3780
3794
|
"unlockBackend"
|
|
3781
3795
|
];
|
|
3782
|
-
function hasOnlyFields(record, fields) {
|
|
3783
|
-
const actual = Object.keys(record);
|
|
3784
|
-
return actual.length === new Set(fields).size && actual.every((field) => fields.includes(field));
|
|
3785
|
-
}
|
|
3786
3796
|
function parseCommittedIdentity(value) {
|
|
3787
|
-
if (!isPlainObject(value) || !
|
|
3797
|
+
if (!isPlainObject(value) || !hasExactKeys(value, COMMITTED_IDENTITY_FIELDS)) return null;
|
|
3788
3798
|
if (value.kind !== "already_committed_wallet_session_v1") return null;
|
|
3789
3799
|
const walletId = parseWalletId(value.walletId);
|
|
3790
3800
|
const authorityId = parseWalletAuthorityId(value.authorityId);
|
|
@@ -3815,8 +3825,8 @@ function parseResponseEnvelope(value) {
|
|
|
3815
3825
|
};
|
|
3816
3826
|
}
|
|
3817
3827
|
function parseFlatCommittedIdentity(value) {
|
|
3818
|
-
if (!
|
|
3819
|
-
if (
|
|
3828
|
+
if (!hasExactKeys(value, FLAT_RESPONSE_FIELDS) && !hasExactKeys(value, UNLOCK_FLAT_RESPONSE_FIELDS)) return null;
|
|
3829
|
+
if (hasExactKeys(value, UNLOCK_FLAT_RESPONSE_FIELDS) && (value.unlocked !== false || value.unlockBackend !== "passkey" && value.unlockBackend !== "email_otp")) return null;
|
|
3820
3830
|
if (value.kind !== "already_committed") return null;
|
|
3821
3831
|
return parseCommittedIdentity({
|
|
3822
3832
|
kind: "already_committed_wallet_session_v1",
|
|
@@ -3842,7 +3852,7 @@ function parseWalletSessionAlreadyCommittedResponseV1(value) {
|
|
|
3842
3852
|
if (!isPlainObject(value)) return null;
|
|
3843
3853
|
const envelope = parseResponseEnvelope(value);
|
|
3844
3854
|
if (!envelope) return null;
|
|
3845
|
-
if (!
|
|
3855
|
+
if (!hasExactKeys(value, NESTED_RESPONSE_FIELDS)) return null;
|
|
3846
3856
|
const committed = parseCommittedIdentity(value.committed);
|
|
3847
3857
|
return committed ? buildAlreadyCommittedResponse(envelope, committed) : null;
|
|
3848
3858
|
}
|
|
@@ -4005,4 +4015,4 @@ function resolveNearEd25519YaoCapabilityHydrationV1(input) {
|
|
|
4005
4015
|
throw new Error("Unsupported Near Ed25519 unlock-source observation");
|
|
4006
4016
|
}
|
|
4007
4017
|
//#endregion
|
|
4008
|
-
export {
|
|
4018
|
+
export { activateRouterAbEcdsaPostRegistrationSession as A, requestAddAuthMethodEmailOtpChallenge as C, setupWalletRegistration as D, revokeWalletAuthMethod as E, startWalletAddAuthMethod as O, parseWalletRegistrationEcdsaDerivationRespond as S, respondWalletRegistration as T, fetchWalletEcdsaKeyFactsInventoryWithWebAuthn as _, buildRehydrateMaterialActivationHydrationPlan as a, fundImplicitNearAccountForTesting as b, parseWalletUnlockAlreadyCommittedResponseV1 as c, activateWalletAddSignerEcdsa as d, activateWalletRegistration as f, fetchWalletEcdsaKeyFactsInventoryWithOperationCredential as g, createWalletAddSignerIntent as h, buildBlockedMpcCapabilityHydrationPlan as i, parseProfileContinuityEcdsaWarmKey as j, startWalletAddSigner as k, hasExactKeys as l, createWalletAddAuthMethodIntent as m, nearEd25519YaoRuntimeRef as n, buildUseLiveRuntimeHydrationPlan as o, completeWalletRegistrationNearProvisioning as p, resolveNearEd25519YaoCapabilityHydrationV1 as r, parseWalletSessionAlreadyCommittedResponseV1 as s, nearEd25519YaoMaterialActivationFromMetadata as t, computeWalletCustodyAdminChallengeDigest as u, finalizeWalletAddAuthMethod as v, respondWalletAddSignerEcdsa as w, isEmailOtpWalletRegistrationFinalizeResponse as x, finalizeWalletAddSigner as y };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as mpcMaterialActivationRefsEqual } from "./domainIds-lcrFg6Sa.js";
|
|
2
|
-
import {
|
|
3
|
-
import { y as toEvmFamilyEcdsaKeyHandle } from "./evmFamilyEcdsaIdentity-
|
|
2
|
+
import { J as emailOtpWalletAuthAuthorityEmailHashHex, K as buildEmailOtpWalletAuthAuthority, X as emailOtpWalletAuthAuthorityProviderUserId, Y as emailOtpWalletAuthAuthorityProvider, it as walletAuthAuthorityRef, kt as activeWalletSessionV1RecordsEqual } from "./ecdsaPresignLifecycle-Bfx2AQKb.js";
|
|
3
|
+
import { y as toEvmFamilyEcdsaKeyHandle } from "./evmFamilyEcdsaIdentity-CqGafQsI.js";
|
|
4
4
|
import { t as parseSignerSlot } from "./signerSlot-_ovonwVX.js";
|
|
5
5
|
import { c as signingLaneAuthMethod, r as SigningSessionIds } from "./types-Dx9fczU7.js";
|
|
6
|
-
import { a as exactEd25519SigningLaneIdentity, f as nearEd25519SignerBindingFromBoundaryFields, n as exactEcdsaSigningLaneIdentity, t as buildEvmFamilyEcdsaSignerBinding } from "./exactSigningLaneIdentity-
|
|
6
|
+
import { a as exactEd25519SigningLaneIdentity, f as nearEd25519SignerBindingFromBoundaryFields, n as exactEcdsaSigningLaneIdentity, t as buildEvmFamilyEcdsaSignerBinding } from "./exactSigningLaneIdentity-m6uTXV_A.js";
|
|
7
7
|
//#region src/core/signingEngine/session/identity/laneIdentity.ts
|
|
8
8
|
function emailOtpAuthContextProviderUserId(context) {
|
|
9
9
|
return String(emailOtpWalletAuthAuthorityProviderUserId(context.authority));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as parseWebAuthnRpId, O as parseWalletId, T as parseWalletAuthMethodId, b as parseSigningLaneId, c as parseLaneShareEpoch, d as parseLinkedDeviceId, j as parseWebAuthnCredentialIdB64u, k as parseWalletKeyId, l as parseLinkDeviceSessionId, u as parseLinkedDeviceEnrollmentId, v as parsePasskeyEnvelopeId, x as parseThresholdEcdsaSessionId } from "./domainIds-lcrFg6Sa.js";
|
|
2
2
|
import { _ as requireRecord } from "./validation-gat4LEKm.js";
|
|
3
|
-
import { C as
|
|
3
|
+
import { C as parseEnvelopeNonceB64u, D as parseUnixMs, E as parseSecp256k1CompressedPublicKeyB64u, I as rejectUnknownFields, S as parseEnvelopeCiphertextB64u, b as parseDigestField, w as parseEnvelopeRevision, x as parseEd25519PublicKeyB64u, y as requireEvmFamilySigningKeySlotId } from "./sessionPolicy-DO-MkL65.js";
|
|
4
4
|
import { a as parseNearEd25519SigningKeyId } from "./registrationIds-DLSdEKSv.js";
|
|
5
5
|
//#region ../shared-ts/src/passkey-custody/custodySecretBinding.ts
|
|
6
6
|
/** The only derivation scheme owner custody supports. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as seamsWalletDB, p as buildEmailOtpRecoveryCodeSet, v as SEAMS_WALLET_STORES } from "./wallet-recovery-
|
|
1
|
+
import { h as seamsWalletDB, p as buildEmailOtpRecoveryCodeSet, v as SEAMS_WALLET_STORES } from "./wallet-recovery-BX61-79p.js";
|
|
2
2
|
import { t as createWalletIframeSurfaceMeasurementReporter } from "./surface-measurement-reporter-CSTyRsMa.js";
|
|
3
3
|
//#region src/SeamsWeb/operations/recovery/walletRecoveryCodeBackup.ts
|
|
4
4
|
const CANCELLED_MESSAGE = "Recovery-code backup was cancelled before acknowledgement";
|
|
@@ -3,23 +3,23 @@ import "./validation-gat4LEKm.js";
|
|
|
3
3
|
import "./errors-93h9uAW9.js";
|
|
4
4
|
import { i as base64UrlEncode } from "./base64-Clm8C-e9.js";
|
|
5
5
|
import { r as secureRandomId } from "./secureRandomId-BORsmdS4.js";
|
|
6
|
-
import "./sessionPolicy-
|
|
7
|
-
import "./ecdsaPresignLifecycle-
|
|
6
|
+
import "./sessionPolicy-DO-MkL65.js";
|
|
7
|
+
import "./ecdsaPresignLifecycle-Bfx2AQKb.js";
|
|
8
8
|
import "./capabilityKinds-hvYqa6S_.js";
|
|
9
9
|
import { h as sha256HexUtf8, p as sha256Bytes } from "./chains-BMh3btVo.js";
|
|
10
10
|
import "./signerDomain-IEAVrOrc.js";
|
|
11
|
-
import { f as parseRecoveryCodeReservationId, m as decodeEmailOtpRecoveryKey } from "./wallet-recovery-
|
|
12
|
-
import "./evmFamilyEcdsaIdentity-
|
|
13
|
-
import "./walletAuthority-
|
|
11
|
+
import { f as parseRecoveryCodeReservationId, m as decodeEmailOtpRecoveryKey } from "./wallet-recovery-BX61-79p.js";
|
|
12
|
+
import "./evmFamilyEcdsaIdentity-CqGafQsI.js";
|
|
13
|
+
import "./walletAuthority-DD9T25F6.js";
|
|
14
14
|
import "./encoders-D8d07vpx.js";
|
|
15
15
|
import "./registrationIds-DLSdEKSv.js";
|
|
16
|
-
import { a as buildEmailOtpEnvelopeFactor, c as buildPasskeyEnvelopeFactor } from "./passkey-custody-
|
|
17
|
-
import { u as IndexedDBManager } from "./walletCustodyEcdsaContinuity-
|
|
16
|
+
import { a as buildEmailOtpEnvelopeFactor, c as buildPasskeyEnvelopeFactor } from "./passkey-custody-UUHbC0pk.js";
|
|
17
|
+
import { u as IndexedDBManager } from "./walletCustodyEcdsaContinuity-CF4bv9OI.js";
|
|
18
18
|
import "./keccak-DUL3d8SF.js";
|
|
19
19
|
import "./signingSessionSeal-Cu-GHm6y.js";
|
|
20
|
-
import "./registrationSignerPlan-
|
|
21
|
-
import "./registrationIntent-
|
|
22
|
-
import { a as finalizeWalletRecoveryGoogleEmailOtp, c as isDurablePasskeyPayload, d as prepareWalletRecoveryWithCode, l as finalizeWalletRecovery, n as promoteWalletRecoveryCommit, o as verifyWalletRecoveryEmailOtp, r as restoreAndPublishWalletRecoveryCommit, s as verifyWalletRecoveryGoogle, t as createAwaitingWalletRecoveryCommit, u as buildWalletRecoveryCeremonyCustodyJson } from "./walletRecoveryCommit-
|
|
20
|
+
import "./registrationSignerPlan-DhV8VAob.js";
|
|
21
|
+
import "./registrationIntent-4zwk16zQ.js";
|
|
22
|
+
import { a as finalizeWalletRecoveryGoogleEmailOtp, c as isDurablePasskeyPayload, d as prepareWalletRecoveryWithCode, l as finalizeWalletRecovery, n as promoteWalletRecoveryCommit, o as verifyWalletRecoveryEmailOtp, r as restoreAndPublishWalletRecoveryCommit, s as verifyWalletRecoveryGoogle, t as createAwaitingWalletRecoveryCommit, u as buildWalletRecoveryCeremonyCustodyJson } from "./walletRecoveryCommit-AI1AtIRP.js";
|
|
23
23
|
//#region src/SeamsWeb/operations/recovery/walletRecovery.ts
|
|
24
24
|
const RECOVERY_PREPARE_RETRY_TTL_MS = 300 * 1e3;
|
|
25
25
|
function assertNever(value) {
|
|
@@ -4,41 +4,41 @@ import { C as deriveImplicitNearAccountIdFromEd25519PublicKey, M as base58Encode
|
|
|
4
4
|
import { n as getUserFriendlyErrorMessage, t as errorMessage } from "./errors-93h9uAW9.js";
|
|
5
5
|
import { i as base64UrlEncode, r as base64UrlDecode } from "./base64-Clm8C-e9.js";
|
|
6
6
|
import { r as secureRandomId } from "./secureRandomId-BORsmdS4.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { D as parseUnixMs, I as rejectUnknownFields, _ as signingRootScopeFromRuntimePolicyScope, d as normalizeThresholdEd25519ParticipantIds, g as sameRuntimePolicyScope$1, h as normalizeRuntimePolicyScope, m as deriveSigningRootId, o as normalizeThresholdRuntimePolicyScope, t as DEFAULT_THRESHOLD_SESSION_POLICY, y as requireEvmFamilySigningKeySlotId } from "./sessionPolicy-DO-MkL65.js";
|
|
8
|
+
import { $ as parseEmailOtpWalletAuthAuthority, A as parseRouterAbEcdsaVerifiedClientActivationFactsV1, At as parseActiveWalletSessionV1, B as sameRouterAbEcdsaDerivationNormalSigningStateV1, C as parseRouterAbEcdsaPostRegistrationSessionActivationPolicyV1, Dt as sameRouterAbMpcMaterialActivationRef, E as parseRouterAbEcdsaRegistrationActivationReceiptV1, Et as routerAbMpcMaterialActivationRefToWire, K as buildEmailOtpWalletAuthAuthority, Mt as walletSessionPreservesCapabilities, T as parseRouterAbEcdsaPostRegistrationSessionActivationResponseV1, Tt as routerAbMpcMaterialActivationRefFromWire, U as sameRouterAbEcdsaRegistrationActivationReceiptV1, V as sameRouterAbEcdsaDerivationPublicCapabilityV1, W as sameRouterAbEcdsaVerifiedClientActivationFactsV1, Z as isEmailOtpWalletAuthAuthority, _ as parseRouterAbEcdsaDerivationNormalSigningStateV1, at as parseCanonicalEcdsaServerActivationRequest, bt as parseSdkEcdsaDerivationSigningRootVersion, et as parsePasskeyWalletAuthAuthority, it as walletAuthAuthorityRef, jt as parseWalletSessionOperationCredentialV1, nt as parseWalletAuthAuthorityRef, p as parseRouterAbEcdsaCredentialFreeSessionActivationResponseV1, q as buildPasskeyWalletAuthAuthority, r as cloneAuthenticatorOptions, v as parseRouterAbEcdsaDerivationPublicCapabilityV1, yt as parseSdkEcdsaDerivationSigningRootId } from "./ecdsaPresignLifecycle-Bfx2AQKb.js";
|
|
9
9
|
import { d as parseMpcWalletSigningQuotaId, g as parseWalletSessionMintId, h as parseWalletSessionId, m as parseWalletSessionAuthorizationId } from "./capabilityKinds-hvYqa6S_.js";
|
|
10
10
|
import { f as alphabetizeStringify, h as sha256HexUtf8, m as sha256BytesUtf8, p as sha256Bytes, t as chainFamilyFromNetwork } from "./chains-BMh3btVo.js";
|
|
11
11
|
import { i as parseIsoTimestamp, n as parseCorrelationId, r as parseDigestB64u } from "./canonicalPrimitives-BTHWz80v.js";
|
|
12
12
|
import { a as thresholdEcdsaChainTargetFromRequest, c as toWalletId, i as thresholdEcdsaChainTargetFromConfig, o as thresholdEcdsaChainTargetKey, r as thresholdEcdsaChainTargetFromChainFamily, s as thresholdEcdsaChainTargetsEqual } from "./ecdsaChainTarget-Bl-JWyuw.js";
|
|
13
13
|
import { c as WALLET_EMAIL_OTP_ACTIONS, d as WALLET_EMAIL_OTP_REGISTRATION_OPERATION, n as SIGNER_AUTH_METHODS, p as WALLET_EMAIL_OTP_UNLOCK_OPERATION, s as EMAIL_OTP_CHANNEL } from "./signerDomain-IEAVrOrc.js";
|
|
14
|
-
import { _ as SEAMS_WALLET_INDEXES, c as zeroizeIssuedWalletRecoveryCodes, h as seamsWalletDB, o as deriveRecoveryCodeLocatorV1FromBytes, s as issueWalletRecoveryCodes, v as SEAMS_WALLET_STORES, y as unwrap } from "./wallet-recovery-
|
|
15
|
-
import { L as buildEnvelopeAAD, M as WALLET_CUSTODY_ED25519_MATERIAL_KEY_KIND, d as prepareWalletEd25519RegistrationProjectionPublication, f as prepareWalletEd25519RegistrationPublication, p as prepareWalletEmailOtpEd25519RegistrationPublication, u as prepareWalletEcdsaRegistrationPublication } from "./accountLifecycle-
|
|
14
|
+
import { _ as SEAMS_WALLET_INDEXES, c as zeroizeIssuedWalletRecoveryCodes, h as seamsWalletDB, o as deriveRecoveryCodeLocatorV1FromBytes, s as issueWalletRecoveryCodes, v as SEAMS_WALLET_STORES, y as unwrap } from "./wallet-recovery-BX61-79p.js";
|
|
15
|
+
import { L as buildEnvelopeAAD, M as WALLET_CUSTODY_ED25519_MATERIAL_KEY_KIND, d as prepareWalletEd25519RegistrationProjectionPublication, f as prepareWalletEd25519RegistrationPublication, p as prepareWalletEmailOtpEd25519RegistrationPublication, u as prepareWalletEcdsaRegistrationPublication } from "./accountLifecycle-zthG08aC.js";
|
|
16
16
|
import { t as toAccountId } from "./accountIds-DhIPGOSN.js";
|
|
17
|
-
import {
|
|
18
|
-
import { u as parseWalletAuthorityV1, w as parseWalletAuthMethodRecordV2 } from "./walletAuthority-
|
|
17
|
+
import { $t as parseRouterAbEd25519YaoExportResultV1, Bt as ROUTER_AB_ED25519_YAO_EXPORT_EXECUTE_PATH_V1, Gt as ROUTER_AB_ED25519_YAO_REGISTRATION_ADMISSION_PATH_V1, Qt as parseRouterAbEd25519YaoExportExecuteRequestV1, Rt as ROUTER_AB_ED25519_YAO_EMAIL_OTP_RECOVERY_BOOTSTRAP_KIND_V1, Ut as ROUTER_AB_ED25519_YAO_RECOVERY_CHALLENGE_ID_HEADER_V1, Zt as parseRouterAbEd25519YaoExportAdmissionReceiptV1, b as toParticipantId, fn as sameRouterAbEd25519YaoRegistrationAdmissionRequestV1, ln as parseRouterAbEd25519YaoRegistrationAdmissionRequestV1, on as parseRouterAbEd25519YaoRegistrationActivationAdmissionReceiptV1, qt as ROUTER_AB_ED25519_YAO_WARM_RECOVERY_BOOTSTRAP_PATH_V1, un as parseRouterAbEd25519YaoWarmRecoveryBootstrapRequestV1, x as toRpId, zt as ROUTER_AB_ED25519_YAO_EXPORT_ADMISSION_PATH_V1 } from "./evmFamilyEcdsaIdentity-CqGafQsI.js";
|
|
18
|
+
import { u as parseWalletAuthorityV1, w as parseWalletAuthMethodRecordV2 } from "./walletAuthority-DD9T25F6.js";
|
|
19
19
|
import { a as parseNearEd25519SigningKeyId, i as nearEd25519SigningKeyIdFromString, o as walletIdFromString, t as computeAddSignerNearEd25519SigningKeyId } from "./registrationIds-DLSdEKSv.js";
|
|
20
|
-
import { a as buildEmailOtpEnvelopeFactor, c as buildPasskeyEnvelopeFactor, d as parsePasskeyCustodyEnvelopeRecord, f as parseWalletCustodyEnvelopeOwnershipWireV1, h as isWalletCustodySeedBinding, l as custodyEnvelopeBindingJsonV1, n as walletCustodyCommitPayloadWithRecoveryBackupAcknowledgement, r as WALLET_CUSTODY_ENVELOPE_VERSION_V2, u as custodyEnvelopeOwnershipWireV1 } from "./passkey-custody-
|
|
21
|
-
import { a as parseEcdsaRoleLocalPersistedMaterialRef, d as parseEcdsaRelayerKeyId, i as parseEcdsaRoleLocalMaterialHandle, n as parseEcdsaRoleLocalBindingDigest, s as parseEcdsaThresholdKeyId, t as parseEcdsaClientVerifyingPublicKey33B64u } from "./keyMaterialBrands-
|
|
20
|
+
import { a as buildEmailOtpEnvelopeFactor, c as buildPasskeyEnvelopeFactor, d as parsePasskeyCustodyEnvelopeRecord, f as parseWalletCustodyEnvelopeOwnershipWireV1, h as isWalletCustodySeedBinding, l as custodyEnvelopeBindingJsonV1, n as walletCustodyCommitPayloadWithRecoveryBackupAcknowledgement, r as WALLET_CUSTODY_ENVELOPE_VERSION_V2, u as custodyEnvelopeOwnershipWireV1 } from "./passkey-custody-UUHbC0pk.js";
|
|
21
|
+
import { a as parseEcdsaRoleLocalPersistedMaterialRef, d as parseEcdsaRelayerKeyId, i as parseEcdsaRoleLocalMaterialHandle, n as parseEcdsaRoleLocalBindingDigest, s as parseEcdsaThresholdKeyId, t as parseEcdsaClientVerifyingPublicKey33B64u } from "./keyMaterialBrands-CogGAAZn.js";
|
|
22
22
|
import { i as RegistrationEventPhase, p as createRegistrationFlowEvent } from "./sdkSentEvents-MqDkbQg1.js";
|
|
23
|
-
import { C as parsePendingWalletRegistrationCommitV1, D as createRouterAbTraceContextV1, E as ROUTER_AB_TRACE_ID_HEADER_V1, O as parseRouterAbTraceContextV1, S as assertPendingWalletRegistrationIdentity, T as preparePendingNearRegistration, _ as ecdsaCapabilityScopesMatch, b as walletSessionAuthorizations, c as resolveAccountKeyMaterialTarget, g as IndexedDbEcdsaCapabilityManifestStore, r as prepareWalletCustodyEcdsaContinuity, u as IndexedDBManager, v as runtimePolicyScopesMatch, w as planPendingNearRegistration } from "./walletCustodyEcdsaContinuity-
|
|
23
|
+
import { C as parsePendingWalletRegistrationCommitV1, D as createRouterAbTraceContextV1, E as ROUTER_AB_TRACE_ID_HEADER_V1, O as parseRouterAbTraceContextV1, S as assertPendingWalletRegistrationIdentity, T as preparePendingNearRegistration, _ as ecdsaCapabilityScopesMatch, b as walletSessionAuthorizations, c as resolveAccountKeyMaterialTarget, g as IndexedDbEcdsaCapabilityManifestStore, r as prepareWalletCustodyEcdsaContinuity, u as IndexedDBManager, v as runtimePolicyScopesMatch, w as planPendingNearRegistration } from "./walletCustodyEcdsaContinuity-CF4bv9OI.js";
|
|
24
24
|
import { t as parseSignerSlot } from "./signerSlot-_ovonwVX.js";
|
|
25
25
|
import { a as SIGNING_SESSION_SEAL_ALG, c as SIGNING_SESSION_SECRET_KIND, l as parseRouterAbEd25519NormalSigningState, o as SIGNING_SESSION_SEAL_GROUP_ID, s as SIGNING_SESSION_SEAL_STORAGE_SCOPE, u as requireRouterAbEd25519NormalSigningState } from "./signingSessionSeal-Cu-GHm6y.js";
|
|
26
|
-
import { c as registrationNearEd25519BranchKey, l as registrationSignerPlanFromSelection, n as findRegistrationSignerPlanEvmFamilyEcdsaBranch, r as findRegistrationSignerPlanNearEd25519Branch, s as registrationEvmFamilyEcdsaBranchKey } from "./registrationSignerPlan-
|
|
26
|
+
import { c as registrationNearEd25519BranchKey, l as registrationSignerPlanFromSelection, n as findRegistrationSignerPlanEvmFamilyEcdsaBranch, r as findRegistrationSignerPlanNearEd25519Branch, s as registrationEvmFamilyEcdsaBranchKey } from "./registrationSignerPlan-DhV8VAob.js";
|
|
27
27
|
import { c as signingLaneAuthMethod, r as SigningSessionIds } from "./types-Dx9fczU7.js";
|
|
28
|
-
import { n as parseEmailOtpChallengeDelivery } from "./challengeDelivery-
|
|
28
|
+
import { n as parseEmailOtpChallengeDelivery } from "./challengeDelivery-DZtopOAG.js";
|
|
29
29
|
import { l as getPrfFirstB64uFromCredential, o as redactedPasskeyRegistrationCredential, u as redactCredentialExtensionOutputs } from "./helpers-ZrowMnev.js";
|
|
30
|
-
import { i as buildEcdsaCapabilityScope } from "./ecdsaCapabilityManifest-
|
|
30
|
+
import { i as buildEcdsaCapabilityScope } from "./ecdsaCapabilityManifest-DuMs0VtU.js";
|
|
31
31
|
import { i as buildNearAccountRefs } from "./profileAccountProjection-uZVJuBvS.js";
|
|
32
|
-
import {
|
|
32
|
+
import { D as setupWalletRegistration, S as parseWalletRegistrationEcdsaDerivationRespond, T as respondWalletRegistration, c as parseWalletUnlockAlreadyCommittedResponseV1, d as activateWalletAddSignerEcdsa, f as activateWalletRegistration, h as createWalletAddSignerIntent, k as startWalletAddSigner, n as nearEd25519YaoRuntimeRef, p as completeWalletRegistrationNearProvisioning, r as resolveNearEd25519YaoCapabilityHydrationV1, s as parseWalletSessionAlreadyCommittedResponseV1, t as nearEd25519YaoMaterialActivationFromMetadata, w as respondWalletAddSignerEcdsa, x as isEmailOtpWalletRegistrationFinalizeResponse, y as finalizeWalletAddSigner } from "./nearEd25519YaoMaterialActivation-B5GecIvq.js";
|
|
33
33
|
import { n as buildRelayerJsonPostRequestInit, r as normalizeRelayerBaseUrl, t as buildBearerAuthorizationHeader } from "./relayerHttp-VC8Holz1.js";
|
|
34
|
-
import { d as isExactEcdsaSigningLaneIdentity, f as nearEd25519SignerBindingFromBoundaryFields } from "./exactSigningLaneIdentity-
|
|
35
|
-
import { a as nearEd25519SessionMatchesMaterialActivation, h as emailOtpAuthContextProviderUserId, l as buildEmailOtpAuthContext, m as emailOtpAuthContextProvider, p as emailOtpAuthContextEmailHashHex, s as buildNearTransactionSigningLane } from "./nearEd25519YaoSigningPreparation-
|
|
34
|
+
import { d as isExactEcdsaSigningLaneIdentity, f as nearEd25519SignerBindingFromBoundaryFields } from "./exactSigningLaneIdentity-m6uTXV_A.js";
|
|
35
|
+
import { a as nearEd25519SessionMatchesMaterialActivation, h as emailOtpAuthContextProviderUserId, l as buildEmailOtpAuthContext, m as emailOtpAuthContextProvider, p as emailOtpAuthContextEmailHashHex, s as buildNearTransactionSigningLane } from "./nearEd25519YaoSigningPreparation-CdOT5RuC.js";
|
|
36
36
|
import { o as buildEmailOtpRoutePlan, r as buildFreshEmailOtpRoutePlan } from "./routePlan-D59x5xzQ.js";
|
|
37
37
|
import { n as generateSessionId } from "./prfCache-wqQSjYLn.js";
|
|
38
|
-
import { u as emitSigningSessionFlowTrace } from "./trace-
|
|
38
|
+
import { u as emitSigningSessionFlowTrace } from "./trace-DKLQZvec.js";
|
|
39
39
|
import { t as webAuthnPromptCoordinator } from "./webauthnPromptCoordinator-L96oVvLz.js";
|
|
40
40
|
import { t as computeAddSignerIntentDigest } from "./intentDigest-CvOSNlCH.js";
|
|
41
|
-
import { n as showWalletRecoveryCodeBackupUi, t as pendingWalletRecoveryCodeBackupRepository } from "./pendingWalletRecoveryCodeBackup-
|
|
41
|
+
import { n as showWalletRecoveryCodeBackupUi, t as pendingWalletRecoveryCodeBackupRepository } from "./pendingWalletRecoveryCodeBackup-BWluQMbt.js";
|
|
42
42
|
//#region src/core/signingEngine/walletCustody/ceremonyDriver.ts
|
|
43
43
|
function ignoreDiscardFailure() {}
|
|
44
44
|
function requireNearBegunRun(begun) {
|
|
@@ -3942,24 +3942,21 @@ function storagePayloadFromSealedStoreRow(value) {
|
|
|
3942
3942
|
const obj = asRecord(value);
|
|
3943
3943
|
return obj && SEALED_RECORD_PAYLOAD_FIELD in obj ? obj[SEALED_RECORD_PAYLOAD_FIELD] : value;
|
|
3944
3944
|
}
|
|
3945
|
-
function optionalStringForIndex(value) {
|
|
3946
|
-
return normalizeOptionalNonEmptyString(value);
|
|
3947
|
-
}
|
|
3948
3945
|
function durableLaneStorageRow(record) {
|
|
3949
3946
|
const ecdsaChainTarget = record.ecdsaRestore?.chainTarget;
|
|
3950
|
-
const ecdsaThresholdSessionId =
|
|
3951
|
-
const ed25519ThresholdSessionId =
|
|
3947
|
+
const ecdsaThresholdSessionId = normalizeOptionalNonEmptyString(record.thresholdSessionIds.ecdsa);
|
|
3948
|
+
const ed25519ThresholdSessionId = normalizeOptionalNonEmptyString(record.thresholdSessionIds.ed25519);
|
|
3952
3949
|
return {
|
|
3953
3950
|
store_key: record.storeKey,
|
|
3954
3951
|
wallet_id: record.walletId,
|
|
3955
3952
|
auth_method: record.authMethod,
|
|
3956
3953
|
curve: record.curve,
|
|
3957
|
-
signing_root_id:
|
|
3958
|
-
signing_root_version:
|
|
3954
|
+
signing_root_id: normalizeOptionalNonEmptyString("signingRootId" in record ? record.signingRootId : void 0),
|
|
3955
|
+
signing_root_version: normalizeOptionalNonEmptyString("signingRootVersion" in record ? record.signingRootVersion : void 0),
|
|
3959
3956
|
ed25519_threshold_session_id: ed25519ThresholdSessionId,
|
|
3960
3957
|
ecdsa_threshold_session_id: ecdsaThresholdSessionId,
|
|
3961
3958
|
threshold_session_id: ecdsaThresholdSessionId || ed25519ThresholdSessionId,
|
|
3962
|
-
key_handle:
|
|
3959
|
+
key_handle: normalizeOptionalNonEmptyString(record.ecdsaRestore?.keyHandle),
|
|
3963
3960
|
chain_target_key: ecdsaChainTarget ? thresholdEcdsaChainTargetKey(ecdsaChainTarget) : void 0,
|
|
3964
3961
|
expires_at_ms: record.expiresAtMs,
|
|
3965
3962
|
updated_at: record.updatedAtMs,
|
|
@@ -6042,10 +6039,10 @@ function assertRegistrationEcdsaSessionMatchesWalletKeys(args) {
|
|
|
6042
6039
|
const [firstWalletKey] = args.walletKeys;
|
|
6043
6040
|
if (!firstWalletKey) throw new Error("ECDSA registration did not return wallet key material");
|
|
6044
6041
|
const token = registrationEstablishedEcdsaSession(args.session.registrationEstablishedSession);
|
|
6045
|
-
if (String(args.session.registrationEstablishedSession.walletId) !== firstWalletKey.walletId || token.thresholdSessionId !== args.session.activatedThresholdSessionId || token.keyHandle !== firstWalletKey.keyHandle || !sameRuntimePolicyScope
|
|
6042
|
+
if (String(args.session.registrationEstablishedSession.walletId) !== firstWalletKey.walletId || token.thresholdSessionId !== args.session.activatedThresholdSessionId || token.keyHandle !== firstWalletKey.keyHandle || !sameRuntimePolicyScope(token.runtimePolicyScope, args.session.clientBootstrap.runtimePolicyScope) || !sameRouterAbEcdsaDerivationNormalSigningStateV1(token.routerAbEcdsaDerivationNormalSigning, args.session.bootstrap.routerAbEcdsaDerivationNormalSigning)) throw new Error("Registration-established ECDSA session changed the signer identity");
|
|
6046
6043
|
for (const walletKey of args.walletKeys) if (walletKey.walletId !== firstWalletKey.walletId || walletKey.keyHandle !== token.keyHandle || walletKey.ecdsaThresholdKeyId !== firstWalletKey.ecdsaThresholdKeyId) throw new Error("ECDSA registration material changed the established session identity");
|
|
6047
6044
|
}
|
|
6048
|
-
function sameRuntimePolicyScope
|
|
6045
|
+
function sameRuntimePolicyScope(left, right) {
|
|
6049
6046
|
return left.orgId === right.orgId && left.projectId === right.projectId && left.envId === right.envId && left.signingRootVersion === right.signingRootVersion;
|
|
6050
6047
|
}
|
|
6051
6048
|
//#endregion
|
|
@@ -6067,7 +6064,7 @@ function registrationEd25519MaterialFacts(args) {
|
|
|
6067
6064
|
if (!thresholdSessionId.ok) throw new Error("Ed25519 registration threshold-session identity is invalid");
|
|
6068
6065
|
const participantIds = admission.participant_ids;
|
|
6069
6066
|
const finalizedRuntimePolicyScope = normalizeRuntimePolicyScope(args.finalized.runtimePolicyScope);
|
|
6070
|
-
if (admission.application_binding.wallet_id !== args.walletId || admission.application_binding.near_ed25519_signing_key_id !== args.finalized.nearEd25519SigningKeyId || admission.application_binding.key_creation_signer_slot !== args.finalized.signerSlot || participantIds[0] !== args.finalized.participantIds[0] || participantIds[1] !== args.finalized.participantIds[1] || !sameRuntimePolicyScope
|
|
6067
|
+
if (admission.application_binding.wallet_id !== args.walletId || admission.application_binding.near_ed25519_signing_key_id !== args.finalized.nearEd25519SigningKeyId || admission.application_binding.key_creation_signer_slot !== args.finalized.signerSlot || participantIds[0] !== args.finalized.participantIds[0] || participantIds[1] !== args.finalized.participantIds[1] || !sameRuntimePolicyScope(finalizedRuntimePolicyScope, args.expectedRuntimePolicyScope) || admission.application_binding.signing_root_id !== `${finalizedRuntimePolicyScope.projectId}:${finalizedRuntimePolicyScope.envId}` || admission.scope.root_share_epoch !== finalizedRuntimePolicyScope.signingRootVersion || admission.scope.signing_worker_id !== args.finalized.routerAbNormalSigning.signingWorkerId || args.finalized.relayerKeyId !== args.finalized.routerAbNormalSigning.signingWorkerId) throw new Error("Ed25519 registration material changed the admitted signer identity");
|
|
6071
6068
|
return {
|
|
6072
6069
|
identity: {
|
|
6073
6070
|
walletId: String(args.walletId),
|
|
@@ -6097,7 +6094,7 @@ function registrationEstablishedEd25519Session(session) {
|
|
|
6097
6094
|
}
|
|
6098
6095
|
async function buildRegistrationEmailOtpEd25519SessionState(args) {
|
|
6099
6096
|
const token = registrationEstablishedEd25519Session(args.registrationEstablishedSession);
|
|
6100
|
-
if (token.nearAccountId !== String(args.nearAccountId) || token.nearEd25519SigningKeyId !== String(args.nearEd25519SigningKeyId) || token.thresholdSessionId !== String(args.thresholdSessionId) || !sameRuntimePolicyScope
|
|
6097
|
+
if (token.nearAccountId !== String(args.nearAccountId) || token.nearEd25519SigningKeyId !== String(args.nearEd25519SigningKeyId) || token.thresholdSessionId !== String(args.thresholdSessionId) || !sameRuntimePolicyScope(token.runtimePolicyScope, args.runtimePolicyScope)) throw new Error("Registration-established Email OTP Ed25519 session changed signer identity");
|
|
6101
6098
|
const signingRoot = signingRootScopeFromRuntimePolicyScope(token.runtimePolicyScope);
|
|
6102
6099
|
const signingRootVersion = signingRoot.signingRootVersion;
|
|
6103
6100
|
if (!signingRootVersion) throw new Error("Registration-established Ed25519 session is missing a signing-root version");
|
|
@@ -7371,14 +7368,11 @@ function parseExactRecoverySession(raw, participantIds, identity, walletSession,
|
|
|
7371
7368
|
operationCredential
|
|
7372
7369
|
};
|
|
7373
7370
|
}
|
|
7374
|
-
function sameRuntimePolicyScope(left, right) {
|
|
7375
|
-
return left.orgId === right.orgId && left.projectId === right.projectId && left.envId === right.envId && left.signingRootVersion === right.signingRootVersion;
|
|
7376
|
-
}
|
|
7377
7371
|
function assertEd25519YaoRecoveryDescriptorStableIdentity(parsed) {
|
|
7378
7372
|
const capability = parsed.capability;
|
|
7379
7373
|
const session = parsed.session;
|
|
7380
7374
|
const signingRoot = signingRootScopeFromRuntimePolicyScope(session.runtimePolicyScope);
|
|
7381
|
-
if (!signingRoot || capability.applicationBinding.wallet_id !== String(parsed.walletId) || capability.applicationBinding.near_ed25519_signing_key_id !== parsed.nearEd25519SigningKeyId || capability.applicationBinding.key_creation_signer_slot !== parsed.signerSlot || capability.nearAccountId !== parsed.nearAccountId || capability.lifecycle.accountId !== String(parsed.walletId) || capability.lifecycle.signingWorkerId !== parsed.relayerKeyId || session.routerAbNormalSigning?.signingWorkerId !== parsed.relayerKeyId || session.participantIds[0] !== capability.participantIds[0] || session.participantIds[1] !== capability.participantIds[1] || !sameRuntimePolicyScope(session.runtimePolicyScope, capability.runtimePolicyScope) || session.runtimePolicyScope.signingRootVersion !== capability.lifecycle.rootShareEpoch || capability.applicationBinding.signing_root_id !== signingRoot.signingRootId || parsed.operationalPublicKey !== `ed25519:${base58Encode(Uint8Array.from(capability.registeredPublicKey))}`) throw new Error("Yao recovery response does not preserve the registered wallet identity");
|
|
7375
|
+
if (!signingRoot || capability.applicationBinding.wallet_id !== String(parsed.walletId) || capability.applicationBinding.near_ed25519_signing_key_id !== parsed.nearEd25519SigningKeyId || capability.applicationBinding.key_creation_signer_slot !== parsed.signerSlot || capability.nearAccountId !== parsed.nearAccountId || capability.lifecycle.accountId !== String(parsed.walletId) || capability.lifecycle.signingWorkerId !== parsed.relayerKeyId || session.routerAbNormalSigning?.signingWorkerId !== parsed.relayerKeyId || session.participantIds[0] !== capability.participantIds[0] || session.participantIds[1] !== capability.participantIds[1] || !sameRuntimePolicyScope$1(session.runtimePolicyScope, capability.runtimePolicyScope) || session.runtimePolicyScope.signingRootVersion !== capability.lifecycle.rootShareEpoch || capability.applicationBinding.signing_root_id !== signingRoot.signingRootId || parsed.operationalPublicKey !== `ed25519:${base58Encode(Uint8Array.from(capability.registeredPublicKey))}`) throw new Error("Yao recovery response does not preserve the registered wallet identity");
|
|
7382
7376
|
}
|
|
7383
7377
|
function assertEd25519YaoRecoveryDescriptorContinuity(parsed) {
|
|
7384
7378
|
assertEd25519YaoRecoveryDescriptorStableIdentity(parsed);
|
|
@@ -8095,19 +8089,13 @@ async function unlockPendingEcdsaRegistration(args) {
|
|
|
8095
8089
|
//#region src/SeamsWeb/operations/registration/pendingRegistrationRecovery.ts
|
|
8096
8090
|
const defaultPendingRegistrationRecoveryPorts = {
|
|
8097
8091
|
listPendingWalletRegistrationCommits,
|
|
8098
|
-
completeWalletRegistrationNearProvisioning
|
|
8092
|
+
completeWalletRegistrationNearProvisioning,
|
|
8099
8093
|
publishPendingWalletRegistrationCommit
|
|
8100
8094
|
};
|
|
8101
8095
|
async function listPendingWalletRegistrationCommits() {
|
|
8102
8096
|
await IndexedDBManager.initialize();
|
|
8103
8097
|
return await IndexedDBManager.listPendingWalletRegistrationCommits();
|
|
8104
8098
|
}
|
|
8105
|
-
async function completePendingWalletRegistrationNearProvisioning(input) {
|
|
8106
|
-
return await completeWalletRegistrationNearProvisioning(input);
|
|
8107
|
-
}
|
|
8108
|
-
async function activatePendingWalletRegistration(input) {
|
|
8109
|
-
return await activateWalletRegistration(input);
|
|
8110
|
-
}
|
|
8111
8099
|
async function publishPendingWalletRegistrationCommit(input) {
|
|
8112
8100
|
return await IndexedDBManager.publishPendingWalletRegistrationCommit(input);
|
|
8113
8101
|
}
|
|
@@ -8402,7 +8390,7 @@ async function resumePendingNearRegistrations(args) {
|
|
|
8402
8390
|
return results;
|
|
8403
8391
|
}
|
|
8404
8392
|
const defaultPendingEcdsaRegistrationRecoveryPorts = {
|
|
8405
|
-
activateWalletRegistration
|
|
8393
|
+
activateWalletRegistration,
|
|
8406
8394
|
publishPendingWalletRegistrationCommit,
|
|
8407
8395
|
unlockPendingEcdsaRegistration
|
|
8408
8396
|
};
|
|
@@ -14411,4 +14399,4 @@ async function addWalletSigner(args) {
|
|
|
14411
14399
|
}
|
|
14412
14400
|
}
|
|
14413
14401
|
//#endregion
|
|
14414
|
-
export { unlockEmailOtpAuthorityWallet as $, listThresholdEcdsaProvisionTargets as $t, resolveGoogleEmailOtpProvider as A, readExactEd25519SealedSession as At, subscribeToNearProvisioning as B, resolveExactWalletSessionOperationCredential as Bt, persistPasskeyEd25519YaoSignerMaterialV1 as C, resolveExactEd25519SealedSessionRuntimeForLane as Ct, collectEmailOtpRegistrationAuthority as D, deleteDurableSealedSessionRecord as Dt, buildRestorableMpcMaterialRefInternal as E, acquireSigningSessionRestoreLease as Et, exactPasskeyWalletAuthAuthorityRefForCredential as F, writeExactSealedSession as Ft, passkeyPrfFirstB64uFromCredential as G, openWalletCustodyEd25519ActiveClientV1 as Gt, resumePendingEcdsaRegistrationFromStoredCommit as H, buildPasskeyEd25519RestoreMetadata as Ht, exactPasskeyWalletAuthMethodForCredential as I, buildCurrentSealedSessionRecord as It, verifyPasskeyWalletUnlock as J, ROUTER_AB_ED25519_YAO_ACTIVE_CLIENT_KIND_V1 as Jt, requirePasskeyPrfFirstB64u as K, walletCustodyActivationFactsFromActiveClientMetadataV1 as Kt, resolveManagedRuntimeScopeBootstrap as L, createDeleteDurableSealedSessionCommand as Lt, readPasskeyCustodySessionEnvelope as M, releaseSigningSessionRestoreLease as Mt, rememberPasskeyCustodySessionEnvelope as N, updateExactEd25519SealedSessionPolicy as Nt, requestEmailOtpChallenge as O, listEcdsaSealedSessionsForWallet as Ot, buildRecoveredCustodyEnvelopeRecord as P, updateExactSealedSessionPolicy as Pt, passkeyEd25519YaoLaneReferenceFromRecovery as Q, listConfiguredThresholdEcdsaPublicationTargets as Qt, awaitNearProvisioningInFlight as R, buildRouterAbEd25519SigningWalletSession as Rt, hydratePasskeyEd25519YaoLocalMaterialV1 as S, parseExactEd25519SealedSessionRuntime as St, readPasskeyEd25519YaoLocalMaterialLocatorV1 as T, resolveExactEd25519SealedSessionRuntimeForWalletSubject as Tt, resumePendingNearRegistrations as U, persistPasskeyEd25519YaoSessionForRefresh as Ut, scheduleEcdsaSessionPresignaturePrefill as V, WALLET_IFRAME_TRANSPORT_TIMING_LABEL as Vt, passkeyCredentialIdB64uFromAuthentication as W, openOrRejoinWalletCustodyEd25519V1 as Wt, buildRecoveredWalletSessionState as X, RouterAbEd25519YaoHttpActivationTransportV1 as Xt, assertEd25519YaoWarmRecoveryDescriptorStableMaterialContinuity as Y, RouterAbEd25519YaoClientV1 as Yt, parsePasskeyEd25519YaoSyncResponseV1 as Z, parseEd25519YaoRecoveryCapabilityV1 as Zt, setUnlockedCustodyEnvelopeUpgradeSinkV1 as _, nearEd25519YaoOperationMaterialFacts as _t, registerWallet as a, joinEvmFamilyCustodyV1 as at, walletCustodyCeremonyStepRunner as b, ed25519AuthorizationIdentityMatchesRuntime as bt, exactWalletSessionAuthorityIdentity as c, recoverNearEd25519CustodyV1 as ct, validateExactWalletSessionAuthorization as d, WalletSessionStatusReadScope as dt, isRegistrationBenchmarkDiagnosticsEnabled as en, unlockEmailOtpEd25519YaoCapability as et, destroyUnlockedWalletEd25519ExportRootCapabilitiesV1 as f, createRelayerExactWalletSessionStatusPort as ft, readUnlockedWalletEd25519ExportRootCapabilityV1 as g, buildPasskeyRouterAbEd25519WalletSessionState as gt, readUnlockedEd25519ExportRootLinkingCapabilityV1 as h, buildEmailOtpRouterAbEd25519WalletSessionState as ht, registerPreparedHostedPasskeyRegistration as i, establishNearEd25519CustodyV1 as it, configurePasskeyCustodySessionCachePersistence as j, readExactSealedSession as jt, requestEmailOtpEnrollmentChallenge as k, listExactSealedSessionsForWallet as kt, persistExactWalletSessionAuthorizationFromEcdsaBootstrap as l, rejoinEvmFamilyCustodyV1 as lt, establishUnlockedWalletEd25519ExportRootCapabilityV1 as m, joinCustodyWireFromEnvelopeRecord as mt, cancelHostedPasskeyRegistration as n, unlockEmailOtpWalletCapabilities as nt, registration_exports as o, joinNearEd25519CustodyV1 as ot, dropUnlockedWalletEd25519ExportRootCapabilityReferenceV1 as p, sameRuntimePolicyScope
|
|
14402
|
+
export { unlockEmailOtpAuthorityWallet as $, listThresholdEcdsaProvisionTargets as $t, resolveGoogleEmailOtpProvider as A, readExactEd25519SealedSession as At, subscribeToNearProvisioning as B, resolveExactWalletSessionOperationCredential as Bt, persistPasskeyEd25519YaoSignerMaterialV1 as C, resolveExactEd25519SealedSessionRuntimeForLane as Ct, collectEmailOtpRegistrationAuthority as D, deleteDurableSealedSessionRecord as Dt, buildRestorableMpcMaterialRefInternal as E, acquireSigningSessionRestoreLease as Et, exactPasskeyWalletAuthAuthorityRefForCredential as F, writeExactSealedSession as Ft, passkeyPrfFirstB64uFromCredential as G, openWalletCustodyEd25519ActiveClientV1 as Gt, resumePendingEcdsaRegistrationFromStoredCommit as H, buildPasskeyEd25519RestoreMetadata as Ht, exactPasskeyWalletAuthMethodForCredential as I, buildCurrentSealedSessionRecord as It, verifyPasskeyWalletUnlock as J, ROUTER_AB_ED25519_YAO_ACTIVE_CLIENT_KIND_V1 as Jt, requirePasskeyPrfFirstB64u as K, walletCustodyActivationFactsFromActiveClientMetadataV1 as Kt, resolveManagedRuntimeScopeBootstrap as L, createDeleteDurableSealedSessionCommand as Lt, readPasskeyCustodySessionEnvelope as M, releaseSigningSessionRestoreLease as Mt, rememberPasskeyCustodySessionEnvelope as N, updateExactEd25519SealedSessionPolicy as Nt, requestEmailOtpChallenge as O, listEcdsaSealedSessionsForWallet as Ot, buildRecoveredCustodyEnvelopeRecord as P, updateExactSealedSessionPolicy as Pt, passkeyEd25519YaoLaneReferenceFromRecovery as Q, listConfiguredThresholdEcdsaPublicationTargets as Qt, awaitNearProvisioningInFlight as R, buildRouterAbEd25519SigningWalletSession as Rt, hydratePasskeyEd25519YaoLocalMaterialV1 as S, parseExactEd25519SealedSessionRuntime as St, readPasskeyEd25519YaoLocalMaterialLocatorV1 as T, resolveExactEd25519SealedSessionRuntimeForWalletSubject as Tt, resumePendingNearRegistrations as U, persistPasskeyEd25519YaoSessionForRefresh as Ut, scheduleEcdsaSessionPresignaturePrefill as V, WALLET_IFRAME_TRANSPORT_TIMING_LABEL as Vt, passkeyCredentialIdB64uFromAuthentication as W, openOrRejoinWalletCustodyEd25519V1 as Wt, buildRecoveredWalletSessionState as X, RouterAbEd25519YaoHttpActivationTransportV1 as Xt, assertEd25519YaoWarmRecoveryDescriptorStableMaterialContinuity as Y, RouterAbEd25519YaoClientV1 as Yt, parsePasskeyEd25519YaoSyncResponseV1 as Z, parseEd25519YaoRecoveryCapabilityV1 as Zt, setUnlockedCustodyEnvelopeUpgradeSinkV1 as _, nearEd25519YaoOperationMaterialFacts as _t, registerWallet as a, joinEvmFamilyCustodyV1 as at, walletCustodyCeremonyStepRunner as b, ed25519AuthorizationIdentityMatchesRuntime as bt, exactWalletSessionAuthorityIdentity as c, recoverNearEd25519CustodyV1 as ct, validateExactWalletSessionAuthorization as d, WalletSessionStatusReadScope as dt, isRegistrationBenchmarkDiagnosticsEnabled as en, unlockEmailOtpEd25519YaoCapability as et, destroyUnlockedWalletEd25519ExportRootCapabilitiesV1 as f, createRelayerExactWalletSessionStatusPort as ft, readUnlockedWalletEd25519ExportRootCapabilityV1 as g, buildPasskeyRouterAbEd25519WalletSessionState as gt, readUnlockedEd25519ExportRootLinkingCapabilityV1 as h, buildEmailOtpRouterAbEd25519WalletSessionState as ht, registerPreparedHostedPasskeyRegistration as i, establishNearEd25519CustodyV1 as it, configurePasskeyCustodySessionCachePersistence as j, readExactSealedSession as jt, requestEmailOtpEnrollmentChallenge as k, listExactSealedSessionsForWallet as kt, persistExactWalletSessionAuthorizationFromEcdsaBootstrap as l, rejoinEvmFamilyCustodyV1 as lt, establishUnlockedWalletEd25519ExportRootCapabilityV1 as m, joinCustodyWireFromEnvelopeRecord as mt, cancelHostedPasskeyRegistration as n, unlockEmailOtpWalletCapabilities as nt, registration_exports as o, joinNearEd25519CustodyV1 as ot, dropUnlockedWalletEd25519ExportRootCapabilityReferenceV1 as p, sameRuntimePolicyScope as pt, verifyLinkedDevicePasskeyWalletSession as q, walletCustodyCacheEnvelopeFromRecordV1 as qt, prepareHostedPasskeyRegistration as r, establishEvmFamilyCustodyV1 as rt, startHostedPasskeyRegistrationCredential as s, recoverEvmFamilyCustodyV1 as st, addWalletSigner as t, unlockEmailOtpWallet as tt, validateExactWalletSessionAuthorityIdentity as u, rejoinNearEd25519CustodyV1 as ut, walletCustodyCeremonyTransportFromWorkerContextV1 as v, rebindRouterAbEd25519WalletSessionStateFromExactRuntime as vt, preparePasskeyEd25519YaoLocalMaterialRehydrationV1 as w, resolveExactEd25519SealedSessionRuntimeForWallet as wt, ed25519YaoLocalMaterialIdentityFromWalletSession as x, ed25519SealedRuntimeAuthorityRef as xt, requestWalletCustodyCeremonyOperation as y, resolveActiveAuthorizedRouterAbEd25519WalletSessionState as yt, readNearProvisioningState as z, requiredSigningSubjectForExactSigningLane as zt };
|
|
@@ -2,7 +2,7 @@ import { n as __exportAll } from "./chunk-BtrIJ4_z.js";
|
|
|
2
2
|
import { o as toError } from "./errors-93h9uAW9.js";
|
|
3
3
|
import { c as serializeRegistrationCredentialWithPRF, r as isSerializedRegistrationCredential } from "./helpers-ZrowMnev.js";
|
|
4
4
|
import { t as webAuthnPromptCoordinator } from "./webauthnPromptCoordinator-L96oVvLz.js";
|
|
5
|
-
import { D as getWalletId, S as getNearAccountId, f as ERROR_MESSAGES, m as isUserCancelledUserConfirm, n as createConfirmTxFlowAdapters, t as createConfirmSession, x as getIntentDigest } from "./adapters-
|
|
5
|
+
import { D as getWalletId, S as getNearAccountId, f as ERROR_MESSAGES, m as isUserCancelledUserConfirm, n as createConfirmTxFlowAdapters, t as createConfirmSession, x as getIntentDigest } from "./adapters-Dli9XAZp.js";
|
|
6
6
|
import { a as sha256Base64UrlUtf8 } from "./intentDigest-CvOSNlCH.js";
|
|
7
7
|
//#region src/core/signingEngine/uiConfirm/handlers/flows/registration.ts
|
|
8
8
|
var registration_exports = /* @__PURE__ */ __exportAll({ handleRegistrationFlow: () => handleRegistrationFlow });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./validation-gat4LEKm.js";
|
|
2
2
|
import "./signerDomain-IEAVrOrc.js";
|
|
3
|
-
import { O as storeWalletEmailOtpEd25519RegistrationData, T as storeWalletEd25519RegistrationData, _ as rollbackWalletEd25519SignerRegistration, a as getLastUser, b as storeAuthenticator, c as hasPasskeyCredential, g as rollbackUserRegistration, i as getAllUsers, k as storeWalletEmailOtpMixedRegistrationData, l as nearAuthenticatorsByAccount, o as getUserBySignerSlot, r as finalizeWalletEd25519SignerRegistration, s as getWalletNearProvisioningState, t as activateAuthenticatedWalletState, v as setLastUser, w as storeWalletEd25519RecoveryRegistrationData, x as storeUserData, y as setWalletNearProvisioningState } from "./accountLifecycle-
|
|
3
|
+
import { O as storeWalletEmailOtpEd25519RegistrationData, T as storeWalletEd25519RegistrationData, _ as rollbackWalletEd25519SignerRegistration, a as getLastUser, b as storeAuthenticator, c as hasPasskeyCredential, g as rollbackUserRegistration, i as getAllUsers, k as storeWalletEmailOtpMixedRegistrationData, l as nearAuthenticatorsByAccount, o as getUserBySignerSlot, r as finalizeWalletEd25519SignerRegistration, s as getWalletNearProvisioningState, t as activateAuthenticatedWalletState, v as setLastUser, w as storeWalletEd25519RecoveryRegistrationData, x as storeUserData, y as setWalletNearProvisioningState } from "./accountLifecycle-zthG08aC.js";
|
|
4
4
|
import "./encoders-D8d07vpx.js";
|
|
5
5
|
import "./registrationIds-DLSdEKSv.js";
|
|
6
|
-
import "./registrationSignerPlan-
|
|
6
|
+
import "./registrationSignerPlan-DhV8VAob.js";
|
|
7
7
|
//#region src/core/signingEngine/flows/registration/services/registrationAccounts.ts
|
|
8
8
|
function createRegistrationAccountsService(accountLifecycle) {
|
|
9
9
|
return {
|
|
@@ -2,7 +2,7 @@ import { D as parseWalletAuthorityId, M as parseWebAuthnRpId, O as parseWalletId
|
|
|
2
2
|
import { i as base64UrlEncode } from "./base64-Clm8C-e9.js";
|
|
3
3
|
import { f as alphabetizeStringify, m as sha256BytesUtf8 } from "./chains-BMh3btVo.js";
|
|
4
4
|
import { c as normalizeAddAuthMethodInput, s as inspectRawObject, u as trimString } from "./registrationIds-DLSdEKSv.js";
|
|
5
|
-
import { a as normalizeAddSignerSelection } from "./registrationSignerPlan-
|
|
5
|
+
import { a as normalizeAddSignerSelection } from "./registrationSignerPlan-DhV8VAob.js";
|
|
6
6
|
//#region ../shared-ts/src/utils/registrationIntent.ts
|
|
7
7
|
function addAuthMethodIntentGrantFromString(value) {
|
|
8
8
|
return String(value || "").trim();
|
|
@@ -10,17 +10,11 @@ function addAuthMethodIntentGrantFromString(value) {
|
|
|
10
10
|
function addSignerIntentGrantFromString(value) {
|
|
11
11
|
return String(value || "").trim();
|
|
12
12
|
}
|
|
13
|
-
function serializeRegistrationIntentV1(intent) {
|
|
14
|
-
return alphabetizeStringify(intent);
|
|
15
|
-
}
|
|
16
|
-
function serializeAddAuthMethodIntentV1(intent) {
|
|
17
|
-
return alphabetizeStringify(intent);
|
|
18
|
-
}
|
|
19
13
|
async function computeRegistrationIntentDigestB64u(intent) {
|
|
20
|
-
return base64UrlEncode(await sha256BytesUtf8(
|
|
14
|
+
return base64UrlEncode(await sha256BytesUtf8(alphabetizeStringify(intent)));
|
|
21
15
|
}
|
|
22
16
|
async function computeAddAuthMethodIntentDigestB64u(intent) {
|
|
23
|
-
return base64UrlEncode(await sha256BytesUtf8(
|
|
17
|
+
return base64UrlEncode(await sha256BytesUtf8(alphabetizeStringify(intent)));
|
|
24
18
|
}
|
|
25
19
|
function normalizeAddAuthMethodIntentCaller(raw) {
|
|
26
20
|
const record = inspectRawObject(raw);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as loadWebAuthnP256EngineCtor, n as loadSignEvmFamilyWithUiConfirmForTempo, r as loadSignEvmWithUiConfirm, t as loadSecp256k1EngineCtor } from "./signerLoader-
|
|
1
|
+
import { i as loadWebAuthnP256EngineCtor, n as loadSignEvmFamilyWithUiConfirmForTempo, r as loadSignEvmWithUiConfirm, t as loadSecp256k1EngineCtor } from "./signerLoader-B7orgq5Z.js";
|
|
2
2
|
//#region src/SeamsWeb/walletIframe/host/registrationPreparationPreload.ts
|
|
3
3
|
async function preloadWalletHostRegistrationPreparation() {
|
|
4
4
|
await Promise.all([
|
|
5
|
-
import("./runtime-ecdsa-tempo-
|
|
5
|
+
import("./runtime-ecdsa-tempo-BGLsTAWR.js").catch(() => void 0),
|
|
6
6
|
loadSignEvmFamilyWithUiConfirmForTempo().catch(() => void 0),
|
|
7
7
|
loadSignEvmWithUiConfirm().catch(() => void 0),
|
|
8
8
|
loadSecp256k1EngineCtor().catch(() => void 0),
|
package/dist/esm/sdk/{registrationSignerPlan-CAikVZZQ.js → registrationSignerPlan-DhV8VAob.js}
RENAMED
|
@@ -75,11 +75,8 @@ function registrationSignerBranchKeyFromString(value) {
|
|
|
75
75
|
function registrationNearEd25519BranchKey(signerSlot) {
|
|
76
76
|
return registrationSignerBranchKeyFromString(`near_ed25519:slot:${signerSlot}`);
|
|
77
77
|
}
|
|
78
|
-
function registrationEvmFamilyEcdsaTargetKey(target) {
|
|
79
|
-
return alphabetizeStringify(target);
|
|
80
|
-
}
|
|
81
78
|
function registrationEvmFamilyEcdsaBranchKey(chainTargets) {
|
|
82
|
-
return registrationSignerBranchKeyFromString(`evm_family_ecdsa:${chainTargets.map(
|
|
79
|
+
return registrationSignerBranchKeyFromString(`evm_family_ecdsa:${chainTargets.map(alphabetizeStringify).join("|")}`);
|
|
83
80
|
}
|
|
84
81
|
function registrationSignerPlanFromRequests(signers) {
|
|
85
82
|
return registrationSignerPlanFromBranches(signers.map(registrationSignerPlanBranchFromRequest));
|
|
@@ -163,7 +160,7 @@ function findDuplicateRegistrationSignerBranch(branch, branchKeys) {
|
|
|
163
160
|
}
|
|
164
161
|
function findDuplicateRegistrationEcdsaTarget(branch, ecdsaTargetKeys) {
|
|
165
162
|
for (const target of branch.chainTargets) {
|
|
166
|
-
const targetKey =
|
|
163
|
+
const targetKey = alphabetizeStringify(target);
|
|
167
164
|
if (ecdsaTargetKeys.has(targetKey)) return {
|
|
168
165
|
ok: false,
|
|
169
166
|
code: "invalid_body",
|