@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
|
@@ -200,10 +200,13 @@ function safeErrorMessage(err) {
|
|
|
200
200
|
|
|
201
201
|
// src/core/signingEngine/workerManager/workerDeferred.ts
|
|
202
202
|
class WorkerDeferred {
|
|
203
|
-
promise;
|
|
204
|
-
resolveValue = null;
|
|
205
|
-
rejectValue = null;
|
|
206
203
|
constructor() {
|
|
204
|
+
this.resolveValue = null;
|
|
205
|
+
this.rejectValue = null;
|
|
206
|
+
this.capture = (resolve, reject) => {
|
|
207
|
+
this.resolveValue = resolve;
|
|
208
|
+
this.rejectValue = reject;
|
|
209
|
+
};
|
|
207
210
|
this.promise = new Promise(this.capture);
|
|
208
211
|
}
|
|
209
212
|
resolve(value) {
|
|
@@ -216,10 +219,6 @@ class WorkerDeferred {
|
|
|
216
219
|
throw new Error("Worker deferred rejecter is unavailable");
|
|
217
220
|
this.rejectValue(error);
|
|
218
221
|
}
|
|
219
|
-
capture = (resolve, reject) => {
|
|
220
|
-
this.resolveValue = resolve;
|
|
221
|
-
this.rejectValue = reject;
|
|
222
|
-
};
|
|
223
222
|
}
|
|
224
223
|
|
|
225
224
|
// src/core/signingEngine/workerManager/workerTypes.ts
|
|
@@ -370,13 +370,6 @@ class MpcMaterialActivationReference {
|
|
|
370
370
|
retainProof() {
|
|
371
371
|
return true;
|
|
372
372
|
}
|
|
373
|
-
kind;
|
|
374
|
-
activationId;
|
|
375
|
-
capability;
|
|
376
|
-
materialOwner;
|
|
377
|
-
keyBinding;
|
|
378
|
-
lifecycleBinding;
|
|
379
|
-
signingWorker;
|
|
380
373
|
constructor(fields) {
|
|
381
374
|
this.retainProof();
|
|
382
375
|
this.kind = "mpc_material_activation_ref";
|
|
@@ -4521,9 +4514,6 @@ function parseDecodedWalletSessionStatusResponse(value, expected) {
|
|
|
4521
4514
|
}
|
|
4522
4515
|
|
|
4523
4516
|
class RelayerExactWalletSessionStatusPort {
|
|
4524
|
-
relayerUrl;
|
|
4525
|
-
operationCredential;
|
|
4526
|
-
fetchImpl;
|
|
4527
4517
|
constructor(options) {
|
|
4528
4518
|
this.relayerUrl = normalizeRelayerBaseUrl(options.relayerUrl);
|
|
4529
4519
|
if (!this.relayerUrl)
|
|
@@ -6278,10 +6268,10 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
6278
6268
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
6279
6269
|
if (realloc === undefined) {
|
|
6280
6270
|
const buf = cachedTextEncoder.encode(arg);
|
|
6281
|
-
const
|
|
6282
|
-
getUint8ArrayMemory0().subarray(
|
|
6271
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
6272
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
6283
6273
|
WASM_VECTOR_LEN = buf.length;
|
|
6284
|
-
return
|
|
6274
|
+
return ptr;
|
|
6285
6275
|
}
|
|
6286
6276
|
let len = arg.length;
|
|
6287
6277
|
let ptr = malloc(len, 1) >>> 0;
|
|
@@ -6774,7 +6764,6 @@ function serializePerformanceServerTiming(value) {
|
|
|
6774
6764
|
}
|
|
6775
6765
|
|
|
6776
6766
|
class RouterAbEd25519YaoHttpActivationTransportV1 {
|
|
6777
|
-
config;
|
|
6778
6767
|
constructor(config) {
|
|
6779
6768
|
this.config = parseHttpTransportConfig(config);
|
|
6780
6769
|
}
|
|
@@ -6814,8 +6803,6 @@ class RouterAbEd25519YaoHttpActivationTransportV1 {
|
|
|
6814
6803
|
}
|
|
6815
6804
|
|
|
6816
6805
|
class WasmRouterAbEd25519YaoActiveClientV1 {
|
|
6817
|
-
activeMetadata;
|
|
6818
|
-
lifecycle;
|
|
6819
6806
|
constructor(args) {
|
|
6820
6807
|
if (args[ACTIVE_CLIENT_CONSTRUCTION] !== true) {
|
|
6821
6808
|
throw new Error("Ed25519 Yao Client state requires verified WASM completion");
|
|
@@ -7037,7 +7024,7 @@ class RouterAbEd25519YaoClientV1 {
|
|
|
7037
7024
|
message: "Router export admission does not match the requested exact capability"
|
|
7038
7025
|
};
|
|
7039
7026
|
}
|
|
7040
|
-
let
|
|
7027
|
+
let custodyEnvelope;
|
|
7041
7028
|
if (isPasskeyExportSeedInput(args)) {
|
|
7042
7029
|
if (admissionEnvelope.kind !== "protocol_only") {
|
|
7043
7030
|
return {
|
|
@@ -7047,7 +7034,7 @@ class RouterAbEd25519YaoClientV1 {
|
|
|
7047
7034
|
message: "Passkey export admission returned an Email OTP factor release"
|
|
7048
7035
|
};
|
|
7049
7036
|
}
|
|
7050
|
-
|
|
7037
|
+
custodyEnvelope = args.custodyEnvelope;
|
|
7051
7038
|
} else {
|
|
7052
7039
|
if (admissionEnvelope.kind !== "protocol_with_factor_release") {
|
|
7053
7040
|
return {
|
|
@@ -7067,7 +7054,7 @@ class RouterAbEd25519YaoClientV1 {
|
|
|
7067
7054
|
};
|
|
7068
7055
|
}
|
|
7069
7056
|
try {
|
|
7070
|
-
|
|
7057
|
+
custodyEnvelope = await args.resolveCustodyEnvelope(factorRelease);
|
|
7071
7058
|
} catch (error) {
|
|
7072
7059
|
return {
|
|
7073
7060
|
ok: false,
|
|
@@ -7084,7 +7071,7 @@ class RouterAbEd25519YaoClientV1 {
|
|
|
7084
7071
|
admission: admissionEnvelope.protocol,
|
|
7085
7072
|
applicationBinding: args.request.application_binding,
|
|
7086
7073
|
participantIds: args.request.participant_ids,
|
|
7087
|
-
custodyEnvelope
|
|
7074
|
+
custodyEnvelope,
|
|
7088
7075
|
entropy
|
|
7089
7076
|
});
|
|
7090
7077
|
} catch (error) {
|
|
@@ -7095,7 +7082,7 @@ class RouterAbEd25519YaoClientV1 {
|
|
|
7095
7082
|
message: error instanceof Error ? error.message : String(error)
|
|
7096
7083
|
};
|
|
7097
7084
|
} finally {
|
|
7098
|
-
|
|
7085
|
+
custodyEnvelope.factorSecret.fill(0);
|
|
7099
7086
|
zeroizeRouterAbEd25519YaoActivationEntropyV1(entropy);
|
|
7100
7087
|
}
|
|
7101
7088
|
try {
|
|
@@ -7899,10 +7886,10 @@ function passStringToWasm02(arg, malloc, realloc) {
|
|
|
7899
7886
|
throw new Error(`expected a string argument, found ${typeof arg}`);
|
|
7900
7887
|
if (realloc === undefined) {
|
|
7901
7888
|
const buf = cachedTextEncoder2.encode(arg);
|
|
7902
|
-
const
|
|
7903
|
-
getUint8ArrayMemory02().subarray(
|
|
7889
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
7890
|
+
getUint8ArrayMemory02().subarray(ptr, ptr + buf.length).set(buf);
|
|
7904
7891
|
WASM_VECTOR_LEN2 = buf.length;
|
|
7905
|
-
return
|
|
7892
|
+
return ptr;
|
|
7906
7893
|
}
|
|
7907
7894
|
let len = arg.length;
|
|
7908
7895
|
let ptr = malloc(len, 1) >>> 0;
|
|
@@ -8112,10 +8099,10 @@ function passStringToWasm03(arg, malloc, realloc) {
|
|
|
8112
8099
|
throw new Error(`expected a string argument, found ${typeof arg}`);
|
|
8113
8100
|
if (realloc === undefined) {
|
|
8114
8101
|
const buf = cachedTextEncoder3.encode(arg);
|
|
8115
|
-
const
|
|
8116
|
-
getUint8ArrayMemory03().subarray(
|
|
8102
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
8103
|
+
getUint8ArrayMemory03().subarray(ptr, ptr + buf.length).set(buf);
|
|
8117
8104
|
WASM_VECTOR_LEN3 = buf.length;
|
|
8118
|
-
return
|
|
8105
|
+
return ptr;
|
|
8119
8106
|
}
|
|
8120
8107
|
let len = arg.length;
|
|
8121
8108
|
let ptr = malloc(len, 1) >>> 0;
|
|
@@ -8262,10 +8249,10 @@ var encodeString = typeof cachedTextEncoder4.encodeInto === "function" ? functio
|
|
|
8262
8249
|
function passStringToWasm04(arg, malloc, realloc) {
|
|
8263
8250
|
if (realloc === undefined) {
|
|
8264
8251
|
const buf = cachedTextEncoder4.encode(arg);
|
|
8265
|
-
const
|
|
8266
|
-
getUint8ArrayMemory04().subarray(
|
|
8252
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
8253
|
+
getUint8ArrayMemory04().subarray(ptr, ptr + buf.length).set(buf);
|
|
8267
8254
|
WASM_VECTOR_LEN4 = buf.length;
|
|
8268
|
-
return
|
|
8255
|
+
return ptr;
|
|
8269
8256
|
}
|
|
8270
8257
|
let len = arg.length;
|
|
8271
8258
|
let ptr = malloc(len, 1) >>> 0;
|
|
@@ -8892,10 +8879,10 @@ var encodeString2 = typeof cachedTextEncoder5.encodeInto === "function" ? functi
|
|
|
8892
8879
|
function passStringToWasm05(arg, malloc, realloc) {
|
|
8893
8880
|
if (realloc === undefined) {
|
|
8894
8881
|
const buf = cachedTextEncoder5.encode(arg);
|
|
8895
|
-
const
|
|
8896
|
-
getUint8ArrayMemory05().subarray(
|
|
8882
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
8883
|
+
getUint8ArrayMemory05().subarray(ptr, ptr + buf.length).set(buf);
|
|
8897
8884
|
WASM_VECTOR_LEN5 = buf.length;
|
|
8898
|
-
return
|
|
8885
|
+
return ptr;
|
|
8899
8886
|
}
|
|
8900
8887
|
let len = arg.length;
|
|
8901
8888
|
let ptr = malloc(len, 1) >>> 0;
|
|
@@ -9088,10 +9075,10 @@ function getArrayU8FromWasm04(ptr, len) {
|
|
|
9088
9075
|
return getUint8ArrayMemory05().subarray(ptr / 1, ptr / 1 + len);
|
|
9089
9076
|
}
|
|
9090
9077
|
function __wbg_adapter_52(arg0, arg1, arg2) {
|
|
9091
|
-
wasm5.
|
|
9078
|
+
wasm5.closure67_externref_shim(arg0, arg1, arg2);
|
|
9092
9079
|
}
|
|
9093
9080
|
function __wbg_adapter_387(arg0, arg1, arg2, arg3) {
|
|
9094
|
-
wasm5.
|
|
9081
|
+
wasm5.closure60_externref_shim(arg0, arg1, arg2, arg3);
|
|
9095
9082
|
}
|
|
9096
9083
|
var ConfirmationBehavior = Object.freeze({
|
|
9097
9084
|
RequireClick: 0,
|
|
@@ -9665,11 +9652,11 @@ function __wbg_get_imports5() {
|
|
|
9665
9652
|
imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
9666
9653
|
try {
|
|
9667
9654
|
var state0 = { a: arg0, b: arg1 };
|
|
9668
|
-
var cb0 = (
|
|
9655
|
+
var cb0 = (arg0, arg1) => {
|
|
9669
9656
|
const a = state0.a;
|
|
9670
9657
|
state0.a = 0;
|
|
9671
9658
|
try {
|
|
9672
|
-
return __wbg_adapter_387(a, state0.b,
|
|
9659
|
+
return __wbg_adapter_387(a, state0.b, arg0, arg1);
|
|
9673
9660
|
} finally {
|
|
9674
9661
|
state0.a = a;
|
|
9675
9662
|
}
|
|
@@ -9870,8 +9857,8 @@ function __wbg_get_imports5() {
|
|
|
9870
9857
|
const ret = false;
|
|
9871
9858
|
return ret;
|
|
9872
9859
|
};
|
|
9873
|
-
imports.wbg.
|
|
9874
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
9860
|
+
imports.wbg.__wbindgen_closure_wrapper2623 = function(arg0, arg1, arg2) {
|
|
9861
|
+
const ret = makeMutClosure(arg0, arg1, 68, __wbg_adapter_52);
|
|
9875
9862
|
return ret;
|
|
9876
9863
|
};
|
|
9877
9864
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
@@ -10627,12 +10614,12 @@ async function resolveEmailOtpEd25519ExportCustodyEnvelope(state, release) {
|
|
|
10627
10614
|
if (rootEnvelope.lifecycle.state !== "active" || rootEnvelope.walletId !== state.walletId || rootEnvelope.binding.kind !== "ed25519_yao_client_root_v1" || rootEnvelope.binding.targetFactor.kind !== "email_otp" || rootEnvelope.binding.registeredPublicKeyB64u !== base64UrlEncode(Uint8Array.from(state.material.capability.registeredPublicKey)) || rootEnvelope.factor.kind !== "email_otp" || rootEnvelope.factor.enrollmentId !== released.enrollmentId || rootEnvelope.factor.enrollmentSealKeyVersion !== released.enrollmentSealKeyVersion) {
|
|
10628
10615
|
throw new Error("Email OTP Ed25519 export root is bound to another factor or lane");
|
|
10629
10616
|
}
|
|
10630
|
-
const
|
|
10631
|
-
const
|
|
10617
|
+
const envelope = emailOtpEd25519ExportRootEnvelopeWireV1(rootEnvelope);
|
|
10618
|
+
const ownedFactorSecret = factorSecret32;
|
|
10632
10619
|
factorSecret32 = null;
|
|
10633
10620
|
return {
|
|
10634
|
-
...
|
|
10635
|
-
factorSecret:
|
|
10621
|
+
...envelope,
|
|
10622
|
+
factorSecret: ownedFactorSecret
|
|
10636
10623
|
};
|
|
10637
10624
|
}
|
|
10638
10625
|
const unlocked = await completeEmailOtpUnlockFromSecret32({
|
|
@@ -13476,8 +13463,8 @@ function parseWalletCustodyEd25519MaterialRequest(value) {
|
|
|
13476
13463
|
"signingWorkerVerifyingShareB64u"
|
|
13477
13464
|
], "walletCustodyEd25519Material.binding");
|
|
13478
13465
|
rejectUnknownEmailOtpYaoFields(sealedRecord, ["ciphertextB64u", "nonceB64u"], "walletCustodyEd25519Material.sealed");
|
|
13479
|
-
const
|
|
13480
|
-
if (!
|
|
13466
|
+
const participants = normalizeThresholdEd25519ParticipantIds(bindingRecord.participantIds);
|
|
13467
|
+
if (!participants || participants.length !== 2) {
|
|
13481
13468
|
throw new Error("walletCustodyEd25519Material.binding.participantIds is invalid");
|
|
13482
13469
|
}
|
|
13483
13470
|
const signerSlot = normalizePositiveInteger(bindingRecord.signerSlot);
|
|
@@ -13487,7 +13474,7 @@ function parseWalletCustodyEd25519MaterialRequest(value) {
|
|
|
13487
13474
|
kind: "wallet_custody_ed25519_active_client_v1",
|
|
13488
13475
|
applicationBindingDigestB64u: readString(bindingRecord.applicationBindingDigestB64u, "walletCustodyEd25519Material.binding.applicationBindingDigestB64u"),
|
|
13489
13476
|
registeredPublicKeyB64u: readString(bindingRecord.registeredPublicKeyB64u, "walletCustodyEd25519Material.binding.registeredPublicKeyB64u"),
|
|
13490
|
-
participantIds: [
|
|
13477
|
+
participantIds: [participants[0], participants[1]],
|
|
13491
13478
|
stateEpoch: readString(bindingRecord.stateEpoch, "walletCustodyEd25519Material.binding.stateEpoch"),
|
|
13492
13479
|
walletId: readString(bindingRecord.walletId, "walletCustodyEd25519Material.binding.walletId"),
|
|
13493
13480
|
nearAccountId: readString(bindingRecord.nearAccountId, "walletCustodyEd25519Material.binding.nearAccountId"),
|
|
@@ -13820,7 +13807,7 @@ function parseEmailOtpEd25519YaoBootstrapSession(value, source) {
|
|
|
13820
13807
|
if (!walletSessionId.ok || !authorizationId.ok || !quotaId.ok) {
|
|
13821
13808
|
throw new Error("Email OTP Ed25519 Yao recovery Wallet Session identity is invalid");
|
|
13822
13809
|
}
|
|
13823
|
-
const
|
|
13810
|
+
const base = {
|
|
13824
13811
|
walletId: toWalletId(readString(obj.walletId, "session.walletId")),
|
|
13825
13812
|
nearAccountId: readString(obj.nearAccountId, "session.nearAccountId"),
|
|
13826
13813
|
nearEd25519SigningKeyId: readString(obj.nearEd25519SigningKeyId, "session.nearEd25519SigningKeyId"),
|
|
@@ -13841,7 +13828,7 @@ function parseEmailOtpEd25519YaoBootstrapSession(value, source) {
|
|
|
13841
13828
|
runtimePolicyScope: parseWorkerRuntimePolicyScope(obj.runtimePolicyScope, "Email OTP Ed25519 Yao recovery session"),
|
|
13842
13829
|
routerAbNormalSigning
|
|
13843
13830
|
};
|
|
13844
|
-
return
|
|
13831
|
+
return base;
|
|
13845
13832
|
}
|
|
13846
13833
|
function parseEmailOtpEd25519YaoActiveCapability(value) {
|
|
13847
13834
|
return parseEmailOtpEd25519YaoActiveCapabilityWithMaterialParser(value, parseEmailOtpEd25519YaoMaterialActivation, "ed25519YaoRecovery.capability");
|
|
@@ -14164,8 +14151,8 @@ function parseOptionalWorkerEcdsaSessionHandleBinding(value) {
|
|
|
14164
14151
|
"keyScope",
|
|
14165
14152
|
"chainTarget"
|
|
14166
14153
|
], "ecdsaSessionHandleBinding");
|
|
14167
|
-
const
|
|
14168
|
-
if (
|
|
14154
|
+
const operation = parseEmailOtpWorkerHandleOperation(obj.operation);
|
|
14155
|
+
if (operation !== "registration") {
|
|
14169
14156
|
throw new Error("Email OTP wallet-registration ECDSA handle binding requires registration operation");
|
|
14170
14157
|
}
|
|
14171
14158
|
const keyScope = readString(obj.keyScope, "ecdsaSessionHandleBinding.keyScope");
|
|
@@ -14225,8 +14212,8 @@ function parseWorkerWalletRegistrationEcdsaPrepareHandleRequest(value) {
|
|
|
14225
14212
|
throw new Error("Email OTP registration enrollment material requires wallet-registration ECDSA handle bindings");
|
|
14226
14213
|
}
|
|
14227
14214
|
const bindings = [];
|
|
14228
|
-
for (const
|
|
14229
|
-
const binding = parseOptionalWorkerEcdsaSessionHandleBinding(
|
|
14215
|
+
for (const value of obj.bindings) {
|
|
14216
|
+
const binding = parseOptionalWorkerEcdsaSessionHandleBinding(value);
|
|
14230
14217
|
if (!binding || binding.action !== "wallet_registration_ecdsa_prepare") {
|
|
14231
14218
|
throw new Error("Email OTP registration enrollment material requires wallet-registration ECDSA handle bindings");
|
|
14232
14219
|
}
|
|
Binary file
|
|
@@ -515,10 +515,10 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
515
515
|
throw new Error(`expected a string argument, found ${typeof arg}`);
|
|
516
516
|
if (realloc === undefined) {
|
|
517
517
|
const buf = cachedTextEncoder.encode(arg);
|
|
518
|
-
const
|
|
519
|
-
getUint8ArrayMemory0().subarray(
|
|
518
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
519
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
520
520
|
WASM_VECTOR_LEN = buf.length;
|
|
521
|
-
return
|
|
521
|
+
return ptr;
|
|
522
522
|
}
|
|
523
523
|
let len = arg.length;
|
|
524
524
|
let ptr = malloc(len, 1) >>> 0;
|
|
Binary file
|
|
Binary file
|
|
@@ -35,10 +35,10 @@ var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function
|
|
|
35
35
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
36
36
|
if (realloc === undefined) {
|
|
37
37
|
const buf = cachedTextEncoder.encode(arg);
|
|
38
|
-
const
|
|
39
|
-
getUint8ArrayMemory0().subarray(
|
|
38
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
39
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
40
40
|
WASM_VECTOR_LEN = buf.length;
|
|
41
|
-
return
|
|
41
|
+
return ptr;
|
|
42
42
|
}
|
|
43
43
|
let len = arg.length;
|
|
44
44
|
let ptr = malloc(len, 1) >>> 0;
|
|
@@ -254,10 +254,10 @@ function threshold_ed25519_finalize_delegate_from_signature(args) {
|
|
|
254
254
|
return takeFromExternrefTable0(ret[0]);
|
|
255
255
|
}
|
|
256
256
|
function __wbg_adapter_52(arg0, arg1, arg2) {
|
|
257
|
-
wasm.
|
|
257
|
+
wasm.closure67_externref_shim(arg0, arg1, arg2);
|
|
258
258
|
}
|
|
259
259
|
function __wbg_adapter_387(arg0, arg1, arg2, arg3) {
|
|
260
|
-
wasm.
|
|
260
|
+
wasm.closure60_externref_shim(arg0, arg1, arg2, arg3);
|
|
261
261
|
}
|
|
262
262
|
var ConfirmationBehavior = Object.freeze({
|
|
263
263
|
RequireClick: 0,
|
|
@@ -788,11 +788,11 @@ function __wbg_get_imports() {
|
|
|
788
788
|
imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
789
789
|
try {
|
|
790
790
|
var state0 = { a: arg0, b: arg1 };
|
|
791
|
-
var cb0 = (
|
|
791
|
+
var cb0 = (arg0, arg1) => {
|
|
792
792
|
const a = state0.a;
|
|
793
793
|
state0.a = 0;
|
|
794
794
|
try {
|
|
795
|
-
return __wbg_adapter_387(a, state0.b,
|
|
795
|
+
return __wbg_adapter_387(a, state0.b, arg0, arg1);
|
|
796
796
|
} finally {
|
|
797
797
|
state0.a = a;
|
|
798
798
|
}
|
|
@@ -993,8 +993,8 @@ function __wbg_get_imports() {
|
|
|
993
993
|
const ret = false;
|
|
994
994
|
return ret;
|
|
995
995
|
};
|
|
996
|
-
imports.wbg.
|
|
997
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
996
|
+
imports.wbg.__wbindgen_closure_wrapper2623 = function(arg0, arg1, arg2) {
|
|
997
|
+
const ret = makeMutClosure(arg0, arg1, 68, __wbg_adapter_52);
|
|
998
998
|
return ret;
|
|
999
999
|
};
|
|
1000
1000
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -382,7 +382,7 @@ function assertNever(value) {
|
|
|
382
382
|
}
|
|
383
383
|
function buildConfirmedWorkerConfirmationResponse(args) {
|
|
384
384
|
const nonceLeases = normalizeNonceLeaseRefs(args.data.nonceLeases);
|
|
385
|
-
const
|
|
385
|
+
const base = {
|
|
386
386
|
request_id: args.requestId,
|
|
387
387
|
confirmed: true,
|
|
388
388
|
...args.data.intentDigest ? { intent_digest: args.data.intentDigest } : {},
|
|
@@ -397,7 +397,7 @@ function buildConfirmedWorkerConfirmationResponse(args) {
|
|
|
397
397
|
throw new Error("Secure confirm NEAR readiness cannot include top-level transaction context");
|
|
398
398
|
}
|
|
399
399
|
return {
|
|
400
|
-
...
|
|
400
|
+
...base,
|
|
401
401
|
near_transaction_readiness: args.data.nearTransactionReadiness
|
|
402
402
|
};
|
|
403
403
|
}
|
|
@@ -406,7 +406,7 @@ function buildConfirmedWorkerConfirmationResponse(args) {
|
|
|
406
406
|
throw new Error("Secure confirm transaction response requires nonceLeases");
|
|
407
407
|
}
|
|
408
408
|
return {
|
|
409
|
-
...
|
|
409
|
+
...base,
|
|
410
410
|
transaction_context: args.data.transactionContext,
|
|
411
411
|
nonce_leases: nonceLeases
|
|
412
412
|
};
|
|
@@ -414,7 +414,7 @@ function buildConfirmedWorkerConfirmationResponse(args) {
|
|
|
414
414
|
if (nonceLeases !== undefined) {
|
|
415
415
|
throw new Error("Secure confirm response nonceLeases require transactionContext");
|
|
416
416
|
}
|
|
417
|
-
return
|
|
417
|
+
return base;
|
|
418
418
|
}
|
|
419
419
|
function normalizeNonceLeaseRefs(value) {
|
|
420
420
|
if (value == null)
|
|
@@ -450,7 +450,7 @@ function assertNever(value) {
|
|
|
450
450
|
}
|
|
451
451
|
function buildConfirmedWorkerConfirmationResponse(args) {
|
|
452
452
|
const nonceLeases = normalizeNonceLeaseRefs(args.data.nonceLeases);
|
|
453
|
-
const
|
|
453
|
+
const base = {
|
|
454
454
|
request_id: args.requestId,
|
|
455
455
|
confirmed: true,
|
|
456
456
|
...args.data.intentDigest ? { intent_digest: args.data.intentDigest } : {},
|
|
@@ -465,7 +465,7 @@ function buildConfirmedWorkerConfirmationResponse(args) {
|
|
|
465
465
|
throw new Error("Secure confirm NEAR readiness cannot include top-level transaction context");
|
|
466
466
|
}
|
|
467
467
|
return {
|
|
468
|
-
...
|
|
468
|
+
...base,
|
|
469
469
|
near_transaction_readiness: args.data.nearTransactionReadiness
|
|
470
470
|
};
|
|
471
471
|
}
|
|
@@ -474,7 +474,7 @@ function buildConfirmedWorkerConfirmationResponse(args) {
|
|
|
474
474
|
throw new Error("Secure confirm transaction response requires nonceLeases");
|
|
475
475
|
}
|
|
476
476
|
return {
|
|
477
|
-
...
|
|
477
|
+
...base,
|
|
478
478
|
transaction_context: args.data.transactionContext,
|
|
479
479
|
nonce_leases: nonceLeases
|
|
480
480
|
};
|
|
@@ -482,7 +482,7 @@ function buildConfirmedWorkerConfirmationResponse(args) {
|
|
|
482
482
|
if (nonceLeases !== undefined) {
|
|
483
483
|
throw new Error("Secure confirm response nonceLeases require transactionContext");
|
|
484
484
|
}
|
|
485
|
-
return
|
|
485
|
+
return base;
|
|
486
486
|
}
|
|
487
487
|
function normalizeNonceLeaseRefs(value) {
|
|
488
488
|
if (value == null)
|
|
@@ -575,13 +575,6 @@ class MpcMaterialActivationReference {
|
|
|
575
575
|
retainProof() {
|
|
576
576
|
return true;
|
|
577
577
|
}
|
|
578
|
-
kind;
|
|
579
|
-
activationId;
|
|
580
|
-
capability;
|
|
581
|
-
materialOwner;
|
|
582
|
-
keyBinding;
|
|
583
|
-
lifecycleBinding;
|
|
584
|
-
signingWorker;
|
|
585
578
|
constructor(fields) {
|
|
586
579
|
this.retainProof();
|
|
587
580
|
this.kind = "mpc_material_activation_ref";
|
|
@@ -2227,10 +2220,10 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
2227
2220
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
2228
2221
|
if (realloc === undefined) {
|
|
2229
2222
|
const buf = cachedTextEncoder.encode(arg);
|
|
2230
|
-
const
|
|
2231
|
-
getUint8ArrayMemory0().subarray(
|
|
2223
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
2224
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
2232
2225
|
WASM_VECTOR_LEN = buf.length;
|
|
2233
|
-
return
|
|
2226
|
+
return ptr;
|
|
2234
2227
|
}
|
|
2235
2228
|
let len = arg.length;
|
|
2236
2229
|
let ptr = malloc(len, 1) >>> 0;
|
|
@@ -3325,7 +3318,6 @@ function serializePerformanceServerTiming(value) {
|
|
|
3325
3318
|
}
|
|
3326
3319
|
|
|
3327
3320
|
class RouterAbEd25519YaoHttpActivationTransportV1 {
|
|
3328
|
-
config;
|
|
3329
3321
|
constructor(config) {
|
|
3330
3322
|
this.config = parseHttpTransportConfig(config);
|
|
3331
3323
|
}
|
|
@@ -3365,8 +3357,6 @@ class RouterAbEd25519YaoHttpActivationTransportV1 {
|
|
|
3365
3357
|
}
|
|
3366
3358
|
|
|
3367
3359
|
class WasmRouterAbEd25519YaoActiveClientV1 {
|
|
3368
|
-
activeMetadata;
|
|
3369
|
-
lifecycle;
|
|
3370
3360
|
constructor(args) {
|
|
3371
3361
|
if (args[ACTIVE_CLIENT_CONSTRUCTION] !== true) {
|
|
3372
3362
|
throw new Error("Ed25519 Yao Client state requires verified WASM completion");
|
|
@@ -4636,8 +4626,8 @@ function parseExportWorkerTarget(payload) {
|
|
|
4636
4626
|
const kind = Reflect.get(rawChainTarget, "kind");
|
|
4637
4627
|
try {
|
|
4638
4628
|
if (kind === "evm") {
|
|
4639
|
-
const
|
|
4640
|
-
if (
|
|
4629
|
+
const fields = Object.keys(rawChainTarget).sort();
|
|
4630
|
+
if (fields.join(",") !== "chainId,kind,namespace,networkSlug")
|
|
4641
4631
|
return null;
|
|
4642
4632
|
return {
|
|
4643
4633
|
kind: "ecdsa",
|
|
Binary file
|
|
Binary file
|
|
@@ -317,10 +317,10 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
317
317
|
throw new Error(`expected a string argument, found ${typeof arg}`);
|
|
318
318
|
if (realloc === undefined) {
|
|
319
319
|
const buf = cachedTextEncoder.encode(arg);
|
|
320
|
-
const
|
|
321
|
-
getUint8ArrayMemory0().subarray(
|
|
320
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
321
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
322
322
|
WASM_VECTOR_LEN = buf.length;
|
|
323
|
-
return
|
|
323
|
+
return ptr;
|
|
324
324
|
}
|
|
325
325
|
let len = arg.length;
|
|
326
326
|
let ptr = malloc(len, 1) >>> 0;
|
|
Binary file
|
|
@@ -445,10 +445,10 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
445
445
|
throw new Error(`expected a string argument, found ${typeof arg}`);
|
|
446
446
|
if (realloc === undefined) {
|
|
447
447
|
const buf = cachedTextEncoder.encode(arg);
|
|
448
|
-
const
|
|
449
|
-
getUint8ArrayMemory0().subarray(
|
|
448
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
449
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
450
450
|
WASM_VECTOR_LEN = buf.length;
|
|
451
|
-
return
|
|
451
|
+
return ptr;
|
|
452
452
|
}
|
|
453
453
|
let len = arg.length;
|
|
454
454
|
let ptr = malloc(len, 1) >>> 0;
|
|
Binary file
|
|
Binary file
|