@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
package/dist/esm/sdk/{ecdsaCapabilityManifest-kzO_fW09.js → ecdsaCapabilityManifest-DuMs0VtU.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as mpcMaterialActivationRefsEqual } from "./domainIds-lcrFg6Sa.js";
|
|
2
2
|
import { i as base64UrlEncode, r as base64UrlDecode } from "./base64-Clm8C-e9.js";
|
|
3
|
-
import { h as normalizeRuntimePolicyScope, m as deriveSigningRootId } from "./sessionPolicy-
|
|
4
|
-
import {
|
|
3
|
+
import { h as normalizeRuntimePolicyScope, m as deriveSigningRootId } from "./sessionPolicy-DO-MkL65.js";
|
|
4
|
+
import { Dt as sameRouterAbMpcMaterialActivationRef, E as parseRouterAbEcdsaRegistrationActivationReceiptV1, Et as routerAbMpcMaterialActivationRefToWire, G as sameRouterAbServerIdentityV1, H as sameRouterAbEcdsaDerivationPublicIdentityV1, L as sameRegistrationRecipientKeys, R as sameRegistrationSignerSet, Tt as routerAbMpcMaterialActivationRefFromWire, ft as parseEcdsaLifecycleId, ot as parseEcdsaActivationDigest, v as parseRouterAbEcdsaDerivationPublicCapabilityV1 } from "./ecdsaPresignLifecycle-Bfx2AQKb.js";
|
|
5
5
|
import { t as isoTimestampFromUnixMs } from "./canonicalPrimitives-BTHWz80v.js";
|
|
6
6
|
import { a as thresholdEcdsaChainTargetFromRequest, c as toWalletId, o as thresholdEcdsaChainTargetKey, s as thresholdEcdsaChainTargetsEqual } from "./ecdsaChainTarget-Bl-JWyuw.js";
|
|
7
|
-
import { x as toRpId } from "./evmFamilyEcdsaIdentity-
|
|
8
|
-
import { a as toEcdsaDerivationThresholdKeyId, i as toEcdsaDerivationSigningRootVersion, o as toEmailOtpAuthSubjectId, r as toEcdsaDerivationSigningRootId } from "./challengeDelivery-
|
|
7
|
+
import { x as toRpId } from "./evmFamilyEcdsaIdentity-CqGafQsI.js";
|
|
8
|
+
import { a as toEcdsaDerivationThresholdKeyId, i as toEcdsaDerivationSigningRootVersion, o as toEmailOtpAuthSubjectId, r as toEcdsaDerivationSigningRootId } from "./challengeDelivery-DZtopOAG.js";
|
|
9
9
|
//#region src/core/signingEngine/session/persistence/ecdsaRoleLocalRecords.ts
|
|
10
10
|
function assertNever$1(value) {
|
|
11
11
|
throw new Error(`Unhandled ECDSA role-local branch: ${String(value)}`);
|
|
@@ -777,20 +777,8 @@ function assertDurableMaterialMatchesActivation(durableMaterial, activationBindi
|
|
|
777
777
|
receipt: receipt.protocolReceipt
|
|
778
778
|
});
|
|
779
779
|
}
|
|
780
|
-
function routerAbEcdsaPublicIdentitiesEqual(left, right) {
|
|
781
|
-
return left.context_binding_b64u === right.context_binding_b64u && left.derivation_client_share_public_key33_b64u === right.derivation_client_share_public_key33_b64u && left.server_public_key33_b64u === right.server_public_key33_b64u && left.threshold_public_key33_b64u === right.threshold_public_key33_b64u && left.ethereum_address20_b64u === right.ethereum_address20_b64u && left.client_share_retry_counter === right.client_share_retry_counter && left.server_share_retry_counter === right.server_share_retry_counter;
|
|
782
|
-
}
|
|
783
|
-
function routerAbServerIdentitiesEqual(left, right) {
|
|
784
|
-
return left.server_id === right.server_id && left.key_epoch === right.key_epoch && left.recipient_encryption_key === right.recipient_encryption_key;
|
|
785
|
-
}
|
|
786
|
-
function routerAbEcdsaSignerSetsEqual(left, right) {
|
|
787
|
-
return left.signer_set_id === right.signer_set_id && left.policy === right.policy && left.signer_a.role === right.signer_a.role && left.signer_a.signer_id === right.signer_a.signer_id && left.signer_a.key_epoch === right.signer_a.key_epoch && left.signer_b.role === right.signer_b.role && left.signer_b.signer_id === right.signer_b.signer_id && left.signer_b.key_epoch === right.signer_b.key_epoch && routerAbServerIdentitiesEqual(left.selected_server, right.selected_server);
|
|
788
|
-
}
|
|
789
|
-
function routerAbEcdsaRecipientKeysEqual(left, right) {
|
|
790
|
-
return left.deriver_a.role === right.deriver_a.role && left.deriver_a.key_epoch === right.deriver_a.key_epoch && left.deriver_a.public_key === right.deriver_a.public_key && left.deriver_b.role === right.deriver_b.role && left.deriver_b.key_epoch === right.deriver_b.key_epoch && left.deriver_b.public_key === right.deriver_b.public_key;
|
|
791
|
-
}
|
|
792
780
|
function routerAbEcdsaDerivationPublicCapabilitiesEqual(left, right) {
|
|
793
|
-
return left.kind === right.kind && left.context.application_binding_digest_b64u === right.context.application_binding_digest_b64u &&
|
|
781
|
+
return left.kind === right.kind && left.context.application_binding_digest_b64u === right.context.application_binding_digest_b64u && sameRouterAbEcdsaDerivationPublicIdentityV1(left.public_identity, right.public_identity) && sameRouterAbMpcMaterialActivationRef(left.material_activation, right.material_activation) && sameRegistrationSignerSet(left.signer_set, right.signer_set) && sameRegistrationRecipientKeys(left.deriver_recipient_keys, right.deriver_recipient_keys) && left.router_id === right.router_id && left.client_id === right.client_id && left.activation_epoch === right.activation_epoch && left.registration_request_digest_b64u === right.registration_request_digest_b64u && left.proof_transcript_digest_b64u === right.proof_transcript_digest_b64u;
|
|
794
782
|
}
|
|
795
783
|
function assertNormalSigningMatchesActivation(input) {
|
|
796
784
|
const scope = input.normalSigning.scope;
|
|
@@ -805,7 +793,7 @@ function assertNormalSigningMatchesActivation(input) {
|
|
|
805
793
|
lifecycleBinding: expectedMaterialActivation.lifecycleBinding,
|
|
806
794
|
signingWorker: expectedMaterialActivation.signingWorker
|
|
807
795
|
});
|
|
808
|
-
if (scope.wallet_id !== String(input.activationBinding.signer.walletId) || scope.ecdsa_threshold_key_id !== String(input.activationBinding.roleLocalBinding.ecdsaThresholdKeyId) || scope.signing_root_id !== String(input.activationBinding.signer.signingRootId) || scope.signing_root_version !== String(input.activationBinding.signer.signingRootVersion) || scope.context.application_binding_digest_b64u !== input.receipt.ecdsa_activation.context.application_binding_digest_b64u || !
|
|
796
|
+
if (scope.wallet_id !== String(input.activationBinding.signer.walletId) || scope.ecdsa_threshold_key_id !== String(input.activationBinding.roleLocalBinding.ecdsaThresholdKeyId) || scope.signing_root_id !== String(input.activationBinding.signer.signingRootId) || scope.signing_root_version !== String(input.activationBinding.signer.signingRootVersion) || scope.context.application_binding_digest_b64u !== input.receipt.ecdsa_activation.context.application_binding_digest_b64u || !sameRouterAbEcdsaDerivationPublicIdentityV1(scope.public_identity, input.receipt.ecdsa_activation.public_identity) || !sameRouterAbServerIdentityV1(scope.signing_worker, input.receipt.ecdsa_activation.signing_worker) || scope.activation_epoch !== input.receipt.ecdsa_activation.activation_epoch || scope.public_identity.context_binding_b64u !== facts.contextBinding32B64u || scope.public_identity.derivation_client_share_public_key33_b64u !== facts.derivationClientSharePublicKey33B64u || scope.public_identity.server_public_key33_b64u !== facts.relayerPublicKey33B64u || scope.public_identity.threshold_public_key33_b64u !== facts.groupPublicKey33B64u || !sameRouterAbMpcMaterialActivationRef(scope.material_activation, expectedMaterialActivationWire)) throw new Error("ECDSA normal-signing runtime does not match its activation");
|
|
809
797
|
}
|
|
810
798
|
function assertValidEcdsaReplacement(active, replacement) {
|
|
811
799
|
if (active.identity.manifestId === replacement.identity.manifestId || Number(replacement.identity.manifestRevision) !== Number(active.identity.manifestRevision) + 1 || active.signer.capability !== replacement.signer.capability || active.signer.signerId !== replacement.signer.signerId || active.signer.walletId !== replacement.signer.walletId || active.signer.authority.authorityDigest !== replacement.signer.authority.authorityDigest || active.signer.materialOwner !== replacement.signer.materialOwner || active.durableMaterial.durableMaterialRef === replacement.durableMaterial.durableMaterialRef || active.activation.serverActivation.serverGeneration === replacement.activation.serverActivation.serverGeneration) throw new Error("ECDSA replacement manifest does not exactly replace the active manifest");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { D as parseWalletAuthorityId, E as parseWalletAuthorityBindingDigest, M as parseWebAuthnRpId, O as parseWalletId, T as parseWalletAuthMethodId, a as parseEcdsaActiveStateId, d as parseLinkedDeviceId, h as parseMpcMaterialActivationRef, j as parseWebAuthnCredentialIdB64u, k as parseWalletKeyId, l as parseLinkDeviceSessionId, r as mpcMaterialActivationRefsEqual, s as parseEmailOtpProviderUserId, u as parseLinkedDeviceEnrollmentId, w as parseVerifiedEmailAddress, x as parseThresholdEcdsaSessionId, y as parseRootShareEpoch } from "./domainIds-lcrFg6Sa.js";
|
|
2
2
|
import { _ as requireRecord, i as coerceNonEmptyString } from "./validation-gat4LEKm.js";
|
|
3
3
|
import { i as base64UrlEncode, r as base64UrlDecode } from "./base64-Clm8C-e9.js";
|
|
4
|
-
import {
|
|
4
|
+
import { D as parseUnixMs, F as exactRecord, I as rejectUnknownFields, M as parseDelegatedWalletAuthorityV1, h as normalizeRuntimePolicyScope, v as deriveEvmFamilySigningKeySlotId } from "./sessionPolicy-DO-MkL65.js";
|
|
5
5
|
import { d as parseMpcWalletSigningQuotaId, g as parseWalletSessionMintId, h as parseWalletSessionId, l as parseDeviceId, m as parseWalletSessionAuthorizationId, n as EVM_ECDSA_MPC_OPERATION_KINDS, u as parseEcdsaAuthorizationSessionId } from "./capabilityKinds-hvYqa6S_.js";
|
|
6
6
|
import { f as alphabetizeStringify, m as sha256BytesUtf8 } from "./chains-BMh3btVo.js";
|
|
7
7
|
import { n as parseCorrelationId, r as parseDigestB64u } from "./canonicalPrimitives-BTHWz80v.js";
|
|
@@ -1980,4 +1980,4 @@ function cloneAuthenticatorOptions(options) {
|
|
|
1980
1980
|
//#region src/core/signingEngine/workerManager/ecdsaPresignLifecycle.ts
|
|
1981
1981
|
const MAX_DURABLE_CLIENT_PRESIGNATURE_LIFETIME_MS = 2160 * 60 * 6e4;
|
|
1982
1982
|
//#endregion
|
|
1983
|
-
export {
|
|
1983
|
+
export { parseEmailOtpWalletAuthAuthority as $, wireLiteral as $t, parseRouterAbEcdsaVerifiedClientActivationFactsV1 as A, parseActiveWalletSessionV1 as At, sameRouterAbEcdsaDerivationNormalSigningStateV1 as B, parseDelegatedWalletAuthority as Bt, parseRouterAbEcdsaPostRegistrationSessionActivationPolicyV1 as C, parseRouterAbMpcMaterialActivationRef as Ct, parseRouterAbEcdsaRegistrationPublicActivationReceiptV1 as D, sameRouterAbMpcMaterialActivationRef as Dt, parseRouterAbEcdsaRegistrationActivationReceiptV1 as E, routerAbMpcMaterialActivationRefToWire as Et, routerAbEcdsaDerivationNormalSigningScopeCanonicalBytesV1 as F, digest as Ft, sameRouterAbServerIdentityV1 as G, rpId as Gt, sameRouterAbEcdsaDerivationPublicIdentityV1 as H, parseNonNegativeSafeInteger as Ht, routerAbEcdsaRerandomizationClientCommitmentV1 as I, enrollmentId as It, emailOtpWalletAuthAuthorityEmailHashHex as J, walletAuthorityId as Jt, buildEmailOtpWalletAuthAuthority as K, sessionId as Kt, sameRegistrationRecipientKeys as L, keyLabeled as Lt, routerAbEcdsaDerivationActiveStateId as M, walletSessionPreservesCapabilities as Mt, routerAbEcdsaDerivationEvmDigestSigningFinalizeCoreRequestDigestV1 as N, authorizationDeviceId as Nt, parseRouterAbEcdsaRegistrationRequestFactsV1 as O, requireRouterAbX25519PublicKey as Ot, routerAbEcdsaDerivationEvmDigestSigningRequestDigestV1 as P, credentialId as Pt, isPasskeyWalletAuthAuthority as Q, walletSessionId as Qt, sameRegistrationSignerSet as R, linkedDeviceId as Rt, parseRouterAbEcdsaOperationStepUpPreparationV1 as S, canonicalRouterAbMpcMaterialActivationRefBytes as St, parseRouterAbEcdsaPostRegistrationSessionActivationResponseV1 as T, routerAbMpcMaterialActivationRefFromWire as Tt, sameRouterAbEcdsaRegistrationActivationReceiptV1 as U, parseTargetEmail as Ut, sameRouterAbEcdsaDerivationPublicCapabilityV1 as V, parseNonEmptyToken as Vt, sameRouterAbEcdsaVerifiedClientActivationFactsV1 as W, parseUnixTime as Wt, emailOtpWalletAuthAuthorityProviderUserId as X, walletKeyId as Xt, emailOtpWalletAuthAuthorityProvider as Y, walletId as Yt, isEmailOtpWalletAuthAuthority as Z, walletSessionAuthorizationId as Zt, parseRouterAbEcdsaDerivationNormalSigningStateV1 as _, computeEcdsaDerivationRoleLocalRelayerKeyId as _t, ROUTER_AB_ECDSA_DERIVATION_OPERATION_STEP_UP_PATH as a, parseCanonicalEcdsaServerActivationRequest as at, parseRouterAbEcdsaOperationStepUpAuthorizationRequestV1 as b, parseSdkEcdsaDerivationSigningRootVersion as bt, ROUTER_AB_ECDSA_DERIVATION_SESSION_ACTIVATION_PATH as c, parseEcdsaCapabilityManifestRevision as ct, buildRouterAbEcdsaDerivationEvmDigestSigningRequestV1 as d, parseEcdsaIv12B64u as dt, wireNullable as en, parsePasskeyWalletAuthAuthority as et, computeRouterAbEcdsaOperationStepUpChallengeB64u as f, parseEcdsaLifecycleId as ft, parseRouterAbEcdsaDerivationNormalSigningScopeV1 as g, parseEvmFamilyEcdsaSignerId as gt, parseRouterAbEcdsaDerivationEvmDigestSigningResponseForCoreRequestV1 as h, parseEcdsaServerGeneration as ht, ROUTER_AB_ECDSA_DERIVATION_EXPORT_PATH as i, walletAuthAuthorityRef as it, requireRouterAbEcdsaDerivationNormalSigningStateV1 as j, parseWalletSessionOperationCredentialV1 as jt, parseRouterAbEcdsaStrictForwardedRegistrationResponseV1 as k, activeWalletSessionV1RecordsEqual as kt, ROUTER_AB_ECDSA_PRESIGN_CEREMONY_MAX_LIFETIME_MS as l, parseEcdsaCiphertextB64u as lt, parseRouterAbEcdsaDerivationEvmDigestSigningPrepareResponseForRequestV1 as m, parseEcdsaPendingCiphertextDigest as mt, UserVerificationPolicy as n, wireResult as nn, parseWalletAuthAuthorityRef as nt, ROUTER_AB_ECDSA_DERIVATION_PRESIGNATURE_POOL_FILL_INIT_PATH as o, parseEcdsaActivationDigest as ot, parseRouterAbEcdsaCredentialFreeSessionActivationResponseV1 as p, parseEcdsaMaterialSealingKeyId as pt, buildPasskeyWalletAuthAuthority as q, walletAuthMethodId as qt, cloneAuthenticatorOptions as r, wireUnion as rn, walletAuthAuthoritiesMatch as rt, ROUTER_AB_ECDSA_DERIVATION_PRESIGNATURE_POOL_FILL_STEP_PATH as s, parseEcdsaCapabilityManifestId as st, MAX_DURABLE_CLIENT_PRESIGNATURE_LIFETIME_MS as t, wireObject as tn, parseWalletAuthAuthority as tt, buildRouterAbEcdsaDerivationEvmDigestSigningFinalizeRequestV1 as u, parseEcdsaCiphertextDigest as ut, parseRouterAbEcdsaDerivationPublicCapabilityV1 as v, ecdsaClientRootPublicKey33B64uFromString as vt, parseRouterAbEcdsaPostRegistrationSessionActivationRequestV1 as w, parseRouterAbNormalSigningAuthorization as wt, parseRouterAbEcdsaOperationStepUpAuthorizationResponseV1 as x, parseSdkEcdsaDerivationThresholdKeyId as xt, parseRouterAbEcdsaExplicitExportForwardedResponseV1 as y, parseSdkEcdsaDerivationSigningRootId as yt, sameRouterAbEcdsaDerivationNormalSigningScopeV1 as z, nullableToken as zt };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./validation-gat4LEKm.js";
|
|
2
2
|
import "./signerDomain-IEAVrOrc.js";
|
|
3
|
-
import { C as storeWalletEcdsaSignerRecords, D as storeWalletEmailOtpEcdsaSignerRecords, E as storeWalletEmailOtpEcdsaRegistrationData, S as storeWalletEcdsaRecoverySignerRecords, n as finalizeWalletEcdsaRegistration } from "./accountLifecycle-
|
|
3
|
+
import { C as storeWalletEcdsaSignerRecords, D as storeWalletEmailOtpEcdsaSignerRecords, E as storeWalletEmailOtpEcdsaRegistrationData, S as storeWalletEcdsaRecoverySignerRecords, n as finalizeWalletEcdsaRegistration } 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/ecdsaWalletRecords.ts
|
|
8
8
|
function createEcdsaWalletRecordsService(deps) {
|
|
9
9
|
return {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { D as parseWalletAuthorityId, M as parseWebAuthnRpId, O as parseWalletId, T as parseWalletAuthMethodId, _ as parseMpcSigningWorkerRef, d as parseLinkedDeviceId, h as parseMpcMaterialActivationRef, k as parseWalletKeyId, l as parseLinkDeviceSessionId, n as hasWhitespaceOrControlCharacters, r as mpcMaterialActivationRefsEqual, u as parseLinkedDeviceEnrollmentId } from "./domainIds-lcrFg6Sa.js";
|
|
2
2
|
import { D as parseImplicitNearAccountId, O as parseNamedNearAccountId, _ as requireRecord, m as requireArray, v as requireRecordCopy } from "./validation-gat4LEKm.js";
|
|
3
3
|
import { i as base64UrlEncode, r as base64UrlDecode } from "./base64-Clm8C-e9.js";
|
|
4
|
-
import {
|
|
5
|
-
import { $t as
|
|
4
|
+
import { A as delegatedWalletPermissionNamesV1, C as parseEnvelopeNonceB64u, E as parseSecp256k1CompressedPublicKeyB64u, F as exactRecord$3, I as rejectUnknownFields$1, O as requireParsed, S as parseEnvelopeCiphertextB64u, _ as signingRootScopeFromRuntimePolicyScope, b as parseDigestField$1, d as normalizeThresholdEd25519ParticipantIds, v as deriveEvmFamilySigningKeySlotId$1, x as parseEd25519PublicKeyB64u } from "./sessionPolicy-DO-MkL65.js";
|
|
5
|
+
import { $t as wireLiteral, At as parseActiveWalletSessionV1, Bt as parseDelegatedWalletAuthority, Ct as parseRouterAbMpcMaterialActivationRef, Dt as sameRouterAbMpcMaterialActivationRef, Ft as digest, Gt as rpId$1, Ht as parseNonNegativeSafeInteger, It as enrollmentId, Jt as walletAuthorityId, Kt as sessionId, Lt as keyLabeled, Nt as authorizationDeviceId, Ot as requireRouterAbX25519PublicKey, Pt as credentialId, Qt as walletSessionId, Rt as linkedDeviceId, Tt as routerAbMpcMaterialActivationRefFromWire, Ut as parseTargetEmail, Vt as parseNonEmptyToken, Wt as parseUnixTime, Xt as walletKeyId, Yt as walletId, Zt as walletSessionAuthorizationId, en as wireNullable, j as requireRouterAbEcdsaDerivationNormalSigningStateV1, qt as walletAuthMethodId, rn as wireUnion, tn as wireObject, xt as parseSdkEcdsaDerivationThresholdKeyId, zt as nullableToken } from "./ecdsaPresignLifecycle-Bfx2AQKb.js";
|
|
6
6
|
import { d as parseMpcWalletSigningQuotaId, f as parsePrincipalId, h as parseWalletSessionId, l as parseDeviceId, m as parseWalletSessionAuthorizationId, p as parseTenantId } from "./capabilityKinds-hvYqa6S_.js";
|
|
7
7
|
import { f as alphabetizeStringify, m as sha256BytesUtf8 } from "./chains-BMh3btVo.js";
|
|
8
8
|
import { a as sha256DigestB64u, o as sha256Utf8DigestB64u, r as parseDigestB64u } from "./canonicalPrimitives-BTHWz80v.js";
|
|
9
9
|
import { c as toWalletId, l as walletIdFromWalletProfile } from "./ecdsaChainTarget-Bl-JWyuw.js";
|
|
10
10
|
import { n as SIGNER_AUTH_METHODS } from "./signerDomain-IEAVrOrc.js";
|
|
11
|
-
import { _ as rawDigest, b as u32, d as parseWalletSignerActivationSetV1, g as lp32, h as concat, u as parseWalletAuthorityV1, v as rawPublicKey, w as parseWalletAuthMethodRecordV2, x as u64, y as text } from "./walletAuthority-
|
|
11
|
+
import { _ as rawDigest, b as u32, d as parseWalletSignerActivationSetV1, g as lp32, h as concat, u as parseWalletAuthorityV1, v as rawPublicKey, w as parseWalletAuthMethodRecordV2, x as u64, y as text } from "./walletAuthority-DD9T25F6.js";
|
|
12
12
|
import { i as nearEd25519SigningKeyIdFromString } from "./registrationIds-DLSdEKSv.js";
|
|
13
13
|
import { r as SigningSessionIds } from "./types-Dx9fczU7.js";
|
|
14
14
|
//#region ../shared-ts/src/device-linking/contracts.ts
|
|
@@ -108,11 +108,11 @@ function parseLinkedDeviceEd25519ExportRootRecipientV1(raw) {
|
|
|
108
108
|
requireTransferAlg(record.transferAlg, "LinkedDeviceEd25519ExportRootRecipientV1.transferAlg");
|
|
109
109
|
return {
|
|
110
110
|
kind: "linked_device_ed25519_export_root_recipient_v1",
|
|
111
|
-
linkSessionId:
|
|
112
|
-
walletId:
|
|
113
|
-
walletKeyId:
|
|
114
|
-
enrollmentId:
|
|
115
|
-
deviceId:
|
|
111
|
+
linkSessionId: requireParsed(parseLinkDeviceSessionId(record.linkSessionId), "LinkedDeviceEd25519ExportRootRecipientV1.linkSessionId"),
|
|
112
|
+
walletId: requireParsed(parseWalletId(record.walletId), "walletId"),
|
|
113
|
+
walletKeyId: requireParsed(parseWalletKeyId(record.walletKeyId), "walletKeyId"),
|
|
114
|
+
enrollmentId: requireParsed(parseLinkedDeviceEnrollmentId(record.enrollmentId), "enrollmentId"),
|
|
115
|
+
deviceId: requireParsed(parseLinkedDeviceId(record.deviceId), "deviceId"),
|
|
116
116
|
transferAlg: LINKED_DEVICE_ED25519_EXPORT_ROOT_TRANSFER_ALG_V1,
|
|
117
117
|
applicationBindingDigestB64u: parseDigestField$1(record.applicationBindingDigestB64u, "applicationBindingDigestB64u"),
|
|
118
118
|
registeredPublicKeyB64u: parseEd25519PublicKeyB64u(record.registeredPublicKeyB64u, "registeredPublicKeyB64u"),
|
|
@@ -131,11 +131,11 @@ function parseLinkedDeviceEd25519ExportRootPackageV1(raw) {
|
|
|
131
131
|
if (recipientPublicKeyB64u === ephemeralPublicKeyB64u) throw new Error("ephemeralPublicKeyB64u repeats the recipient key");
|
|
132
132
|
return {
|
|
133
133
|
kind: "linked_device_ed25519_export_root_package_v1",
|
|
134
|
-
linkSessionId:
|
|
135
|
-
walletId:
|
|
136
|
-
walletKeyId:
|
|
137
|
-
enrollmentId:
|
|
138
|
-
deviceId:
|
|
134
|
+
linkSessionId: requireParsed(parseLinkDeviceSessionId(record.linkSessionId), "linkSessionId"),
|
|
135
|
+
walletId: requireParsed(parseWalletId(record.walletId), "walletId"),
|
|
136
|
+
walletKeyId: requireParsed(parseWalletKeyId(record.walletKeyId), "walletKeyId"),
|
|
137
|
+
enrollmentId: requireParsed(parseLinkedDeviceEnrollmentId(record.enrollmentId), "enrollmentId"),
|
|
138
|
+
deviceId: requireParsed(parseLinkedDeviceId(record.deviceId), "deviceId"),
|
|
139
139
|
transferAlg: LINKED_DEVICE_ED25519_EXPORT_ROOT_TRANSFER_ALG_V1,
|
|
140
140
|
applicationBindingDigestB64u: parseDigestField$1(record.applicationBindingDigestB64u, "applicationBindingDigestB64u"),
|
|
141
141
|
registeredPublicKeyB64u: parseEd25519PublicKeyB64u(record.registeredPublicKeyB64u, "registeredPublicKeyB64u"),
|
|
@@ -174,10 +174,6 @@ function parseUnixMs(value, label) {
|
|
|
174
174
|
if (typeof value !== "number" || !Number.isSafeInteger(value) || value <= 0) throw new Error(`${label} must be a positive unix-millisecond timestamp`);
|
|
175
175
|
return value;
|
|
176
176
|
}
|
|
177
|
-
function parseRequired(parsed, label) {
|
|
178
|
-
if (!parsed.ok) throw new Error(`${label} ${parsed.error.message}`);
|
|
179
|
-
return parsed.value;
|
|
180
|
-
}
|
|
181
177
|
//#endregion
|
|
182
178
|
//#region ../shared-ts/src/utils/addAuthMethodRegistration.ts
|
|
183
179
|
/**
|
|
@@ -1117,7 +1113,7 @@ function parseLinkedDeviceEd25519SourcePreservingReservationV1(raw) {
|
|
|
1117
1113
|
const participantIds = parseRouterAbEd25519YaoParticipantIdsV1(record.participant_ids);
|
|
1118
1114
|
const deriverA = parseEd25519ClientPackage$1(record.deriver_a_client_package, "deriver_a");
|
|
1119
1115
|
const deriverB = parseEd25519ClientPackage$1(record.deriver_b_client_package, "deriver_b");
|
|
1120
|
-
if (!
|
|
1116
|
+
if (!sameRouterAbEd25519YaoByteSequence(activationReceipt.transcript, deriverA.transcript) || !sameRouterAbEd25519YaoByteSequence(activationReceipt.transcript, deriverB.transcript)) throw new Error("linked-device Ed25519 reservation packages have mismatched transcripts");
|
|
1121
1117
|
return {
|
|
1122
1118
|
state: "inactive",
|
|
1123
1119
|
reservationId: requireText(record.reservation_id, "reservation_id"),
|
|
@@ -1276,10 +1272,10 @@ function parseEd25519Contribution(record) {
|
|
|
1276
1272
|
if (!sameEdStableIdentity(sourceBinding, targetBinding)) throw new Error("linked-device Ed25519 source contribution stable identity differs");
|
|
1277
1273
|
if (!mpcMaterialActivationRefsEqual(routerAbMpcMaterialActivationRefFromWire(activationReceipt.material_activation), targetMaterialActivation)) throw new Error("linked-device Ed25519 source contribution receipt activation differs");
|
|
1278
1274
|
const sourceRegisteredPublicKeyB64u = parseEd25519PublicKeyB64u(record.sourceRegisteredPublicKeyB64u, "sourceRegisteredPublicKeyB64u");
|
|
1279
|
-
if (!
|
|
1275
|
+
if (!sameRouterAbEd25519YaoByteSequence(activationReceipt.registered_public_key, Array.from(base64UrlDecode(sourceRegisteredPublicKeyB64u)))) throw new Error("linked-device Ed25519 source contribution receipt public key differs");
|
|
1280
1276
|
const deriverA = parseEd25519ClientPackage$1(record.deriver_a_client_package, "deriver_a");
|
|
1281
1277
|
const deriverB = parseEd25519ClientPackage$1(record.deriver_b_client_package, "deriver_b");
|
|
1282
|
-
if (!
|
|
1278
|
+
if (!sameRouterAbEd25519YaoByteSequence(activationReceipt.transcript, deriverA.transcript) || !sameRouterAbEd25519YaoByteSequence(activationReceipt.transcript, deriverB.transcript)) throw new Error("linked-device Ed25519 source contribution package transcript differs");
|
|
1283
1279
|
if (sourceBinding.material_activation.activation_id === targetMaterialActivation.activationId) throw new Error("linked-device Ed25519 source contribution reuses the source activation");
|
|
1284
1280
|
return {
|
|
1285
1281
|
kind: "linked_device_ed25519_source_contribution_v1",
|
|
@@ -1606,9 +1602,6 @@ function parseFixedBase64(raw, byteLength, label) {
|
|
|
1606
1602
|
if (decoded.length !== byteLength || base64UrlEncode(decoded) !== raw) throw new Error(`${label} must decode to ${byteLength} bytes`);
|
|
1607
1603
|
return raw;
|
|
1608
1604
|
}
|
|
1609
|
-
function sameBytes$1(left, right) {
|
|
1610
|
-
return left.length === right.length && left.every((value, index) => value === right[index]);
|
|
1611
|
-
}
|
|
1612
1605
|
function requireText(raw, label) {
|
|
1613
1606
|
if (typeof raw !== "string" || raw.length === 0 || raw.trim() !== raw || [...raw].some((character) => {
|
|
1614
1607
|
const code = character.charCodeAt(0);
|
|
@@ -1709,7 +1702,7 @@ function parseEd25519Package(raw) {
|
|
|
1709
1702
|
if (!mpcMaterialActivationRefsEqual(materialActivation, routerAbMpcMaterialActivationRefFromWire(targetBinding.material_activation))) throw new Error("CommittedEd25519SignerPackageV1 target binding does not match material");
|
|
1710
1703
|
const deriverA = parseEd25519ClientPackage(record.deriver_a_client_package, "deriver_a_client_package", "deriver_a");
|
|
1711
1704
|
const deriverB = parseEd25519ClientPackage(record.deriver_b_client_package, "deriver_b_client_package", "deriver_b");
|
|
1712
|
-
if (!
|
|
1705
|
+
if (!sameRouterAbEd25519YaoByteSequence(activationReceipt.transcript, deriverA.transcript) || !sameRouterAbEd25519YaoByteSequence(activationReceipt.transcript, deriverB.transcript)) throw new Error("CommittedEd25519SignerPackageV1 receipt transcript does not match packages");
|
|
1713
1706
|
return {
|
|
1714
1707
|
kind: "committed_ed25519_signer_package_v1",
|
|
1715
1708
|
materialActivation,
|
|
@@ -1875,9 +1868,6 @@ function parseCommittedEcdsaSignerPackageWireV1(raw) {
|
|
|
1875
1868
|
function inspectRawObject(raw) {
|
|
1876
1869
|
return raw !== null && typeof raw === "object" && !Array.isArray(raw) ? raw : null;
|
|
1877
1870
|
}
|
|
1878
|
-
function sameBytes(left, right) {
|
|
1879
|
-
return left.length === right.length && left.every((value, index) => value === right[index]);
|
|
1880
|
-
}
|
|
1881
1871
|
function requireExactWireFields(record, keys, label) {
|
|
1882
1872
|
const expected = new Set(keys);
|
|
1883
1873
|
const actual = Object.keys(record);
|
|
@@ -3985,10 +3975,6 @@ const OWNER_LANE_PARTICIPANT_CONTINUITY_FIELDS = [
|
|
|
3985
3975
|
"custodyKeyManifestDigestB64u",
|
|
3986
3976
|
"sourceIdentityDigestB64u"
|
|
3987
3977
|
];
|
|
3988
|
-
function requireResult(result, label) {
|
|
3989
|
-
if (result.ok) return result.value;
|
|
3990
|
-
throw new Error(`${label} ${result.error.message}`);
|
|
3991
|
-
}
|
|
3992
3978
|
/** Parse the owner signer identity without widening it into a generic string. */
|
|
3993
3979
|
function parseWalletSignerId(raw, label = "walletSignerId") {
|
|
3994
3980
|
if (typeof raw !== "string") throw new Error(`${label} must be a string`);
|
|
@@ -4014,7 +4000,7 @@ function buildOwnerLaneParticipantContinuityV1(args) {
|
|
|
4014
4000
|
kind: "owner_lane_participant_continuity_v1",
|
|
4015
4001
|
signerId: parseWalletSignerId(args.signerId),
|
|
4016
4002
|
participantIds,
|
|
4017
|
-
signingWorkerId:
|
|
4003
|
+
signingWorkerId: requireParsed(parseMpcSigningWorkerRef(args.signingWorkerId), "signingWorkerId"),
|
|
4018
4004
|
custodyKeyManifestDigestB64u: parseDigestField$1(args.custodyKeyManifestDigestB64u, "custodyKeyManifestDigestB64u"),
|
|
4019
4005
|
sourceIdentityDigestB64u: parseDigestField$1(args.sourceIdentityDigestB64u, "sourceIdentityDigestB64u")
|
|
4020
4006
|
};
|
|
@@ -4026,7 +4012,7 @@ function parseOwnerLaneParticipantContinuityV1(raw, label = "ownerParticipantCon
|
|
|
4026
4012
|
return buildOwnerLaneParticipantContinuityV1({
|
|
4027
4013
|
signerId: parseWalletSignerId(record.signerId, `${label}.signerId`),
|
|
4028
4014
|
participantIds: parseParticipantIds(record.participantIds, `${label}.participantIds`),
|
|
4029
|
-
signingWorkerId:
|
|
4015
|
+
signingWorkerId: requireParsed(parseMpcSigningWorkerRef(record.signingWorkerId), `${label}.signingWorkerId`),
|
|
4030
4016
|
custodyKeyManifestDigestB64u: parseDigestField$1(record.custodyKeyManifestDigestB64u, `${label}.custodyKeyManifestDigestB64u`),
|
|
4031
4017
|
sourceIdentityDigestB64u: parseDigestField$1(record.sourceIdentityDigestB64u, `${label}.sourceIdentityDigestB64u`)
|
|
4032
4018
|
});
|
|
@@ -4285,4 +4271,4 @@ function deriveEvmFamilyKeyFingerprintFromPublicFacts(input) {
|
|
|
4285
4271
|
}))}`;
|
|
4286
4272
|
}
|
|
4287
4273
|
//#endregion
|
|
4288
|
-
export { parseLinkedDeviceListRequestV1 as $,
|
|
4274
|
+
export { parseLinkedDeviceListRequestV1 as $, parseRouterAbEd25519YaoExportResultV1 as $t, buildImplicitNearAccountBinding as A, serializeQrLinkedDeviceSessionPayloadV5 as At, LINKED_DEVICE_CLOCK_SKEW_TOLERANCE_MS_V1 as B, ROUTER_AB_ED25519_YAO_EXPORT_EXECUTE_PATH_V1 as Bt, toThresholdOwnerAddress as C, parseLinkedDeviceOwnerAuthorizationRequestV1 as Ct, parseSigningWorkerParticipantRecordV1 as D, parseLinkedDeviceTargetPreparationRequestV1 as Dt, parseLaneParticipantBindingDigestB64u as E, parseLinkedDeviceTargetCredentialRegistrationResultV1 as Et, buildWalletIdentity as F, parseLinkedDeviceOrdinaryMaterialSourceContributionPreparationV1 as Ft, computeWalletSessionInstallationReceiptDigestB64u as G, ROUTER_AB_ED25519_YAO_REGISTRATION_ADMISSION_PATH_V1 as Gt, LINKED_DEVICE_REQUEST_PROOF_MAX_TTL_MS_V1 as H, ROUTER_AB_ED25519_YAO_RECOVERY_ADMISSION_PATH_V1 as Ht, nearAccountBindingFromRaw as I, sameEcdsaSourceSigner as It, parseLocalAuthorityActivationFinalAckV1 as J, parseRouterAbEd25519YaoActivationPublicReceiptV1 as Jt, computeWalletSessionOperationCredentialDigestB64u as K, ROUTER_AB_ED25519_YAO_REGISTRATION_EXECUTE_PATH_V1 as Kt, nearEd25519SignerBindingFromRaw as L, sameEcdsaTarget as Lt, buildNearEd25519SignerBinding as M, parseLinkedDeviceEcdsaSourcePreservingActivationReceiptV1 as Mt, buildPasskeyAuthScope as N, parseLinkedDeviceEd25519SourcePreservingReservationV1 as Nt, parseThresholdEcdsaKeyHandle as O, parseLinkedDeviceTargetPreparationV1 as Ot, buildPasskeyWalletAuthMethodBinding as P, parseLinkedDeviceOrdinaryMaterialSourceContributionPreparationTupleV1 as Pt, parseLinkedDeviceWalletSessionCredentialDeliveryV1 as Q, parseRouterAbEd25519YaoExportExecuteRequestV1 as Qt, parseRpId as R, ROUTER_AB_ED25519_YAO_EMAIL_OTP_RECOVERY_BOOTSTRAP_KIND_V1 as Rt, toThresholdEcdsaPublicKeyB64u as S, parseLinkedDeviceEmailOtpVerificationResultV1 as St, parseLaneHolderParticipantRecordV1 as T, parseLinkedDeviceSessionClaimV1 as Tt, computeLinkedDevicePublicKeyDigestV1 as U, ROUTER_AB_ED25519_YAO_RECOVERY_CHALLENGE_ID_HEADER_V1 as Ut, LINKED_DEVICE_REQUEST_PROOF_HEADER_V1 as V, ROUTER_AB_ED25519_YAO_RECOVERY_ACTIVATE_PATH_V1 as Vt, computeLinkedDeviceTargetPreparationDigestV1 as W, ROUTER_AB_ED25519_YAO_RECOVERY_EXECUTE_PATH_V1 as Wt, assertLinkedDeviceWalletSessionCredentialDeliveryIntegrityV1 as X, parseRouterAbEd25519YaoCeremonyBindingV1 as Xt, parseLocalAuthorityInstallationReceiptV1 as Y, parseRouterAbEd25519YaoApplicationBindingFactsV1 as Yt, parseLinkedDeviceWalletSessionCredentialDeliveryBindingV1 as Z, parseRouterAbEd25519YaoExportAdmissionReceiptV1 as Zt, resolveThresholdSigningRootBindingFromRecord as _, parseLinkedDeviceEd25519ExportRootPackageV1 as _n, parseLinkedDeviceEmailOtpChallengeResultV1 as _t, buildEvmFamilyEcdsaWalletKey as a, parseRouterAbEd25519YaoRecoveryAdmissionRequestV1 as an, buildLinkedDeviceSessionCancelClaimedRequestV1 as at, toParticipantId as b, serializeLinkedDeviceEd25519ExportRootTransferBindingV1 as bn, parseLinkedDeviceEmailOtpFactorReleaseEnvelopeV1 as bt, buildResolvedEvmFamilyEcdsaKey as c, parseRouterAbEd25519YaoRegistrationActivationResultV1 as cn, buildLinkedDeviceTargetCredentialRegistrationV1 as ct, deriveEvmFamilyKeyFingerprint as d, sameRouterAbEd25519YaoActivationBindingV1 as dn, parseLinkSessionProjectionV1 as dt, parseRouterAbEd25519YaoParticipantIdsV1 as en, parseLinkedDeviceListResultV1 as et, deriveEvmFamilyKeyFingerprintFromPublicFacts as f, sameRouterAbEd25519YaoRegistrationAdmissionRequestV1 as fn, parseLinkSessionTransportEventV1 as ft, resolveThresholdEcdsaKeyIdFromRecord as g, buildLinkedDeviceEd25519ExportRootTransferBindingV1 as gn, parseLinkedDeviceEmailOtpChallengeResendRequestV1 as gt, parseThresholdSigningRootBinding as h, LINKED_DEVICE_ED25519_EXPORT_ROOT_TRANSFER_ALG_V1 as hn, parseLinkedDeviceEmailOtpBaseFactorResolutionResultV1 as ht, buildEvmFamilyEcdsaSessionLanePolicy as i, parseRouterAbEd25519YaoRecoveryActivationResultV1 as in, buildLinkedDeviceApprovalV1 as it, buildNamedNearAccountBinding as j, parseCommittedAuthorityPackagesV1 as jt, buildEmailOtpWalletAuthMethodBinding as k, parseQrLinkedDeviceSessionPayloadV5 as kt, buildVerifiedEcdsaPublicFacts as l, parseRouterAbEd25519YaoRegistrationAdmissionRequestV1 as ln, buildQrLinkedDeviceSessionPayloadV5 as lt, evmFamilyEcdsaWalletKeyToIdentity as m, parseWalletAddAuthMethodRegistrationOptions as mn, parseLinkedDeviceApprovalResultV1 as mt, buildBaseEvmFamilyEcdsaKeyIdentity as n, parseRouterAbEd25519YaoRecoveryActivationExecuteRequestV1 as nn, parseLinkedDeviceRevokeResultV1 as nt, buildHydratedEcdsaSignerMaterial as o, parseRouterAbEd25519YaoRegistrationActivationAdmissionReceiptV1 as on, buildLinkedDeviceSessionCancelUnclaimedRequestV1 as ot, deriveEvmFamilySigningKeySlotId as p, deriveRouterAbEd25519YaoApplicationBindingDigestV1 as pn, parseLinkedDeviceApprovalDeliveryV1 as pt, parseActivateInstalledAuthorityResultV1 as q, ROUTER_AB_ED25519_YAO_WARM_RECOVERY_BOOTSTRAP_PATH_V1 as qt, buildEvmFamilyEcdsaRecoveredMaterialLanePolicy as r, parseRouterAbEd25519YaoRecoveryActivationReceiptV1 as rn, parseWebAuthnAuthenticatorDeviceInfo as rt, buildPasskeyEcdsaAuthBinding as s, parseRouterAbEd25519YaoRegistrationActivationExecuteRequestV1 as sn, buildLinkedDeviceSessionClaimRequestV1 as st, assertMatchingVerifiedEcdsaPublicFacts as t, parseRouterAbEd25519YaoRecoveryActivationAdmissionReceiptV1 as tn, parseLinkedDeviceRevokeRequestV1 as tt, deriveEvmFamilyEcdsaKeyHandle as u, parseRouterAbEd25519YaoWarmRecoveryBootstrapRequestV1 as un, parseLinkDevicePublicKeyB64u as ut, resolveThresholdSigningRootBindingFromRuntimePolicyScope as v, parseLinkedDeviceEd25519ExportRootRecipientPublicKeyB64u as vn, parseLinkedDeviceEmailOtpChallengeStartRequestV1 as vt, parseOwnerLaneParticipantContinuityV1 as w, parseLinkedDeviceOwnerAuthorizationSourceV1 as wt, toRpId as x, assertNeverLinkSessionStateV1 as xn, parseLinkedDeviceEmailOtpVerificationGrantV1 as xt, toEvmFamilyEcdsaKeyHandle as y, parseLinkedDeviceEd25519ExportRootRecipientV1 as yn, parseLinkedDeviceEmailOtpChallengeVerifyRequestV1 as yt, walletAuthMethodBindingFromRaw as z, ROUTER_AB_ED25519_YAO_EXPORT_ADMISSION_PATH_V1 as zt };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { O as parseWalletId, i as parseCapabilityInstanceRef } from "./domainIds-lcrFg6Sa.js";
|
|
2
2
|
import { g as requireNonEmptyString, m as requireArray, v as requireRecordCopy } from "./validation-gat4LEKm.js";
|
|
3
3
|
import { n as secureRandomBase64Url } from "./secureRandomId-BORsmdS4.js";
|
|
4
|
-
import {
|
|
4
|
+
import { kt as activeWalletSessionV1RecordsEqual, nt as parseWalletAuthAuthorityRef } from "./ecdsaPresignLifecycle-Bfx2AQKb.js";
|
|
5
5
|
import { h as parseWalletSessionId, m as parseWalletSessionAuthorizationId } from "./capabilityKinds-hvYqa6S_.js";
|
|
6
6
|
import { a as thresholdEcdsaChainTargetFromRequest } from "./ecdsaChainTarget-Bl-JWyuw.js";
|
|
7
7
|
import { o as isWalletAuthMethod } from "./signerDomain-IEAVrOrc.js";
|
|
8
8
|
import { t as toAccountId } from "./accountIds-DhIPGOSN.js";
|
|
9
|
-
import { z as walletAuthMethodBindingFromRaw } from "./evmFamilyEcdsaIdentity-
|
|
9
|
+
import { z as walletAuthMethodBindingFromRaw } from "./evmFamilyEcdsaIdentity-CqGafQsI.js";
|
|
10
10
|
import { a as parseNearEd25519SigningKeyId } from "./registrationIds-DLSdEKSv.js";
|
|
11
|
-
import { s as parseEcdsaThresholdKeyId } from "./keyMaterialBrands-
|
|
11
|
+
import { s as parseEcdsaThresholdKeyId } from "./keyMaterialBrands-CogGAAZn.js";
|
|
12
12
|
import { t as parseSignerSlot } from "./signerSlot-_ovonwVX.js";
|
|
13
13
|
import { _ as NonceCoordinatorDegradationReason, v as NonceCoordinatorFallback, x as NonceLeaseState } from "./nonceLaneKeys-C3c9lG6u.js";
|
|
14
14
|
import { t as createEvmClient } from "./EvmClient-f3gUhS2L.js";
|
|
15
|
-
import { n as resolveAppearanceTheme } from "./configHelpers-
|
|
15
|
+
import { n as resolveAppearanceTheme } from "./configHelpers-D1EqxVxg.js";
|
|
16
16
|
import { n as getDefaultCspNonce, r as appearanceTokenCssRule, t as createCspStylesheetManager } from "./csp-stylesheet-btENhsNp.js";
|
|
17
17
|
//#region src/core/signingEngine/webauthnAuth/fallbacks/safari-fallbacks.ts
|
|
18
18
|
const WebAuthnBridgeMessage = {
|
|
@@ -2366,35 +2366,15 @@ function parseNonceDiagnosticLane(value) {
|
|
|
2366
2366
|
}
|
|
2367
2367
|
function parseRequiredNonceStateCounts(value) {
|
|
2368
2368
|
const record = requireRecordCopy(value, "nonce state counts");
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
[NonceLeaseState.Expired]: requireNonceStateCount(record, NonceLeaseState.Expired),
|
|
2373
|
-
[NonceLeaseState.Signed]: requireNonceStateCount(record, NonceLeaseState.Signed),
|
|
2374
|
-
[NonceLeaseState.SignedLeaseExpired]: requireNonceStateCount(record, NonceLeaseState.SignedLeaseExpired),
|
|
2375
|
-
[NonceLeaseState.BroadcastAccepted]: requireNonceStateCount(record, NonceLeaseState.BroadcastAccepted),
|
|
2376
|
-
[NonceLeaseState.BroadcastRejected]: requireNonceStateCount(record, NonceLeaseState.BroadcastRejected),
|
|
2377
|
-
[NonceLeaseState.Finalized]: requireNonceStateCount(record, NonceLeaseState.Finalized),
|
|
2378
|
-
[NonceLeaseState.Dropped]: requireNonceStateCount(record, NonceLeaseState.Dropped),
|
|
2379
|
-
[NonceLeaseState.Replaced]: requireNonceStateCount(record, NonceLeaseState.Replaced),
|
|
2380
|
-
[NonceLeaseState.Reconciled]: requireNonceStateCount(record, NonceLeaseState.Reconciled)
|
|
2381
|
-
};
|
|
2369
|
+
const counts = {};
|
|
2370
|
+
for (const state of Object.values(NonceLeaseState)) counts[state] = requireNonceStateCount(record, state);
|
|
2371
|
+
return counts;
|
|
2382
2372
|
}
|
|
2383
2373
|
function parsePartialNonceStateCounts(value) {
|
|
2384
2374
|
const record = requireRecordCopy(value, "nonce state counts");
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
...record[NonceLeaseState.Expired] === void 0 ? {} : { [NonceLeaseState.Expired]: requireNonceStateCount(record, NonceLeaseState.Expired) },
|
|
2389
|
-
...record[NonceLeaseState.Signed] === void 0 ? {} : { [NonceLeaseState.Signed]: requireNonceStateCount(record, NonceLeaseState.Signed) },
|
|
2390
|
-
...record[NonceLeaseState.SignedLeaseExpired] === void 0 ? {} : { [NonceLeaseState.SignedLeaseExpired]: requireNonceStateCount(record, NonceLeaseState.SignedLeaseExpired) },
|
|
2391
|
-
...record[NonceLeaseState.BroadcastAccepted] === void 0 ? {} : { [NonceLeaseState.BroadcastAccepted]: requireNonceStateCount(record, NonceLeaseState.BroadcastAccepted) },
|
|
2392
|
-
...record[NonceLeaseState.BroadcastRejected] === void 0 ? {} : { [NonceLeaseState.BroadcastRejected]: requireNonceStateCount(record, NonceLeaseState.BroadcastRejected) },
|
|
2393
|
-
...record[NonceLeaseState.Finalized] === void 0 ? {} : { [NonceLeaseState.Finalized]: requireNonceStateCount(record, NonceLeaseState.Finalized) },
|
|
2394
|
-
...record[NonceLeaseState.Dropped] === void 0 ? {} : { [NonceLeaseState.Dropped]: requireNonceStateCount(record, NonceLeaseState.Dropped) },
|
|
2395
|
-
...record[NonceLeaseState.Replaced] === void 0 ? {} : { [NonceLeaseState.Replaced]: requireNonceStateCount(record, NonceLeaseState.Replaced) },
|
|
2396
|
-
...record[NonceLeaseState.Reconciled] === void 0 ? {} : { [NonceLeaseState.Reconciled]: requireNonceStateCount(record, NonceLeaseState.Reconciled) }
|
|
2397
|
-
};
|
|
2375
|
+
const counts = {};
|
|
2376
|
+
for (const state of Object.values(NonceLeaseState)) if (record[state] !== void 0) counts[state] = requireNonceStateCount(record, state);
|
|
2377
|
+
return counts;
|
|
2398
2378
|
}
|
|
2399
2379
|
function requireNonceStateCount(record, state) {
|
|
2400
2380
|
return requireNonNegativeSafeInteger(record[state], `nonce state ${state}`);
|
package/dist/esm/sdk/{exactSigningLaneIdentity-DQeqPMST.js → exactSigningLaneIdentity-m6uTXV_A.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { h as parseMpcMaterialActivationRef } from "./domainIds-lcrFg6Sa.js";
|
|
|
2
2
|
import { E as isImplicitNearAccountId, k as parseNearAccountId } from "./validation-gat4LEKm.js";
|
|
3
3
|
import { f as alphabetizeStringify } from "./chains-BMh3btVo.js";
|
|
4
4
|
import { a as thresholdEcdsaChainTargetFromRequest, c as toWalletId, o as thresholdEcdsaChainTargetKey } from "./ecdsaChainTarget-Bl-JWyuw.js";
|
|
5
|
-
import { A as buildImplicitNearAccountBinding, F as buildWalletIdentity, L as nearEd25519SignerBindingFromRaw, M as buildNearEd25519SignerBinding, j as buildNamedNearAccountBinding, n as buildBaseEvmFamilyEcdsaKeyIdentity, x as toRpId, y as toEvmFamilyEcdsaKeyHandle } from "./evmFamilyEcdsaIdentity-
|
|
5
|
+
import { A as buildImplicitNearAccountBinding, F as buildWalletIdentity, L as nearEd25519SignerBindingFromRaw, M as buildNearEd25519SignerBinding, j as buildNamedNearAccountBinding, n as buildBaseEvmFamilyEcdsaKeyIdentity, x as toRpId, y as toEvmFamilyEcdsaKeyHandle } from "./evmFamilyEcdsaIdentity-CqGafQsI.js";
|
|
6
6
|
import { r as SigningSessionIds } from "./types-Dx9fczU7.js";
|
|
7
7
|
//#region src/core/signingEngine/session/identity/exactSigningLaneIdentity.ts
|
|
8
8
|
function assertNeverExactLane(value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as resolveUiAppearance, k as sameSurfaceMeasurementBinding } from "./adapters-
|
|
1
|
+
import { O as resolveUiAppearance, k as sameSurfaceMeasurementBinding } from "./adapters-Dli9XAZp.js";
|
|
2
2
|
import { t as createWalletIframeSurfaceMeasurementReporter } from "./surface-measurement-reporter-CSTyRsMa.js";
|
|
3
3
|
//#region src/core/signingEngine/uiConfirm/ui/export-viewer-host.ts
|
|
4
4
|
let mountedHost = null;
|
|
@@ -6,7 +6,7 @@ import { a as setEmbeddedBase, i as setEmbeddedAssetVersion, n as getEmbeddedBas
|
|
|
6
6
|
import { t as walletIframeRequestIdFromBoundary } from "./walletIframeIdentity-DB6Z2EC9.js";
|
|
7
7
|
import { _ as parseHostedAuthMenuExternalAuthResolution, n as WALLET_IFRAME_PROTOCOL_VERSION_MISMATCH, p as parseHostedAuthMenuCancelPayload, r as WALLET_PROTOCOL_VERSION, v as parseHostedAuthMenuOpenRequest } from "./messages-C7Dbx9iN.js";
|
|
8
8
|
import { t as errorMessage } from "./errors-93h9uAW9.js";
|
|
9
|
-
import { n as preloadWalletHostRecoveryCodeSurface, t as loadWalletHostRuntime } from "./runtimeLoader-
|
|
9
|
+
import { n as preloadWalletHostRecoveryCodeSurface, t as loadWalletHostRuntime } from "./runtimeLoader-DQVEFVaW.js";
|
|
10
10
|
//#region src/SeamsWeb/walletIframe/host/bootstrap.ts
|
|
11
11
|
/**
|
|
12
12
|
* Bootstrap tasks for the wallet iframe host.
|
|
@@ -387,7 +387,7 @@ function initWalletIFrame(options = {}) {
|
|
|
387
387
|
...state.walletConfigs || {},
|
|
388
388
|
...route.request.payload
|
|
389
389
|
};
|
|
390
|
-
if (CONFIRM_UI_SURFACES.some(({ selector }) => document.querySelector(selector))) (await import("./runtimeContext-
|
|
390
|
+
if (CONFIRM_UI_SURFACES.some(({ selector }) => document.querySelector(selector))) (await import("./runtimeContext-D3TBExQ6.js")).syncActiveWalletHostRuntimeConfig(state);
|
|
391
391
|
post({
|
|
392
392
|
type: "PONG",
|
|
393
393
|
requestId
|
|
@@ -473,7 +473,7 @@ function initWalletIFrame(options = {}) {
|
|
|
473
473
|
});
|
|
474
474
|
} catch (err) {
|
|
475
475
|
if (reviewAdmission?.cancelled) return;
|
|
476
|
-
const canonicalSignerErrors = await import("./canonicalSignerErrorCode-
|
|
476
|
+
const canonicalSignerErrors = await import("./canonicalSignerErrorCode-BBIk365e.js");
|
|
477
477
|
const codeRaw = err && typeof err === "object" && "code" in err ? err.code : void 0;
|
|
478
478
|
const message = errorMessage(err);
|
|
479
479
|
const code = canonicalSignerErrors.resolveWalletBoundaryErrorCode({
|
package/dist/{public/sdk/keyMaterialBrands-CX41hur6.js → esm/sdk/keyMaterialBrands-CogGAAZn.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as parseMpcMaterialActivationRef } from "./domainIds-lcrFg6Sa.js";
|
|
2
2
|
import { i as base64UrlEncode, r as base64UrlDecode } from "./base64-Clm8C-e9.js";
|
|
3
|
-
import {
|
|
3
|
+
import { xt as parseSdkEcdsaDerivationThresholdKeyId } from "./ecdsaPresignLifecycle-Bfx2AQKb.js";
|
|
4
4
|
//#region ../shared-ts/src/threshold/keyMaterialBrands.ts
|
|
5
5
|
function parseNonEmptyBrand(value, label) {
|
|
6
6
|
const normalized = String(value ?? "").trim();
|
|
@@ -5,8 +5,8 @@ import "./capabilityKinds-hvYqa6S_.js";
|
|
|
5
5
|
import "./signerDomain-IEAVrOrc.js";
|
|
6
6
|
import "./encoders-D8d07vpx.js";
|
|
7
7
|
import "./actions-CCvThiKe.js";
|
|
8
|
-
import { N as silentConfirmationConfig, O as resolveUiAppearance, f as ERROR_MESSAGES, j as UserConfirmationType, l as collectAuthenticationCredentialForExactNearChallengeB64u, m as isUserCancelledUserConfirm, n as createConfirmTxFlowAdapters, o as __isWalletIframeHostMode, t as createConfirmSession, u as collectAuthenticationCredentialForExactWalletChallengeB64u, x as getIntentDigest } from "./adapters-
|
|
9
|
-
import { n as removeExportViewerHostIfPresent, r as upsertExportViewerHost } from "./export-viewer-host-
|
|
8
|
+
import { N as silentConfirmationConfig, O as resolveUiAppearance, f as ERROR_MESSAGES, j as UserConfirmationType, l as collectAuthenticationCredentialForExactNearChallengeB64u, m as isUserCancelledUserConfirm, n as createConfirmTxFlowAdapters, o as __isWalletIframeHostMode, t as createConfirmSession, u as collectAuthenticationCredentialForExactWalletChallengeB64u, x as getIntentDigest } from "./adapters-Dli9XAZp.js";
|
|
9
|
+
import { n as removeExportViewerHostIfPresent, r as upsertExportViewerHost } from "./export-viewer-host-rWMSQQMP.js";
|
|
10
10
|
import "./jsxRuntime.module-CuH5ZEIA.js";
|
|
11
11
|
//#region src/core/signingEngine/uiConfirm/handlers/flows/localOnly.ts
|
|
12
12
|
function createRandomChallengeB64u() {
|