@seams/wallet 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +201 -0
- package/THIRD_PARTY_NOTICES.md +15095 -0
- package/dist/.build-inputs.sha256 +1 -1
- package/dist/esm/SeamsWeb/signingSurface/BrowserSigningSurface.js +7 -14
- package/dist/esm/core/signingEngine/session/identity/exactWalletSessionReader.js +2 -27
- package/dist/esm/react/SeamsWeb/signingSurface/BrowserSigningSurface.js +7 -14
- package/dist/esm/react/core/signingEngine/session/identity/exactWalletSessionReader.js +2 -27
- package/dist/esm/sdk/export-private-key-viewer.js +1420 -1425
- package/dist/esm/sdk/halo-border.js +1424 -1429
- package/dist/esm/sdk/{host-BqwEYhX0.js → host-DNmO0eve.js} +2 -2
- package/dist/esm/sdk/passkey-halo-loading.js +1426 -1431
- package/dist/{public/sdk/registrationPreparationPreload-u3ruCmpF.js → esm/sdk/registrationPreparationPreload-CwUkRwVz.js} +1 -1
- package/dist/esm/sdk/router_ab_ed25519_yao_client_bg.wasm +0 -0
- package/dist/{public/sdk/runtime-auth-Da9yQyaD.js → esm/sdk/runtime-auth-dpoaCtkK.js} +2 -2
- package/dist/esm/sdk/{runtime-device-link-DNlzlwrr.js → runtime-device-link-C75epnbj.js} +1 -1
- package/dist/{public/sdk/runtime-ecdsa-tempo-B7dBVcCI.js → esm/sdk/runtime-ecdsa-tempo-CV-E-iZG.js} +1 -1
- package/dist/{public/sdk/runtime-email-otp-CckVQZJC.js → esm/sdk/runtime-email-otp-V0mdMD_t.js} +1 -1
- package/dist/{public/sdk/runtime-export-WAiBwZL_.js → esm/sdk/runtime-export-C4HO5ysH.js} +1 -1
- package/dist/esm/sdk/{runtime-near-DBJ4KfFv.js → runtime-near-DlviFQWy.js} +1 -1
- package/dist/{public/sdk/runtime-preferences-DmH7eMHH.js → esm/sdk/runtime-preferences-DyJidFuf.js} +1 -1
- package/dist/esm/sdk/{runtime-recovery-kPgl9nTT.js → runtime-recovery-CHDE5gl0.js} +1 -1
- package/dist/esm/sdk/{runtimeContext-BorCgXo5.js → runtimeContext-D_TkUM6Z.js} +6 -38
- package/dist/esm/sdk/{runtimeLoader-BKQjNgXO.js → runtimeLoader-DxiLgXPm.js} +9 -9
- package/dist/esm/sdk/tx-confirm-ui.js +1400 -1407
- package/dist/esm/sdk/w3a-tx-confirmer.js +1442 -1447
- package/dist/esm/sdk/wallet-iframe-host-ecdsa.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-full.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-near.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-runtime.js +1 -1
- package/dist/esm/wasm/near_signer/pkg/wasm_signer_worker.js +4 -4
- 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/export-private-key-viewer.js +1420 -1425
- package/dist/public/sdk/halo-border.js +1424 -1429
- package/dist/public/sdk/{host-BqwEYhX0.js → host-DNmO0eve.js} +2 -2
- package/dist/public/sdk/passkey-halo-loading.js +1426 -1431
- package/dist/{esm/sdk/registrationPreparationPreload-u3ruCmpF.js → public/sdk/registrationPreparationPreload-CwUkRwVz.js} +1 -1
- package/dist/public/sdk/router_ab_ed25519_yao_client_bg.wasm +0 -0
- package/dist/{esm/sdk/runtime-auth-Da9yQyaD.js → public/sdk/runtime-auth-dpoaCtkK.js} +2 -2
- package/dist/public/sdk/{runtime-device-link-DNlzlwrr.js → runtime-device-link-C75epnbj.js} +1 -1
- package/dist/{esm/sdk/runtime-ecdsa-tempo-B7dBVcCI.js → public/sdk/runtime-ecdsa-tempo-CV-E-iZG.js} +1 -1
- package/dist/{esm/sdk/runtime-email-otp-CckVQZJC.js → public/sdk/runtime-email-otp-V0mdMD_t.js} +1 -1
- package/dist/{esm/sdk/runtime-export-WAiBwZL_.js → public/sdk/runtime-export-C4HO5ysH.js} +1 -1
- package/dist/public/sdk/{runtime-near-DBJ4KfFv.js → runtime-near-DlviFQWy.js} +1 -1
- package/dist/{esm/sdk/runtime-preferences-DmH7eMHH.js → public/sdk/runtime-preferences-DyJidFuf.js} +1 -1
- package/dist/public/sdk/{runtime-recovery-kPgl9nTT.js → runtime-recovery-CHDE5gl0.js} +1 -1
- package/dist/public/sdk/{runtimeContext-BorCgXo5.js → runtimeContext-D_TkUM6Z.js} +6 -38
- package/dist/public/sdk/{runtimeLoader-BKQjNgXO.js → runtimeLoader-DxiLgXPm.js} +9 -9
- package/dist/public/sdk/tx-confirm-ui.js +1400 -1407
- package/dist/public/sdk/w3a-tx-confirmer.js +1442 -1447
- package/dist/public/sdk/wallet-iframe-host-ecdsa.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-full.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-near.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-runtime.js +1 -1
- package/dist/public/sdk/workers/device-linking-key.worker.js +133 -140
- package/dist/public/sdk/workers/ecdsa-derivation-client.worker.js +94 -188
- package/dist/public/sdk/workers/ecdsa-online-client.worker.js +6 -7
- package/dist/public/sdk/workers/ecdsa-presign-client.worker.js +6 -7
- package/dist/public/sdk/workers/email-otp.worker.js +39 -52
- package/dist/public/sdk/workers/email_otp_runtime_bg.wasm +0 -0
- package/dist/public/sdk/workers/evm-crypto.worker.js +3 -3
- 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.worker.js +9 -9
- package/dist/public/sdk/workers/near_signer.wasm +0 -0
- package/dist/public/sdk/workers/passkey-confirm.worker.js +4 -4
- package/dist/public/sdk/workers/passkey-mpc-export.worker.js +9 -19
- 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/shamir3pass.worker.js +3 -3
- package/dist/public/sdk/workers/shamir3pass_runtime_bg.wasm +0 -0
- package/dist/public/sdk/workers/tempo-signer.worker.js +3 -3
- 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 +55 -1244
- 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 +32 -32
- package/dist/types/wallet/src/SeamsWeb/signingSurface/BrowserSigningSurface.d.ts +4 -4
- package/dist/types/wallet/src/core/signingEngine/session/identity/exactWalletSessionReader.d.ts +1 -9
- package/dist/workers/device-linking-key.worker.js +133 -140
- package/dist/workers/ecdsa-derivation-client.worker.js +94 -188
- package/dist/workers/ecdsa-online-client.worker.js +6 -7
- package/dist/workers/ecdsa-presign-client.worker.js +6 -7
- package/dist/workers/email-otp.worker.js +39 -52
- package/dist/workers/email_otp_runtime_bg.wasm +0 -0
- package/dist/workers/evm-crypto.worker.js +3 -3
- package/dist/workers/evm_crypto.wasm +0 -0
- package/dist/workers/evm_crypto_bg.wasm +0 -0
- package/dist/workers/near-signer.worker.js +9 -9
- package/dist/workers/near_signer.wasm +0 -0
- package/dist/workers/passkey-confirm.worker.js +4 -4
- package/dist/workers/passkey-mpc-export.worker.js +9 -19
- 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/shamir3pass.worker.js +3 -3
- package/dist/workers/shamir3pass_runtime_bg.wasm +0 -0
- package/dist/workers/tempo-signer.worker.js +3 -3
- 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 +55 -1244
- package/dist/workers/wallet_custody_ceremony_bg.wasm +0 -0
- package/dist/workers/wasm_signer_worker_bg.wasm +0 -0
- package/package.json +6 -3
- package/LICENSE +0 -21
|
@@ -7,7 +7,7 @@ import { i as loadWebAuthnP256EngineCtor, n as loadSignEvmFamilyWithUiConfirmFor
|
|
|
7
7
|
async function preloadWalletHostRegistrationPreparation() {
|
|
8
8
|
await Promise.all([
|
|
9
9
|
prewarmTxConfirmerUi(),
|
|
10
|
-
import("./runtime-ecdsa-tempo-
|
|
10
|
+
import("./runtime-ecdsa-tempo-CV-E-iZG.js").catch(() => void 0),
|
|
11
11
|
loadSignEvmFamilyWithUiConfirmForTempo().catch(() => void 0),
|
|
12
12
|
loadSignEvmWithUiConfirm().catch(() => void 0),
|
|
13
13
|
loadSecp256k1EngineCtor().catch(() => void 0),
|
|
Binary file
|
|
@@ -8,7 +8,7 @@ import { M as parseWebAuthnRpId, O as parseWalletId } from "./domainIds-eOo5dgD-
|
|
|
8
8
|
import { t as walletIframeRequestIdFromBoundary } from "./walletIframeIdentity--bEdQHo_.js";
|
|
9
9
|
import { _ as parseHostedAuthMenuExternalAuthResolution, h as parseHostedAuthMenuErrorEvent, o as hostedAuthMenuExternalAuthRequestIdFromBoundary, p as parseHostedAuthMenuCancelPayload, v as parseHostedAuthMenuOpenRequest } from "./messages-BSWDBuFY.js";
|
|
10
10
|
import "./errors-JAbF_T3T.js";
|
|
11
|
-
import { r as preloadWalletHostRegistrationSurface } from "./runtimeLoader-
|
|
11
|
+
import { r as preloadWalletHostRegistrationSurface } from "./runtimeLoader-DxiLgXPm.js";
|
|
12
12
|
import { c as classifyLinkDeviceFlowEvent, s as UnlockEventPhase } from "./sdkSentEvents-CPGpMmxi.js";
|
|
13
13
|
import "./evmFamilySigningKeySlotId-DdgIJVvP.js";
|
|
14
14
|
import { a as WALLET_AUTH_METHODS } from "./signerDomain-DNM7Ink8.js";
|
|
@@ -28,7 +28,7 @@ import "./keccak-3GZDz0C_.js";
|
|
|
28
28
|
import "./signNear-B04A4qzs.js";
|
|
29
29
|
import { t as createWalletIframeSurfaceMeasurementReporter } from "./surface-measurement-reporter-ki-AJVE5.js";
|
|
30
30
|
import "./operationFingerprint-IujbIwg_.js";
|
|
31
|
-
import { _ as startHostedPasskeyRegistrationCredential, a as syncAccountWithPreparedCredential, b as isLinkedDeviceTargetEmailAddressV1, c as listLocalLoginAuthMethods, d as unlockLinkedDevicePasskey, f as unlockResolvedWalletSubjectSet, g as registerPreparedHostedPasskeyRegistration, h as prepareHostedPasskeyRegistration, handleWalletHostRuntimeRequestWithHandlers, i as prepareSyncAccountChallenge, l as resolveLinkedDevicePasskeyAuthoritySelection, m as cancelHostedPasskeyRegistration, n as clearHostedWalletSessions, o as buildNearWalletRegistrationSignerSetSelection, p as resolveWalletUnlockSubjectSet, s as resolvePasskeyRegistrationAccountProvisioning, t as activeHostedWalletSessionOperationCredential, u as resolveLinkedDeviceUnlockSubjectSet, v as createRelayerExactWalletSessionStatusPort, x as normalizeLinkedDeviceTargetEmailAddressV1, y as DeviceLinkingErrorCode } from "./runtimeContext-
|
|
31
|
+
import { _ as startHostedPasskeyRegistrationCredential, a as syncAccountWithPreparedCredential, b as isLinkedDeviceTargetEmailAddressV1, c as listLocalLoginAuthMethods, d as unlockLinkedDevicePasskey, f as unlockResolvedWalletSubjectSet, g as registerPreparedHostedPasskeyRegistration, h as prepareHostedPasskeyRegistration, handleWalletHostRuntimeRequestWithHandlers, i as prepareSyncAccountChallenge, l as resolveLinkedDevicePasskeyAuthoritySelection, m as cancelHostedPasskeyRegistration, n as clearHostedWalletSessions, o as buildNearWalletRegistrationSignerSetSelection, p as resolveWalletUnlockSubjectSet, s as resolvePasskeyRegistrationAccountProvisioning, t as activeHostedWalletSessionOperationCredential, u as resolveLinkedDeviceUnlockSubjectSet, v as createRelayerExactWalletSessionStatusPort, x as normalizeLinkedDeviceTargetEmailAddressV1, y as DeviceLinkingErrorCode } from "./runtimeContext-D_TkUM6Z.js";
|
|
32
32
|
import { n as respondOkResult, r as withProgress, t as respondOk } from "./shared-HlqX0oXX.js";
|
|
33
33
|
//#region src/SeamsWeb/walletIframe/shared/exactSessionReconciliation.ts
|
|
34
34
|
/**
|
|
@@ -19,7 +19,7 @@ import "./walletRecoveryCommit-D6lzaAHA.js";
|
|
|
19
19
|
import "./keccak-3GZDz0C_.js";
|
|
20
20
|
import "./signNear-B04A4qzs.js";
|
|
21
21
|
import "./operationFingerprint-IujbIwg_.js";
|
|
22
|
-
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-
|
|
22
|
+
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-D_TkUM6Z.js";
|
|
23
23
|
import { n as respondOkResult, r as withProgress, t as respondOk } from "./shared-HlqX0oXX.js";
|
|
24
24
|
//#region src/SeamsWeb/walletIframe/host/handlers/deviceLink.ts
|
|
25
25
|
/** The QR payload's own lifetime; a selection older than this blocks nothing. */
|
package/dist/{public/sdk/runtime-ecdsa-tempo-B7dBVcCI.js → esm/sdk/runtime-ecdsa-tempo-CV-E-iZG.js}
RENAMED
|
@@ -18,7 +18,7 @@ import "./walletRecoveryCommit-D6lzaAHA.js";
|
|
|
18
18
|
import "./keccak-3GZDz0C_.js";
|
|
19
19
|
import "./signNear-B04A4qzs.js";
|
|
20
20
|
import "./operationFingerprint-IujbIwg_.js";
|
|
21
|
-
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-
|
|
21
|
+
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-D_TkUM6Z.js";
|
|
22
22
|
import { n as respondOkResult, t as respondOk } from "./shared-HlqX0oXX.js";
|
|
23
23
|
//#region src/SeamsWeb/walletIframe/host/handlers/ecdsaTempo.ts
|
|
24
24
|
function createEcdsaTempoWalletIframeHandlers(deps) {
|
package/dist/{public/sdk/runtime-email-otp-CckVQZJC.js → esm/sdk/runtime-email-otp-V0mdMD_t.js}
RENAMED
|
@@ -18,7 +18,7 @@ import "./walletRecoveryCommit-D6lzaAHA.js";
|
|
|
18
18
|
import "./keccak-3GZDz0C_.js";
|
|
19
19
|
import "./signNear-B04A4qzs.js";
|
|
20
20
|
import "./operationFingerprint-IujbIwg_.js";
|
|
21
|
-
import { handleWalletHostRuntimeRequestWithHandlers, r as redeemHostedWalletSeamsSession } from "./runtimeContext-
|
|
21
|
+
import { handleWalletHostRuntimeRequestWithHandlers, r as redeemHostedWalletSeamsSession } from "./runtimeContext-D_TkUM6Z.js";
|
|
22
22
|
import { n as respondOkResult, r as withProgress } from "./shared-HlqX0oXX.js";
|
|
23
23
|
//#region src/SeamsWeb/walletIframe/host/handlers/emailOtp.ts
|
|
24
24
|
function recordFromPayload(value) {
|
|
@@ -19,7 +19,7 @@ import "./walletRecoveryCommit-D6lzaAHA.js";
|
|
|
19
19
|
import "./keccak-3GZDz0C_.js";
|
|
20
20
|
import "./signNear-B04A4qzs.js";
|
|
21
21
|
import "./operationFingerprint-IujbIwg_.js";
|
|
22
|
-
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-
|
|
22
|
+
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-D_TkUM6Z.js";
|
|
23
23
|
import { n as respondOkResult, t as respondOk } from "./shared-HlqX0oXX.js";
|
|
24
24
|
//#region src/SeamsWeb/walletIframe/host/handlers/export.ts
|
|
25
25
|
function keyExportInputFromPayload(payload) {
|
|
@@ -19,7 +19,7 @@ import "./walletRecoveryCommit-D6lzaAHA.js";
|
|
|
19
19
|
import "./keccak-3GZDz0C_.js";
|
|
20
20
|
import "./signNear-B04A4qzs.js";
|
|
21
21
|
import "./operationFingerprint-IujbIwg_.js";
|
|
22
|
-
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-
|
|
22
|
+
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-D_TkUM6Z.js";
|
|
23
23
|
import { i as withRegistrationProgress, n as respondOkResult, r as withProgress, t as respondOk } from "./shared-HlqX0oXX.js";
|
|
24
24
|
//#region src/SeamsWeb/walletIframe/host/handlers/near.ts
|
|
25
25
|
function walletSessionFromWalletId(walletIdRaw) {
|
package/dist/{public/sdk/runtime-preferences-DmH7eMHH.js → esm/sdk/runtime-preferences-DyJidFuf.js}
RENAMED
|
@@ -18,7 +18,7 @@ import "./walletRecoveryCommit-D6lzaAHA.js";
|
|
|
18
18
|
import "./keccak-3GZDz0C_.js";
|
|
19
19
|
import "./signNear-B04A4qzs.js";
|
|
20
20
|
import "./operationFingerprint-IujbIwg_.js";
|
|
21
|
-
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-
|
|
21
|
+
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-D_TkUM6Z.js";
|
|
22
22
|
import { n as respondOkResult, t as respondOk } from "./shared-HlqX0oXX.js";
|
|
23
23
|
//#region src/SeamsWeb/walletIframe/host/handlers/preferences.ts
|
|
24
24
|
function createPreferencesWalletIframeHandlers(deps) {
|
|
@@ -17,7 +17,7 @@ import "./walletRecoveryCommit-D6lzaAHA.js";
|
|
|
17
17
|
import "./keccak-3GZDz0C_.js";
|
|
18
18
|
import "./signNear-B04A4qzs.js";
|
|
19
19
|
import "./operationFingerprint-IujbIwg_.js";
|
|
20
|
-
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-
|
|
20
|
+
import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-D_TkUM6Z.js";
|
|
21
21
|
import { n as respondOkResult, r as withProgress } from "./shared-HlqX0oXX.js";
|
|
22
22
|
//#region src/SeamsWeb/walletIframe/host/handlers/recovery.ts
|
|
23
23
|
function createRecoveryWalletIframeHandlers(deps) {
|
|
@@ -13285,31 +13285,6 @@ function exactWalletSessionWithOperationCredentialOrThrow(result, message) {
|
|
|
13285
13285
|
case "upgrade_required": throw new WalletSessionAuthorizationUpgradeRequiredError(message);
|
|
13286
13286
|
}
|
|
13287
13287
|
}
|
|
13288
|
-
async function readExactOwnerLaneWalletSession(args) {
|
|
13289
|
-
const read = await walletSessionAuthorizations.readExactActiveForWallet({
|
|
13290
|
-
walletId: args.walletId,
|
|
13291
|
-
authorityId: args.authorityId,
|
|
13292
|
-
authMethodId: args.authMethodId
|
|
13293
|
-
});
|
|
13294
|
-
switch (read.kind) {
|
|
13295
|
-
case "found":
|
|
13296
|
-
if (!exactWalletSessionMatchesAuthorityScope({
|
|
13297
|
-
record: read.record,
|
|
13298
|
-
operationCredential: read.operationCredential,
|
|
13299
|
-
scope: args
|
|
13300
|
-
})) throw new Error("[SigningEngine] selected Wallet Authority session identity mismatch");
|
|
13301
|
-
if (read.record.expiresAtMs <= Date.now()) throw new Error("[SigningEngine] selected Wallet Authority session is unavailable: expired");
|
|
13302
|
-
return;
|
|
13303
|
-
case "missing": throw new Error("[SigningEngine] selected Wallet Authority session is unavailable: missing");
|
|
13304
|
-
case "upgrade_required": throw new WalletSessionAuthorizationUpgradeRequiredError("[SigningEngine] selected Wallet Authority Wallet Session requires a newer client");
|
|
13305
|
-
case "corrupt": throw new Error("[SigningEngine] selected Wallet Authority session is unavailable: corrupt");
|
|
13306
|
-
case "persistence_unavailable": throw new Error("[SigningEngine] selected Wallet Authority session is unavailable: persistence_unavailable");
|
|
13307
|
-
default: return assertNeverWalletSessionAuthorizationRead(read);
|
|
13308
|
-
}
|
|
13309
|
-
}
|
|
13310
|
-
function assertNeverWalletSessionAuthorizationRead(value) {
|
|
13311
|
-
throw new Error(`Unknown exact Wallet Session authorization read: ${String(value)}`);
|
|
13312
|
-
}
|
|
13313
13288
|
//#endregion
|
|
13314
13289
|
//#region src/core/signingEngine/session/emailOtp/zeroize.ts
|
|
13315
13290
|
function zeroizeBytes(bytes) {
|
|
@@ -29688,7 +29663,7 @@ var BrowserSigningSurface = class {
|
|
|
29688
29663
|
emailOtpSessions: this.emailOtpSessions,
|
|
29689
29664
|
sealedSigningSessionStore: deps.sealedSigningSessionStore
|
|
29690
29665
|
}, input),
|
|
29691
|
-
resolveOwnerLaneScope: (walletId) => this.
|
|
29666
|
+
resolveOwnerLaneScope: (walletId) => this.resolveSelectedOwnerLaneScope(walletId)
|
|
29692
29667
|
});
|
|
29693
29668
|
this.enginePorts = createBrowserSigningSurfaceEnginePorts({
|
|
29694
29669
|
runtimePorts: this.runtimePorts,
|
|
@@ -29714,7 +29689,7 @@ var BrowserSigningSurface = class {
|
|
|
29714
29689
|
workerWarmupPolicy: deps.workerWarmupPolicy,
|
|
29715
29690
|
getTheme: () => this.appearance.theme.mode,
|
|
29716
29691
|
ensureSealedRefreshStartupParity: () => this.ensureSealedRefreshStartupParity(),
|
|
29717
|
-
resolveOwnerLaneScope: (walletId) => this.
|
|
29692
|
+
resolveOwnerLaneScope: (walletId) => this.resolveSelectedOwnerLaneScope(walletId),
|
|
29718
29693
|
getEnginePorts: () => this.enginePorts,
|
|
29719
29694
|
getRegistrationPublicDeps: () => this.registrationPublicDeps,
|
|
29720
29695
|
prepareNearEd25519YaoMaterialBoundary: this.prepareExactNearEd25519YaoMaterialBoundary.bind(this)
|
|
@@ -30035,11 +30010,11 @@ var BrowserSigningSurface = class {
|
|
|
30035
30010
|
return await readOwnerScopedSigningLanes(this.sessionPublicDeps, args);
|
|
30036
30011
|
}
|
|
30037
30012
|
/**
|
|
30038
|
-
*
|
|
30039
|
-
* Session
|
|
30040
|
-
*
|
|
30013
|
+
* Resolves the selected active Wallet Authority and auth method to one exact
|
|
30014
|
+
* owner scope. Session availability is resolved by the lane inventory so an
|
|
30015
|
+
* expired session can enter operation step-up.
|
|
30041
30016
|
*/
|
|
30042
|
-
async
|
|
30017
|
+
async resolveSelectedOwnerLaneScope(walletId) {
|
|
30043
30018
|
const parsedWalletId = parseWalletId(walletId);
|
|
30044
30019
|
if (!parsedWalletId.ok) throw new Error(parsedWalletId.error.message);
|
|
30045
30020
|
const stores = {
|
|
@@ -30053,13 +30028,6 @@ var BrowserSigningSurface = class {
|
|
|
30053
30028
|
const { selection, authMethod, authority } = selected;
|
|
30054
30029
|
if (selection.walletId !== parsedWalletId.value || selection.walletAuthMethodId !== authMethod.walletAuthMethodId || authMethod.walletId !== parsedWalletId.value || authMethod.walletAuthorityId !== authority.authorityId || authority.walletId !== parsedWalletId.value) throw new Error("[SigningEngine] selected Wallet Authority identity mismatch");
|
|
30055
30030
|
if (selection.lockState !== "unlocked" || authMethod.status !== "active" || authority.state !== "active") throw new Error("[SigningEngine] selected Wallet Authority is inactive or locked");
|
|
30056
|
-
await readExactOwnerLaneWalletSession({
|
|
30057
|
-
walletId: parsedWalletId.value,
|
|
30058
|
-
authorityId: authority.authorityId,
|
|
30059
|
-
authMethodId: authMethod.walletAuthMethodId,
|
|
30060
|
-
authorityDigestB64u: authority.authorityDigestB64u,
|
|
30061
|
-
authorityRevocationEpoch: authority.revocationEpoch
|
|
30062
|
-
});
|
|
30063
30031
|
if (authority.provenance.kind === "device_link" && authMethod.kind === "passkey" && authority.signerActivations.ed25519) return buildExactPasskeyOwnerLaneScope({
|
|
30064
30032
|
authMethod,
|
|
30065
30033
|
signerSlot: await resolveLinkedPasskeyOwnerSignerSlot({
|
|
@@ -21,19 +21,19 @@ async function preloadWalletHostRecoveryCodeSurface() {
|
|
|
21
21
|
await recoveryCodeSurfacePromise;
|
|
22
22
|
}
|
|
23
23
|
async function preloadRegistrationPreparation() {
|
|
24
|
-
registrationPreparationPromise ??= import("./registrationPreparationPreload-
|
|
24
|
+
registrationPreparationPromise ??= import("./registrationPreparationPreload-CwUkRwVz.js");
|
|
25
25
|
await (await registrationPreparationPromise).preloadWalletHostRegistrationPreparation();
|
|
26
26
|
}
|
|
27
27
|
function loadRuntimeForKind(kind) {
|
|
28
28
|
switch (kind) {
|
|
29
|
-
case "auth": return import("./runtime-auth-
|
|
30
|
-
case "near": return import("./runtime-near-
|
|
31
|
-
case "ecdsa": return import("./runtime-ecdsa-tempo-
|
|
32
|
-
case "email_otp": return import("./runtime-email-otp-
|
|
33
|
-
case "recovery": return import("./runtime-recovery-
|
|
34
|
-
case "export": return import("./runtime-export-
|
|
35
|
-
case "device_link": return import("./runtime-device-link-
|
|
36
|
-
case "preferences": return import("./runtime-preferences-
|
|
29
|
+
case "auth": return import("./runtime-auth-dpoaCtkK.js");
|
|
30
|
+
case "near": return import("./runtime-near-DlviFQWy.js");
|
|
31
|
+
case "ecdsa": return import("./runtime-ecdsa-tempo-CV-E-iZG.js");
|
|
32
|
+
case "email_otp": return import("./runtime-email-otp-V0mdMD_t.js");
|
|
33
|
+
case "recovery": return import("./runtime-recovery-CHDE5gl0.js");
|
|
34
|
+
case "export": return import("./runtime-export-C4HO5ysH.js");
|
|
35
|
+
case "device_link": return import("./runtime-device-link-C75epnbj.js");
|
|
36
|
+
case "preferences": return import("./runtime-preferences-DyJidFuf.js");
|
|
37
37
|
}
|
|
38
38
|
return assertNever(kind);
|
|
39
39
|
}
|