@seams/wallet 0.30.0 → 0.33.0
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/README.md +7 -7
- package/THIRD_PARTY_NOTICES.md +1 -127
- package/dist/.build-inputs.sha256 +1 -1
- package/dist/esm/SeamsWeb/walletIframe/host/ui/auth-menu/AuthMenuFooter.js +38 -10
- package/dist/esm/SeamsWeb/walletIframe/host/ui/auth-menu/AuthMenuSurface.js +23 -67
- package/dist/esm/SeamsWeb/walletIframe/host/ui/auth-menu/RecoveryOptions.js +60 -0
- package/dist/esm/SeamsWeb/walletIframe/host/ui/auth-menu/mountAuthMenuSurface.js +6 -0
- package/dist/esm/SeamsWeb/walletIframe/shared/authMenuPresentation.js +28 -0
- package/dist/esm/SeamsWeb/walletIframe/shared/messages.js +21 -10
- package/dist/esm/SeamsWeb/walletIframe/shared/walletAlternatives.js +4 -14
- package/dist/esm/core/ui/walletIcon.js +11 -3
- package/dist/esm/externalNear/controller.js +3 -2
- package/dist/esm/externalNear/meteor.js +1 -1
- package/dist/esm/externalNear/meteorRequest.js +8 -2
- package/dist/esm/react/components/HostedSeamsAuthMenu/shell.js +17 -1
- package/dist/esm/sdk/{host-Csu5L7VF.js → host-BsVFOugh.js} +1 -1
- package/dist/esm/sdk/ownerNearOperation-BsIdSH0C.js +1 -0
- package/dist/esm/sdk/registration-Coh0_Nva.js +1 -0
- package/dist/esm/sdk/router_ab_ed25519_yao_client_bg.wasm +0 -0
- package/dist/esm/sdk/runtime-auth-CJCU2yJi.js +1 -0
- package/dist/esm/sdk/{runtime-device-link-DQe0aqRi.js → runtime-device-link-C0oXLSnz.js} +1 -1
- package/dist/esm/sdk/{runtime-ecdsa-tempo-DKkeMMpm.js → runtime-ecdsa-tempo-BC8u9NuI.js} +1 -1
- package/dist/esm/sdk/{runtime-email-otp-CzTe7r9I.js → runtime-email-otp-Cl4iu0z7.js} +1 -1
- package/dist/esm/sdk/{runtime-export-BiyLbdCe.js → runtime-export-BdhfErGJ.js} +1 -1
- package/dist/esm/sdk/{runtime-near-Kk0n1FSf.js → runtime-near-CT2ALBct.js} +1 -1
- package/dist/esm/sdk/{runtime-preferences-B-A3hddU.js → runtime-preferences-fN2G9tct.js} +1 -1
- package/dist/esm/sdk/{runtime-recovery-C9p1TU1w.js → runtime-recovery-n-TGLkwz.js} +1 -1
- package/dist/esm/sdk/{runtimeContext-ChuvOC0h.js → runtimeContext-DI28d8Qu.js} +1 -1
- package/dist/esm/sdk/wallet-iframe-host-ecdsa.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-full.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-near.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-runtime.js +1 -1
- package/dist/esm/sdk/wallet-service.css +2 -0
- package/dist/esm/sdk/wallet-ui.css +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.d.ts +212 -233
- package/dist/esm/wasm/router_ab_ed25519_yao_client/pkg/router_ab_ed25519_yao_client.js +675 -694
- 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/{host-Csu5L7VF.js → host-BsVFOugh.js} +1 -1
- package/dist/public/sdk/ownerNearOperation-BsIdSH0C.js +1 -0
- package/dist/public/sdk/registration-Coh0_Nva.js +1 -0
- package/dist/public/sdk/router_ab_ed25519_yao_client_bg.wasm +0 -0
- package/dist/public/sdk/runtime-auth-CJCU2yJi.js +1 -0
- package/dist/public/sdk/{runtime-device-link-DQe0aqRi.js → runtime-device-link-C0oXLSnz.js} +1 -1
- package/dist/public/sdk/{runtime-ecdsa-tempo-DKkeMMpm.js → runtime-ecdsa-tempo-BC8u9NuI.js} +1 -1
- package/dist/public/sdk/{runtime-email-otp-CzTe7r9I.js → runtime-email-otp-Cl4iu0z7.js} +1 -1
- package/dist/public/sdk/{runtime-export-BiyLbdCe.js → runtime-export-BdhfErGJ.js} +1 -1
- package/dist/public/sdk/{runtime-near-Kk0n1FSf.js → runtime-near-CT2ALBct.js} +1 -1
- package/dist/public/sdk/{runtime-preferences-B-A3hddU.js → runtime-preferences-fN2G9tct.js} +1 -1
- package/dist/public/sdk/{runtime-recovery-C9p1TU1w.js → runtime-recovery-n-TGLkwz.js} +1 -1
- package/dist/public/sdk/{runtimeContext-ChuvOC0h.js → runtimeContext-DI28d8Qu.js} +1 -1
- package/dist/public/sdk/wallet-iframe-host-ecdsa.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-full.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-near.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-runtime.js +1 -1
- package/dist/public/sdk/wallet-service.css +2 -0
- package/dist/public/sdk/wallet-ui.css +1 -1
- package/dist/public/sdk/workers/device-linking-key.worker.js +454 -947
- package/dist/public/sdk/workers/email-otp.worker.js +588 -820
- package/dist/public/sdk/workers/evm_crypto_bg.wasm +0 -0
- package/dist/public/sdk/workers/passkey-mpc-export.worker.js +572 -804
- 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_bg.wasm +0 -0
- package/dist/public/sdk/workers/wallet-custody-ceremony.worker.js +524 -971
- 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 +29 -29
- package/dist/public/wallet-service/index.html +4 -4
- package/dist/types/wallet/src/SeamsWeb/walletIframe/host/ui/auth-menu/AuthMenuFooter.d.ts +4 -0
- package/dist/types/wallet/src/SeamsWeb/walletIframe/host/ui/auth-menu/AuthMenuSurface.d.ts +3 -1
- package/dist/types/wallet/src/SeamsWeb/walletIframe/host/ui/auth-menu/RecoveryOptions.d.ts +11 -0
- package/dist/types/wallet/src/SeamsWeb/walletIframe/host/ui/auth-menu/mountAuthMenuSurface.d.ts +3 -0
- package/dist/types/wallet/src/SeamsWeb/walletIframe/shared/authMenuPresentation.d.ts +13 -0
- package/dist/types/wallet/src/SeamsWeb/walletIframe/shared/messages.d.ts +7 -1
- package/dist/types/wallet/src/core/ui/walletIcon.d.ts +1 -0
- package/dist/types/wallet/src/externalNear/meteorRequest.d.ts +3 -0
- package/dist/types/wallet/src/index.d.ts +1 -1
- package/dist/types/wallet/src/react/components/HostedSeamsAuthMenu/public.d.ts +1 -1
- package/dist/types/wallet/src/react/components/HostedSeamsAuthMenu/types.d.ts +6 -2
- package/dist/types/wallet/src/react/index.d.ts +1 -1
- package/dist/workers/device-linking-key.worker.js +454 -947
- package/dist/workers/email-otp.worker.js +588 -820
- package/dist/workers/evm_crypto_bg.wasm +0 -0
- package/dist/workers/passkey-mpc-export.worker.js +572 -804
- 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_bg.wasm +0 -0
- package/dist/workers/wallet-custody-ceremony.worker.js +524 -971
- package/dist/workers/wallet_custody_ceremony_bg.wasm +0 -0
- package/dist/workers/wasm_signer_worker_bg.wasm +0 -0
- package/package.json +17 -17
- package/dist/esm/sdk/ownerNearOperation-DCxxHcwX.js +0 -1
- package/dist/esm/sdk/registration-C7w_51wE.js +0 -1
- package/dist/esm/sdk/runtime-auth-BMT_gIKI.js +0 -1
- package/dist/public/sdk/ownerNearOperation-DCxxHcwX.js +0 -1
- package/dist/public/sdk/registration-C7w_51wE.js +0 -1
- package/dist/public/sdk/runtime-auth-BMT_gIKI.js +0 -1
|
@@ -3681,852 +3681,92 @@ function walletAuthorityLinkedSignerMaterialRecordFromPackageV1(input) {
|
|
|
3681
3681
|
}
|
|
3682
3682
|
|
|
3683
3683
|
// ../../crates/router-ab-ed25519-yao-client/pkg/router_ab_ed25519_yao_client.js
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
}
|
|
3691
|
-
__destroy_into_raw() {
|
|
3692
|
-
const ptr = this.__wbg_ptr;
|
|
3693
|
-
this.__wbg_ptr = 0;
|
|
3694
|
-
WasmActivatedClientV1Finalization.unregister(this);
|
|
3695
|
-
return ptr;
|
|
3696
|
-
}
|
|
3697
|
-
free() {
|
|
3698
|
-
const ptr = this.__destroy_into_raw();
|
|
3699
|
-
wasm.__wbg_wasmactivatedclientv1_free(ptr, 0);
|
|
3700
|
-
}
|
|
3701
|
-
create_signing_share(client_participant_id, signing_worker_participant_id, admitted_digest, signing_worker_commitments_json, signing_worker_verifying_share) {
|
|
3702
|
-
const ptr0 = passArray8ToWasm0(admitted_digest, wasm.__wbindgen_malloc);
|
|
3703
|
-
const len0 = WASM_VECTOR_LEN;
|
|
3704
|
-
const ptr1 = passStringToWasm0(signing_worker_commitments_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3705
|
-
const len1 = WASM_VECTOR_LEN;
|
|
3706
|
-
const ptr2 = passArray8ToWasm0(signing_worker_verifying_share, wasm.__wbindgen_malloc);
|
|
3707
|
-
const len2 = WASM_VECTOR_LEN;
|
|
3708
|
-
const ret = wasm.wasmactivatedclientv1_create_signing_share(this.__wbg_ptr, client_participant_id, signing_worker_participant_id, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
3709
|
-
if (ret[2]) {
|
|
3710
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
3711
|
-
}
|
|
3712
|
-
return WasmClientSigningShareV1.__wrap(ret[0]);
|
|
3713
|
-
}
|
|
3714
|
-
static import_linked_material(client_scalar_share, client_participant_id, signing_worker_participant_id, public_receipt_json) {
|
|
3715
|
-
const ptr0 = passArray8ToWasm0(client_scalar_share, wasm.__wbindgen_malloc);
|
|
3716
|
-
const len0 = WASM_VECTOR_LEN;
|
|
3717
|
-
const ptr1 = passStringToWasm0(public_receipt_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3718
|
-
const len1 = WASM_VECTOR_LEN;
|
|
3719
|
-
const ret = wasm.wasmactivatedclientv1_import_linked_material(ptr0, len0, client_participant_id, signing_worker_participant_id, ptr1, len1);
|
|
3720
|
-
if (ret[2]) {
|
|
3721
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
3722
|
-
}
|
|
3723
|
-
return WasmActivatedClientV1.__wrap(ret[0]);
|
|
3724
|
-
}
|
|
3725
|
-
static import_local_material(passkey_prf_first, binding, nonce, ciphertext, expected_registered_public_key, expected_state_epoch, client_participant_id, signing_worker_participant_id, signing_worker_verifying_share) {
|
|
3726
|
-
const ptr0 = passArray8ToWasm0(passkey_prf_first, wasm.__wbindgen_malloc);
|
|
3727
|
-
const len0 = WASM_VECTOR_LEN;
|
|
3728
|
-
const ptr1 = passArray8ToWasm0(binding, wasm.__wbindgen_malloc);
|
|
3729
|
-
const len1 = WASM_VECTOR_LEN;
|
|
3730
|
-
const ptr2 = passArray8ToWasm0(nonce, wasm.__wbindgen_malloc);
|
|
3731
|
-
const len2 = WASM_VECTOR_LEN;
|
|
3732
|
-
const ptr3 = passArray8ToWasm0(ciphertext, wasm.__wbindgen_malloc);
|
|
3733
|
-
const len3 = WASM_VECTOR_LEN;
|
|
3734
|
-
const ptr4 = passArray8ToWasm0(expected_registered_public_key, wasm.__wbindgen_malloc);
|
|
3735
|
-
const len4 = WASM_VECTOR_LEN;
|
|
3736
|
-
const ptr5 = passArray8ToWasm0(signing_worker_verifying_share, wasm.__wbindgen_malloc);
|
|
3737
|
-
const len5 = WASM_VECTOR_LEN;
|
|
3738
|
-
const ret = wasm.wasmactivatedclientv1_import_local_material(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, expected_state_epoch, client_participant_id, signing_worker_participant_id, ptr5, len5);
|
|
3739
|
-
if (ret[2]) {
|
|
3740
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
3741
|
-
}
|
|
3742
|
-
return WasmActivatedClientV1.__wrap(ret[0]);
|
|
3743
|
-
}
|
|
3744
|
-
registered_public_key() {
|
|
3745
|
-
const ret = wasm.wasmactivatedclientv1_registered_public_key(this.__wbg_ptr);
|
|
3746
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
3747
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
3748
|
-
return v1;
|
|
3749
|
-
}
|
|
3750
|
-
seal_local_material(passkey_prf_first, binding, nonce) {
|
|
3751
|
-
const ptr0 = passArray8ToWasm0(passkey_prf_first, wasm.__wbindgen_malloc);
|
|
3752
|
-
const len0 = WASM_VECTOR_LEN;
|
|
3753
|
-
const ptr1 = passArray8ToWasm0(binding, wasm.__wbindgen_malloc);
|
|
3754
|
-
const len1 = WASM_VECTOR_LEN;
|
|
3755
|
-
const ptr2 = passArray8ToWasm0(nonce, wasm.__wbindgen_malloc);
|
|
3756
|
-
const len2 = WASM_VECTOR_LEN;
|
|
3757
|
-
const ret = wasm.wasmactivatedclientv1_seal_local_material(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
3758
|
-
if (ret[3]) {
|
|
3759
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
3760
|
-
}
|
|
3761
|
-
var v4 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
3762
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
3763
|
-
return v4;
|
|
3764
|
-
}
|
|
3765
|
-
state_epoch() {
|
|
3766
|
-
const ret = wasm.wasmactivatedclientv1_state_epoch(this.__wbg_ptr);
|
|
3767
|
-
return BigInt.asUintN(64, ret);
|
|
3768
|
-
}
|
|
3769
|
-
}
|
|
3770
|
-
if (Symbol.dispose)
|
|
3771
|
-
WasmActivatedClientV1.prototype[Symbol.dispose] = WasmActivatedClientV1.prototype.free;
|
|
3772
|
-
|
|
3773
|
-
class WasmClientSigningShareV1 {
|
|
3774
|
-
static __wrap(ptr) {
|
|
3775
|
-
const obj = Object.create(WasmClientSigningShareV1.prototype);
|
|
3776
|
-
obj.__wbg_ptr = ptr;
|
|
3777
|
-
WasmClientSigningShareV1Finalization.register(obj, obj.__wbg_ptr, obj);
|
|
3778
|
-
return obj;
|
|
3779
|
-
}
|
|
3780
|
-
__destroy_into_raw() {
|
|
3781
|
-
const ptr = this.__wbg_ptr;
|
|
3782
|
-
this.__wbg_ptr = 0;
|
|
3783
|
-
WasmClientSigningShareV1Finalization.unregister(this);
|
|
3784
|
-
return ptr;
|
|
3785
|
-
}
|
|
3786
|
-
free() {
|
|
3787
|
-
const ptr = this.__destroy_into_raw();
|
|
3788
|
-
wasm.__wbg_wasmclientsigningsharev1_free(ptr, 0);
|
|
3789
|
-
}
|
|
3790
|
-
client_commitments_json() {
|
|
3791
|
-
let deferred1_0;
|
|
3792
|
-
let deferred1_1;
|
|
3793
|
-
try {
|
|
3794
|
-
const ret = wasm.wasmclientsigningsharev1_client_commitments_json(this.__wbg_ptr);
|
|
3795
|
-
deferred1_0 = ret[0];
|
|
3796
|
-
deferred1_1 = ret[1];
|
|
3797
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
3798
|
-
} finally {
|
|
3799
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3800
|
-
}
|
|
3801
|
-
}
|
|
3802
|
-
client_signature_share_b64u() {
|
|
3803
|
-
let deferred1_0;
|
|
3804
|
-
let deferred1_1;
|
|
3805
|
-
try {
|
|
3806
|
-
const ret = wasm.wasmclientsigningsharev1_client_signature_share_b64u(this.__wbg_ptr);
|
|
3807
|
-
deferred1_0 = ret[0];
|
|
3808
|
-
deferred1_1 = ret[1];
|
|
3809
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
3810
|
-
} finally {
|
|
3811
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3812
|
-
}
|
|
3813
|
-
}
|
|
3814
|
-
client_verifying_share() {
|
|
3815
|
-
const ret = wasm.wasmclientsigningsharev1_client_verifying_share(this.__wbg_ptr);
|
|
3816
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
3817
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
3818
|
-
return v1;
|
|
3819
|
-
}
|
|
3820
|
-
}
|
|
3821
|
-
if (Symbol.dispose)
|
|
3822
|
-
WasmClientSigningShareV1.prototype[Symbol.dispose] = WasmClientSigningShareV1.prototype.free;
|
|
3823
|
-
|
|
3824
|
-
class WasmEd25519YaoClientRootExportSessionV1 {
|
|
3825
|
-
__destroy_into_raw() {
|
|
3826
|
-
const ptr = this.__wbg_ptr;
|
|
3827
|
-
this.__wbg_ptr = 0;
|
|
3828
|
-
WasmEd25519YaoClientRootExportSessionV1Finalization.unregister(this);
|
|
3829
|
-
return ptr;
|
|
3830
|
-
}
|
|
3831
|
-
free() {
|
|
3832
|
-
const ptr = this.__destroy_into_raw();
|
|
3833
|
-
wasm.__wbg_wasmed25519yaoclientrootexportsessionv1_free(ptr, 0);
|
|
3834
|
-
}
|
|
3835
|
-
complete(result_json) {
|
|
3836
|
-
const ptr0 = passStringToWasm0(result_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3837
|
-
const len0 = WASM_VECTOR_LEN;
|
|
3838
|
-
const ret = wasm.wasmed25519yaoclientrootexportsessionv1_complete(this.__wbg_ptr, ptr0, len0);
|
|
3839
|
-
if (ret[2]) {
|
|
3840
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
3841
|
-
}
|
|
3842
|
-
return WasmExportedEd25519SeedV1.__wrap(ret[0]);
|
|
3843
|
-
}
|
|
3844
|
-
execute_request_json() {
|
|
3845
|
-
let deferred1_0;
|
|
3846
|
-
let deferred1_1;
|
|
3847
|
-
try {
|
|
3848
|
-
const ret = wasm.wasmed25519yaoclientrootexportsessionv1_execute_request_json(this.__wbg_ptr);
|
|
3849
|
-
deferred1_0 = ret[0];
|
|
3850
|
-
deferred1_1 = ret[1];
|
|
3851
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
3852
|
-
} finally {
|
|
3853
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3854
|
-
}
|
|
3855
|
-
}
|
|
3856
|
-
constructor(admission_json, application_json, client_participant_id, signing_worker_participant_id, factor_secret, envelope_binding_json, envelope_nonce, envelope_ciphertext, envelope_aad_hash, envelope_ciphertext_digest, recipient_key_material, deriver_a_seal_seed, deriver_b_seal_seed) {
|
|
3857
|
-
const ptr0 = passStringToWasm0(admission_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3858
|
-
const len0 = WASM_VECTOR_LEN;
|
|
3859
|
-
const ptr1 = passStringToWasm0(application_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3860
|
-
const len1 = WASM_VECTOR_LEN;
|
|
3861
|
-
const ptr2 = passArray8ToWasm0(factor_secret, wasm.__wbindgen_malloc);
|
|
3862
|
-
const len2 = WASM_VECTOR_LEN;
|
|
3863
|
-
const ptr3 = passStringToWasm0(envelope_binding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3864
|
-
const len3 = WASM_VECTOR_LEN;
|
|
3865
|
-
const ptr4 = passArray8ToWasm0(envelope_nonce, wasm.__wbindgen_malloc);
|
|
3866
|
-
const len4 = WASM_VECTOR_LEN;
|
|
3867
|
-
const ptr5 = passArray8ToWasm0(envelope_ciphertext, wasm.__wbindgen_malloc);
|
|
3868
|
-
const len5 = WASM_VECTOR_LEN;
|
|
3869
|
-
const ptr6 = passArray8ToWasm0(envelope_aad_hash, wasm.__wbindgen_malloc);
|
|
3870
|
-
const len6 = WASM_VECTOR_LEN;
|
|
3871
|
-
const ptr7 = passArray8ToWasm0(envelope_ciphertext_digest, wasm.__wbindgen_malloc);
|
|
3872
|
-
const len7 = WASM_VECTOR_LEN;
|
|
3873
|
-
const ptr8 = passArray8ToWasm0(recipient_key_material, wasm.__wbindgen_malloc);
|
|
3874
|
-
const len8 = WASM_VECTOR_LEN;
|
|
3875
|
-
const ptr9 = passArray8ToWasm0(deriver_a_seal_seed, wasm.__wbindgen_malloc);
|
|
3876
|
-
const len9 = WASM_VECTOR_LEN;
|
|
3877
|
-
const ptr10 = passArray8ToWasm0(deriver_b_seal_seed, wasm.__wbindgen_malloc);
|
|
3878
|
-
const len10 = WASM_VECTOR_LEN;
|
|
3879
|
-
const ret = wasm.wasmed25519yaoclientrootexportsessionv1_new(ptr0, len0, ptr1, len1, client_participant_id, signing_worker_participant_id, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, ptr9, len9, ptr10, len10);
|
|
3880
|
-
if (ret[2]) {
|
|
3881
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
3882
|
-
}
|
|
3883
|
-
this.__wbg_ptr = ret[0];
|
|
3884
|
-
WasmEd25519YaoClientRootExportSessionV1Finalization.register(this, this.__wbg_ptr, this);
|
|
3885
|
-
return this;
|
|
3886
|
-
}
|
|
3887
|
-
}
|
|
3888
|
-
if (Symbol.dispose)
|
|
3889
|
-
WasmEd25519YaoClientRootExportSessionV1.prototype[Symbol.dispose] = WasmEd25519YaoClientRootExportSessionV1.prototype.free;
|
|
3890
|
-
|
|
3891
|
-
class WasmEd25519YaoLaneClientV1 {
|
|
3892
|
-
__destroy_into_raw() {
|
|
3893
|
-
const ptr = this.__wbg_ptr;
|
|
3894
|
-
this.__wbg_ptr = 0;
|
|
3895
|
-
WasmEd25519YaoLaneClientV1Finalization.unregister(this);
|
|
3896
|
-
return ptr;
|
|
3897
|
-
}
|
|
3898
|
-
free() {
|
|
3899
|
-
const ptr = this.__destroy_into_raw();
|
|
3900
|
-
wasm.__wbg_wasmed25519yaolaneclientv1_free(ptr, 0);
|
|
3901
|
-
}
|
|
3902
|
-
complete(result_input) {
|
|
3903
|
-
const ret = wasm.wasmed25519yaolaneclientv1_complete(this.__wbg_ptr, result_input);
|
|
3904
|
-
if (ret[2]) {
|
|
3905
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
3906
|
-
}
|
|
3907
|
-
return takeFromExternrefTable0(ret[0]);
|
|
3908
|
-
}
|
|
3909
|
-
execute_request_json() {
|
|
3910
|
-
let deferred2_0;
|
|
3911
|
-
let deferred2_1;
|
|
3912
|
-
try {
|
|
3913
|
-
const ret = wasm.wasmed25519yaolaneclientv1_execute_request_json(this.__wbg_ptr);
|
|
3914
|
-
var ptr1 = ret[0];
|
|
3915
|
-
var len1 = ret[1];
|
|
3916
|
-
if (ret[3]) {
|
|
3917
|
-
ptr1 = 0;
|
|
3918
|
-
len1 = 0;
|
|
3919
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
3920
|
-
}
|
|
3921
|
-
deferred2_0 = ptr1;
|
|
3922
|
-
deferred2_1 = len1;
|
|
3923
|
-
return getStringFromWasm0(ptr1, len1);
|
|
3924
|
-
} finally {
|
|
3925
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
3926
|
-
}
|
|
3927
|
-
}
|
|
3928
|
-
constructor() {
|
|
3929
|
-
const ret = wasm.wasmed25519yaolaneclientv1_new();
|
|
3930
|
-
this.__wbg_ptr = ret;
|
|
3931
|
-
WasmEd25519YaoLaneClientV1Finalization.register(this, this.__wbg_ptr, this);
|
|
3932
|
-
return this;
|
|
3933
|
-
}
|
|
3934
|
-
prepare(job_input, binding_input, application_input, client_participant_id, signing_worker_participant_id, source, deriver_a_input_public_key, deriver_b_input_public_key, deriver_a_seal_seed, deriver_b_seal_seed) {
|
|
3935
|
-
_assertClass(source, WasmEd25519YaoLaneSourceV1);
|
|
3936
|
-
const ptr0 = passArray8ToWasm0(deriver_a_input_public_key, wasm.__wbindgen_malloc);
|
|
3937
|
-
const len0 = WASM_VECTOR_LEN;
|
|
3938
|
-
const ptr1 = passArray8ToWasm0(deriver_b_input_public_key, wasm.__wbindgen_malloc);
|
|
3939
|
-
const len1 = WASM_VECTOR_LEN;
|
|
3940
|
-
const ptr2 = passArray8ToWasm0(deriver_a_seal_seed, wasm.__wbindgen_malloc);
|
|
3941
|
-
const len2 = WASM_VECTOR_LEN;
|
|
3942
|
-
const ptr3 = passArray8ToWasm0(deriver_b_seal_seed, wasm.__wbindgen_malloc);
|
|
3943
|
-
const len3 = WASM_VECTOR_LEN;
|
|
3944
|
-
const ret = wasm.wasmed25519yaolaneclientv1_prepare(this.__wbg_ptr, job_input, binding_input, application_input, client_participant_id, signing_worker_participant_id, source.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
3945
|
-
if (ret[2]) {
|
|
3946
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
3947
|
-
}
|
|
3948
|
-
return takeFromExternrefTable0(ret[0]);
|
|
3949
|
-
}
|
|
3950
|
-
}
|
|
3951
|
-
if (Symbol.dispose)
|
|
3952
|
-
WasmEd25519YaoLaneClientV1.prototype[Symbol.dispose] = WasmEd25519YaoLaneClientV1.prototype.free;
|
|
3953
|
-
|
|
3954
|
-
class WasmEd25519YaoLaneSourceV1 {
|
|
3955
|
-
static __wrap(ptr) {
|
|
3956
|
-
const obj = Object.create(WasmEd25519YaoLaneSourceV1.prototype);
|
|
3957
|
-
obj.__wbg_ptr = ptr;
|
|
3958
|
-
WasmEd25519YaoLaneSourceV1Finalization.register(obj, obj.__wbg_ptr, obj);
|
|
3959
|
-
return obj;
|
|
3960
|
-
}
|
|
3961
|
-
__destroy_into_raw() {
|
|
3962
|
-
const ptr = this.__wbg_ptr;
|
|
3963
|
-
this.__wbg_ptr = 0;
|
|
3964
|
-
WasmEd25519YaoLaneSourceV1Finalization.unregister(this);
|
|
3965
|
-
return ptr;
|
|
3966
|
-
}
|
|
3967
|
-
free() {
|
|
3968
|
-
const ptr = this.__destroy_into_raw();
|
|
3969
|
-
wasm.__wbg_wasmed25519yaolanesourcev1_free(ptr, 0);
|
|
3970
|
-
}
|
|
3971
|
-
constructor(factor_secret, envelope_binding_json, envelope_nonce, envelope_ciphertext, envelope_aad_hash, envelope_ciphertext_digest) {
|
|
3972
|
-
const ptr0 = passArray8ToWasm0(factor_secret, wasm.__wbindgen_malloc);
|
|
3973
|
-
const len0 = WASM_VECTOR_LEN;
|
|
3974
|
-
const ptr1 = passStringToWasm0(envelope_binding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3975
|
-
const len1 = WASM_VECTOR_LEN;
|
|
3976
|
-
const ptr2 = passArray8ToWasm0(envelope_nonce, wasm.__wbindgen_malloc);
|
|
3977
|
-
const len2 = WASM_VECTOR_LEN;
|
|
3978
|
-
const ptr3 = passArray8ToWasm0(envelope_ciphertext, wasm.__wbindgen_malloc);
|
|
3979
|
-
const len3 = WASM_VECTOR_LEN;
|
|
3980
|
-
const ptr4 = passArray8ToWasm0(envelope_aad_hash, wasm.__wbindgen_malloc);
|
|
3981
|
-
const len4 = WASM_VECTOR_LEN;
|
|
3982
|
-
const ptr5 = passArray8ToWasm0(envelope_ciphertext_digest, wasm.__wbindgen_malloc);
|
|
3983
|
-
const len5 = WASM_VECTOR_LEN;
|
|
3984
|
-
const ret = wasm.wasmed25519yaolanesourcev1_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5);
|
|
3985
|
-
if (ret[2]) {
|
|
3986
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
3987
|
-
}
|
|
3988
|
-
this.__wbg_ptr = ret[0];
|
|
3989
|
-
WasmEd25519YaoLaneSourceV1Finalization.register(this, this.__wbg_ptr, this);
|
|
3990
|
-
return this;
|
|
3991
|
-
}
|
|
3992
|
-
}
|
|
3993
|
-
if (Symbol.dispose)
|
|
3994
|
-
WasmEd25519YaoLaneSourceV1.prototype[Symbol.dispose] = WasmEd25519YaoLaneSourceV1.prototype.free;
|
|
3995
|
-
|
|
3996
|
-
class WasmEd25519YaoSourcePreservingRegistrationSessionV1 {
|
|
3997
|
-
__destroy_into_raw() {
|
|
3998
|
-
const ptr = this.__wbg_ptr;
|
|
3999
|
-
this.__wbg_ptr = 0;
|
|
4000
|
-
WasmEd25519YaoSourcePreservingRegistrationSessionV1Finalization.unregister(this);
|
|
4001
|
-
return ptr;
|
|
4002
|
-
}
|
|
4003
|
-
free() {
|
|
4004
|
-
const ptr = this.__destroy_into_raw();
|
|
4005
|
-
wasm.__wbg_wasmed25519yaosourcepreservingregistrationsessionv1_free(ptr, 0);
|
|
4006
|
-
}
|
|
4007
|
-
constructor(admission_input, application_input, client_participant_id, signing_worker_participant_id, source, expected_registered_public_key, target_client_recipient_public_key, deriver_a_seal_seed, deriver_b_seal_seed) {
|
|
4008
|
-
_assertClass(source, WasmEd25519YaoLaneSourceV1);
|
|
4009
|
-
const ptr0 = passArray8ToWasm0(expected_registered_public_key, wasm.__wbindgen_malloc);
|
|
4010
|
-
const len0 = WASM_VECTOR_LEN;
|
|
4011
|
-
const ptr1 = passArray8ToWasm0(target_client_recipient_public_key, wasm.__wbindgen_malloc);
|
|
4012
|
-
const len1 = WASM_VECTOR_LEN;
|
|
4013
|
-
const ptr2 = passArray8ToWasm0(deriver_a_seal_seed, wasm.__wbindgen_malloc);
|
|
4014
|
-
const len2 = WASM_VECTOR_LEN;
|
|
4015
|
-
const ptr3 = passArray8ToWasm0(deriver_b_seal_seed, wasm.__wbindgen_malloc);
|
|
4016
|
-
const len3 = WASM_VECTOR_LEN;
|
|
4017
|
-
const ret = wasm.wasmed25519yaosourcepreservingregistrationsessionv1_new(admission_input, application_input, client_participant_id, signing_worker_participant_id, source.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
4018
|
-
if (ret[2]) {
|
|
4019
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
4020
|
-
}
|
|
4021
|
-
this.__wbg_ptr = ret[0];
|
|
4022
|
-
WasmEd25519YaoSourcePreservingRegistrationSessionV1Finalization.register(this, this.__wbg_ptr, this);
|
|
4023
|
-
return this;
|
|
4024
|
-
}
|
|
4025
|
-
take_execute_request_json() {
|
|
4026
|
-
let deferred2_0;
|
|
4027
|
-
let deferred2_1;
|
|
4028
|
-
try {
|
|
4029
|
-
const ret = wasm.wasmed25519yaosourcepreservingregistrationsessionv1_take_execute_request_json(this.__wbg_ptr);
|
|
4030
|
-
var ptr1 = ret[0];
|
|
4031
|
-
var len1 = ret[1];
|
|
4032
|
-
if (ret[3]) {
|
|
4033
|
-
ptr1 = 0;
|
|
4034
|
-
len1 = 0;
|
|
4035
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
4036
|
-
}
|
|
4037
|
-
deferred2_0 = ptr1;
|
|
4038
|
-
deferred2_1 = len1;
|
|
4039
|
-
return getStringFromWasm0(ptr1, len1);
|
|
4040
|
-
} finally {
|
|
4041
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
4042
|
-
}
|
|
4043
|
-
}
|
|
4044
|
-
}
|
|
4045
|
-
if (Symbol.dispose)
|
|
4046
|
-
WasmEd25519YaoSourcePreservingRegistrationSessionV1.prototype[Symbol.dispose] = WasmEd25519YaoSourcePreservingRegistrationSessionV1.prototype.free;
|
|
4047
|
-
|
|
4048
|
-
class WasmExportedEd25519SeedV1 {
|
|
4049
|
-
static __wrap(ptr) {
|
|
4050
|
-
const obj = Object.create(WasmExportedEd25519SeedV1.prototype);
|
|
4051
|
-
obj.__wbg_ptr = ptr;
|
|
4052
|
-
WasmExportedEd25519SeedV1Finalization.register(obj, obj.__wbg_ptr, obj);
|
|
4053
|
-
return obj;
|
|
4054
|
-
}
|
|
4055
|
-
__destroy_into_raw() {
|
|
4056
|
-
const ptr = this.__wbg_ptr;
|
|
4057
|
-
this.__wbg_ptr = 0;
|
|
4058
|
-
WasmExportedEd25519SeedV1Finalization.unregister(this);
|
|
4059
|
-
return ptr;
|
|
4060
|
-
}
|
|
4061
|
-
free() {
|
|
4062
|
-
const ptr = this.__destroy_into_raw();
|
|
4063
|
-
wasm.__wbg_wasmexporteded25519seedv1_free(ptr, 0);
|
|
4064
|
-
}
|
|
4065
|
-
take_export_artifact_json() {
|
|
4066
|
-
let deferred2_0;
|
|
4067
|
-
let deferred2_1;
|
|
4068
|
-
try {
|
|
4069
|
-
const ret = wasm.wasmexporteded25519seedv1_take_export_artifact_json(this.__wbg_ptr);
|
|
4070
|
-
var ptr1 = ret[0];
|
|
4071
|
-
var len1 = ret[1];
|
|
4072
|
-
if (ret[3]) {
|
|
4073
|
-
ptr1 = 0;
|
|
4074
|
-
len1 = 0;
|
|
4075
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
4076
|
-
}
|
|
4077
|
-
deferred2_0 = ptr1;
|
|
4078
|
-
deferred2_1 = len1;
|
|
4079
|
-
return getStringFromWasm0(ptr1, len1);
|
|
4080
|
-
} finally {
|
|
4081
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
4082
|
-
}
|
|
4083
|
-
}
|
|
4084
|
-
}
|
|
4085
|
-
if (Symbol.dispose)
|
|
4086
|
-
WasmExportedEd25519SeedV1.prototype[Symbol.dispose] = WasmExportedEd25519SeedV1.prototype.free;
|
|
4087
|
-
|
|
4088
|
-
class WasmOrdinaryEd25519ActivationClientMaterialV1 {
|
|
4089
|
-
__destroy_into_raw() {
|
|
4090
|
-
const ptr = this.__wbg_ptr;
|
|
4091
|
-
this.__wbg_ptr = 0;
|
|
4092
|
-
WasmOrdinaryEd25519ActivationClientMaterialV1Finalization.unregister(this);
|
|
4093
|
-
return ptr;
|
|
4094
|
-
}
|
|
4095
|
-
free() {
|
|
4096
|
-
const ptr = this.__destroy_into_raw();
|
|
4097
|
-
wasm.__wbg_wasmordinaryed25519activationclientmaterialv1_free(ptr, 0);
|
|
4098
|
-
}
|
|
4099
|
-
destroy() {
|
|
4100
|
-
wasm.wasmordinaryed25519activationclientmaterialv1_destroy(this.__wbg_ptr);
|
|
4101
|
-
}
|
|
4102
|
-
constructor(binding_json, deriver_a_client_package_json, deriver_b_client_package_json, recipient_private_key, participant_ids_json, public_receipt_json) {
|
|
4103
|
-
const ptr0 = passStringToWasm0(binding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4104
|
-
const len0 = WASM_VECTOR_LEN;
|
|
4105
|
-
const ptr1 = passStringToWasm0(deriver_a_client_package_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4106
|
-
const len1 = WASM_VECTOR_LEN;
|
|
4107
|
-
const ptr2 = passStringToWasm0(deriver_b_client_package_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4108
|
-
const len2 = WASM_VECTOR_LEN;
|
|
4109
|
-
const ptr3 = passArray8ToWasm0(recipient_private_key, wasm.__wbindgen_malloc);
|
|
4110
|
-
const len3 = WASM_VECTOR_LEN;
|
|
4111
|
-
const ptr4 = passStringToWasm0(participant_ids_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4112
|
-
const len4 = WASM_VECTOR_LEN;
|
|
4113
|
-
const ptr5 = passStringToWasm0(public_receipt_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4114
|
-
const len5 = WASM_VECTOR_LEN;
|
|
4115
|
-
const ret = wasm.wasmordinaryed25519activationclientmaterialv1_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5);
|
|
4116
|
-
if (ret[2]) {
|
|
4117
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
4118
|
-
}
|
|
4119
|
-
this.__wbg_ptr = ret[0];
|
|
4120
|
-
WasmOrdinaryEd25519ActivationClientMaterialV1Finalization.register(this, this.__wbg_ptr, this);
|
|
4121
|
-
return this;
|
|
4122
|
-
}
|
|
4123
|
-
take_client_material() {
|
|
4124
|
-
const ret = wasm.wasmordinaryed25519activationclientmaterialv1_take_client_material(this.__wbg_ptr);
|
|
4125
|
-
if (ret[3]) {
|
|
4126
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
4127
|
-
}
|
|
4128
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
4129
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
4130
|
-
return v1;
|
|
3684
|
+
var wasm;
|
|
3685
|
+
var WASM_VECTOR_LEN = 0;
|
|
3686
|
+
var cachedUint8ArrayMemory0 = null;
|
|
3687
|
+
function getUint8ArrayMemory0() {
|
|
3688
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
3689
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
4131
3690
|
}
|
|
3691
|
+
return cachedUint8ArrayMemory0;
|
|
4132
3692
|
}
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
3693
|
+
var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
|
|
3694
|
+
throw Error("TextEncoder not available");
|
|
3695
|
+
} };
|
|
3696
|
+
var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function(arg, view) {
|
|
3697
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
3698
|
+
} : function(arg, view) {
|
|
3699
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
3700
|
+
view.set(buf);
|
|
3701
|
+
return {
|
|
3702
|
+
read: arg.length,
|
|
3703
|
+
written: buf.length
|
|
3704
|
+
};
|
|
3705
|
+
};
|
|
3706
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
3707
|
+
if (realloc === undefined) {
|
|
3708
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
3709
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
3710
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
3711
|
+
WASM_VECTOR_LEN = buf.length;
|
|
4141
3712
|
return ptr;
|
|
4142
|
-
}
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
const
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
execute_request_json() {
|
|
4157
|
-
let deferred1_0;
|
|
4158
|
-
let deferred1_1;
|
|
4159
|
-
try {
|
|
4160
|
-
const ret = wasm.wasmwalletcustodyseedexportsessionv1_execute_request_json(this.__wbg_ptr);
|
|
4161
|
-
deferred1_0 = ret[0];
|
|
4162
|
-
deferred1_1 = ret[1];
|
|
4163
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
4164
|
-
} finally {
|
|
4165
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
4166
|
-
}
|
|
4167
|
-
}
|
|
4168
|
-
constructor(admission_json, application_json, client_participant_id, signing_worker_participant_id, factor_secret, envelope_binding_json, envelope_nonce, envelope_ciphertext, envelope_aad_hash, envelope_ciphertext_digest, recipient_key_material, deriver_a_seal_seed, deriver_b_seal_seed) {
|
|
4169
|
-
const ptr0 = passStringToWasm0(admission_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4170
|
-
const len0 = WASM_VECTOR_LEN;
|
|
4171
|
-
const ptr1 = passStringToWasm0(application_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4172
|
-
const len1 = WASM_VECTOR_LEN;
|
|
4173
|
-
const ptr2 = passArray8ToWasm0(factor_secret, wasm.__wbindgen_malloc);
|
|
4174
|
-
const len2 = WASM_VECTOR_LEN;
|
|
4175
|
-
const ptr3 = passStringToWasm0(envelope_binding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4176
|
-
const len3 = WASM_VECTOR_LEN;
|
|
4177
|
-
const ptr4 = passArray8ToWasm0(envelope_nonce, wasm.__wbindgen_malloc);
|
|
4178
|
-
const len4 = WASM_VECTOR_LEN;
|
|
4179
|
-
const ptr5 = passArray8ToWasm0(envelope_ciphertext, wasm.__wbindgen_malloc);
|
|
4180
|
-
const len5 = WASM_VECTOR_LEN;
|
|
4181
|
-
const ptr6 = passArray8ToWasm0(envelope_aad_hash, wasm.__wbindgen_malloc);
|
|
4182
|
-
const len6 = WASM_VECTOR_LEN;
|
|
4183
|
-
const ptr7 = passArray8ToWasm0(envelope_ciphertext_digest, wasm.__wbindgen_malloc);
|
|
4184
|
-
const len7 = WASM_VECTOR_LEN;
|
|
4185
|
-
const ptr8 = passArray8ToWasm0(recipient_key_material, wasm.__wbindgen_malloc);
|
|
4186
|
-
const len8 = WASM_VECTOR_LEN;
|
|
4187
|
-
const ptr9 = passArray8ToWasm0(deriver_a_seal_seed, wasm.__wbindgen_malloc);
|
|
4188
|
-
const len9 = WASM_VECTOR_LEN;
|
|
4189
|
-
const ptr10 = passArray8ToWasm0(deriver_b_seal_seed, wasm.__wbindgen_malloc);
|
|
4190
|
-
const len10 = WASM_VECTOR_LEN;
|
|
4191
|
-
const ret = wasm.wasmwalletcustodyseedexportsessionv1_new(ptr0, len0, ptr1, len1, client_participant_id, signing_worker_participant_id, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, ptr9, len9, ptr10, len10);
|
|
4192
|
-
if (ret[2]) {
|
|
4193
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
4194
|
-
}
|
|
4195
|
-
this.__wbg_ptr = ret[0];
|
|
4196
|
-
WasmWalletCustodySeedExportSessionV1Finalization.register(this, this.__wbg_ptr, this);
|
|
4197
|
-
return this;
|
|
4198
|
-
}
|
|
4199
|
-
}
|
|
4200
|
-
if (Symbol.dispose)
|
|
4201
|
-
WasmWalletCustodySeedExportSessionV1.prototype[Symbol.dispose] = WasmWalletCustodySeedExportSessionV1.prototype.free;
|
|
4202
|
-
function __wbg_get_imports() {
|
|
4203
|
-
const import0 = {
|
|
4204
|
-
__proto__: null,
|
|
4205
|
-
__wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
|
|
4206
|
-
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
4207
|
-
return ret;
|
|
4208
|
-
},
|
|
4209
|
-
__wbg_Number_9a4e0ecb0fa16705: function(arg0) {
|
|
4210
|
-
const ret = Number(arg0);
|
|
4211
|
-
return ret;
|
|
4212
|
-
},
|
|
4213
|
-
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
4214
|
-
const ret = String(arg1);
|
|
4215
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4216
|
-
const len1 = WASM_VECTOR_LEN;
|
|
4217
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
4218
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
4219
|
-
},
|
|
4220
|
-
__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f: function(arg0, arg1) {
|
|
4221
|
-
const v = arg1;
|
|
4222
|
-
const ret = typeof v === "bigint" ? v : undefined;
|
|
4223
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
4224
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
4225
|
-
},
|
|
4226
|
-
__wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
|
|
4227
|
-
const v = arg0;
|
|
4228
|
-
const ret = typeof v === "boolean" ? v : undefined;
|
|
4229
|
-
return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
|
|
4230
|
-
},
|
|
4231
|
-
__wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {
|
|
4232
|
-
const ret = debugString(arg1);
|
|
4233
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4234
|
-
const len1 = WASM_VECTOR_LEN;
|
|
4235
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
4236
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
4237
|
-
},
|
|
4238
|
-
__wbg___wbindgen_in_aca499c5de7ff5e5: function(arg0, arg1) {
|
|
4239
|
-
const ret = arg0 in arg1;
|
|
4240
|
-
return ret;
|
|
4241
|
-
},
|
|
4242
|
-
__wbg___wbindgen_is_bigint_2f76dc55065b4273: function(arg0) {
|
|
4243
|
-
const ret = typeof arg0 === "bigint";
|
|
4244
|
-
return ret;
|
|
4245
|
-
},
|
|
4246
|
-
__wbg___wbindgen_is_function_1ff95bcc5517c252: function(arg0) {
|
|
4247
|
-
const ret = typeof arg0 === "function";
|
|
4248
|
-
return ret;
|
|
4249
|
-
},
|
|
4250
|
-
__wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
|
|
4251
|
-
const val = arg0;
|
|
4252
|
-
const ret = typeof val === "object" && val !== null;
|
|
4253
|
-
return ret;
|
|
4254
|
-
},
|
|
4255
|
-
__wbg___wbindgen_is_string_ea5e6cc2e4141dfe: function(arg0) {
|
|
4256
|
-
const ret = typeof arg0 === "string";
|
|
4257
|
-
return ret;
|
|
4258
|
-
},
|
|
4259
|
-
__wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
|
|
4260
|
-
const ret = arg0 === undefined;
|
|
4261
|
-
return ret;
|
|
4262
|
-
},
|
|
4263
|
-
__wbg___wbindgen_jsval_eq_e659fcf7b0e32763: function(arg0, arg1) {
|
|
4264
|
-
const ret = arg0 === arg1;
|
|
4265
|
-
return ret;
|
|
4266
|
-
},
|
|
4267
|
-
__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170: function(arg0, arg1) {
|
|
4268
|
-
const ret = arg0 == arg1;
|
|
4269
|
-
return ret;
|
|
4270
|
-
},
|
|
4271
|
-
__wbg___wbindgen_number_get_394265ed1e1b84ee: function(arg0, arg1) {
|
|
4272
|
-
const obj = arg1;
|
|
4273
|
-
const ret = typeof obj === "number" ? obj : undefined;
|
|
4274
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
4275
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
4276
|
-
},
|
|
4277
|
-
__wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
|
|
4278
|
-
const obj = arg1;
|
|
4279
|
-
const ret = typeof obj === "string" ? obj : undefined;
|
|
4280
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4281
|
-
var len1 = WASM_VECTOR_LEN;
|
|
4282
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
4283
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
4284
|
-
},
|
|
4285
|
-
__wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
|
|
4286
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
4287
|
-
},
|
|
4288
|
-
__wbg_call_8a2dd23819f8a60a: function() {
|
|
4289
|
-
return handleError(function(arg0, arg1) {
|
|
4290
|
-
const ret = arg0.call(arg1);
|
|
4291
|
-
return ret;
|
|
4292
|
-
}, arguments);
|
|
4293
|
-
},
|
|
4294
|
-
__wbg_call_a6e5c5dce5018821: function() {
|
|
4295
|
-
return handleError(function(arg0, arg1, arg2) {
|
|
4296
|
-
const ret = arg0.call(arg1, arg2);
|
|
4297
|
-
return ret;
|
|
4298
|
-
}, arguments);
|
|
4299
|
-
},
|
|
4300
|
-
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
4301
|
-
const ret = arg0.crypto;
|
|
4302
|
-
return ret;
|
|
4303
|
-
},
|
|
4304
|
-
__wbg_done_89b2b13e91a60321: function(arg0) {
|
|
4305
|
-
const ret = arg0.done;
|
|
4306
|
-
return ret;
|
|
4307
|
-
},
|
|
4308
|
-
__wbg_entries_015dc610cd81ede0: function(arg0) {
|
|
4309
|
-
const ret = Object.entries(arg0);
|
|
4310
|
-
return ret;
|
|
4311
|
-
},
|
|
4312
|
-
__wbg_getRandomValues_c44a50d8cfdaebeb: function() {
|
|
4313
|
-
return handleError(function(arg0, arg1) {
|
|
4314
|
-
arg0.getRandomValues(arg1);
|
|
4315
|
-
}, arguments);
|
|
4316
|
-
},
|
|
4317
|
-
__wbg_get_507a50627bffa49b: function(arg0, arg1) {
|
|
4318
|
-
const ret = arg0[arg1 >>> 0];
|
|
4319
|
-
return ret;
|
|
4320
|
-
},
|
|
4321
|
-
__wbg_get_78f252d074a84d0b: function() {
|
|
4322
|
-
return handleError(function(arg0, arg1) {
|
|
4323
|
-
const ret = Reflect.get(arg0, arg1);
|
|
4324
|
-
return ret;
|
|
4325
|
-
}, arguments);
|
|
4326
|
-
},
|
|
4327
|
-
__wbg_get_c7eb1f358a7654df: function() {
|
|
4328
|
-
return handleError(function(arg0, arg1) {
|
|
4329
|
-
const ret = Reflect.get(arg0, arg1);
|
|
4330
|
-
return ret;
|
|
4331
|
-
}, arguments);
|
|
4332
|
-
},
|
|
4333
|
-
__wbg_get_unchecked_6e0ad6d2a41b06f6: function(arg0, arg1) {
|
|
4334
|
-
const ret = arg0[arg1 >>> 0];
|
|
4335
|
-
return ret;
|
|
4336
|
-
},
|
|
4337
|
-
__wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
|
|
4338
|
-
const ret = arg0[arg1];
|
|
4339
|
-
return ret;
|
|
4340
|
-
},
|
|
4341
|
-
__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) {
|
|
4342
|
-
let result;
|
|
4343
|
-
try {
|
|
4344
|
-
result = arg0 instanceof ArrayBuffer;
|
|
4345
|
-
} catch (_) {
|
|
4346
|
-
result = false;
|
|
4347
|
-
}
|
|
4348
|
-
const ret = result;
|
|
4349
|
-
return ret;
|
|
4350
|
-
},
|
|
4351
|
-
__wbg_instanceof_Map_e5b5e3db98422fcc: function(arg0) {
|
|
4352
|
-
let result;
|
|
4353
|
-
try {
|
|
4354
|
-
result = arg0 instanceof Map;
|
|
4355
|
-
} catch (_) {
|
|
4356
|
-
result = false;
|
|
4357
|
-
}
|
|
4358
|
-
const ret = result;
|
|
4359
|
-
return ret;
|
|
4360
|
-
},
|
|
4361
|
-
__wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {
|
|
4362
|
-
let result;
|
|
4363
|
-
try {
|
|
4364
|
-
result = arg0 instanceof Uint8Array;
|
|
4365
|
-
} catch (_) {
|
|
4366
|
-
result = false;
|
|
4367
|
-
}
|
|
4368
|
-
const ret = result;
|
|
4369
|
-
return ret;
|
|
4370
|
-
},
|
|
4371
|
-
__wbg_isArray_0677c962b281d01a: function(arg0) {
|
|
4372
|
-
const ret = Array.isArray(arg0);
|
|
4373
|
-
return ret;
|
|
4374
|
-
},
|
|
4375
|
-
__wbg_isSafeInteger_04f36e4056f1b851: function(arg0) {
|
|
4376
|
-
const ret = Number.isSafeInteger(arg0);
|
|
4377
|
-
return ret;
|
|
4378
|
-
},
|
|
4379
|
-
__wbg_iterator_6f722e4a93058b71: function() {
|
|
4380
|
-
const ret = Symbol.iterator;
|
|
4381
|
-
return ret;
|
|
4382
|
-
},
|
|
4383
|
-
__wbg_length_1f0964f4a5e2c6d8: function(arg0) {
|
|
4384
|
-
const ret = arg0.length;
|
|
4385
|
-
return ret;
|
|
4386
|
-
},
|
|
4387
|
-
__wbg_length_370319915dc99107: function(arg0) {
|
|
4388
|
-
const ret = arg0.length;
|
|
4389
|
-
return ret;
|
|
4390
|
-
},
|
|
4391
|
-
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
4392
|
-
const ret = arg0.msCrypto;
|
|
4393
|
-
return ret;
|
|
4394
|
-
},
|
|
4395
|
-
__wbg_new_cd45aabdf6073e84: function(arg0) {
|
|
4396
|
-
const ret = new Uint8Array(arg0);
|
|
4397
|
-
return ret;
|
|
4398
|
-
},
|
|
4399
|
-
__wbg_new_da52cf8fe3429cb2: function() {
|
|
4400
|
-
const ret = new Object;
|
|
4401
|
-
return ret;
|
|
4402
|
-
},
|
|
4403
|
-
__wbg_new_with_length_e6785c33c8e4cce8: function(arg0) {
|
|
4404
|
-
const ret = new Uint8Array(arg0 >>> 0);
|
|
4405
|
-
return ret;
|
|
4406
|
-
},
|
|
4407
|
-
__wbg_next_6dbf2c0ac8cde20f: function(arg0) {
|
|
4408
|
-
const ret = arg0.next;
|
|
4409
|
-
return ret;
|
|
4410
|
-
},
|
|
4411
|
-
__wbg_next_71f2aa1cb3d1e37e: function() {
|
|
4412
|
-
return handleError(function(arg0) {
|
|
4413
|
-
const ret = arg0.next();
|
|
4414
|
-
return ret;
|
|
4415
|
-
}, arguments);
|
|
4416
|
-
},
|
|
4417
|
-
__wbg_node_84ea875411254db1: function(arg0) {
|
|
4418
|
-
const ret = arg0.node;
|
|
4419
|
-
return ret;
|
|
4420
|
-
},
|
|
4421
|
-
__wbg_process_44c7a14e11e9f69e: function(arg0) {
|
|
4422
|
-
const ret = arg0.process;
|
|
4423
|
-
return ret;
|
|
4424
|
-
},
|
|
4425
|
-
__wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
|
|
4426
|
-
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
4427
|
-
},
|
|
4428
|
-
__wbg_randomFillSync_6c25eac9869eb53c: function() {
|
|
4429
|
-
return handleError(function(arg0, arg1) {
|
|
4430
|
-
arg0.randomFillSync(arg1);
|
|
4431
|
-
}, arguments);
|
|
4432
|
-
},
|
|
4433
|
-
__wbg_require_b4edbdcf3e2a1ef0: function() {
|
|
4434
|
-
return handleError(function() {
|
|
4435
|
-
const ret = module_router_ab_ed25519_yao_client.require;
|
|
4436
|
-
return ret;
|
|
4437
|
-
}, arguments);
|
|
4438
|
-
},
|
|
4439
|
-
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
4440
|
-
arg0[arg1] = arg2;
|
|
4441
|
-
},
|
|
4442
|
-
__wbg_set_8535240470bf2500: function() {
|
|
4443
|
-
return handleError(function(arg0, arg1, arg2) {
|
|
4444
|
-
const ret = Reflect.set(arg0, arg1, arg2);
|
|
4445
|
-
return ret;
|
|
4446
|
-
}, arguments);
|
|
4447
|
-
},
|
|
4448
|
-
__wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
|
|
4449
|
-
const ret = typeof global === "undefined" ? null : global;
|
|
4450
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
4451
|
-
},
|
|
4452
|
-
__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4: function() {
|
|
4453
|
-
const ret = typeof globalThis === "undefined" ? null : globalThis;
|
|
4454
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
4455
|
-
},
|
|
4456
|
-
__wbg_static_accessor_SELF_146583524fe1469b: function() {
|
|
4457
|
-
const ret = typeof self === "undefined" ? null : self;
|
|
4458
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
4459
|
-
},
|
|
4460
|
-
__wbg_static_accessor_WINDOW_f2829a2234d7819e: function() {
|
|
4461
|
-
const ret = typeof window === "undefined" ? null : window;
|
|
4462
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
4463
|
-
},
|
|
4464
|
-
__wbg_subarray_3ed232c8a6baee09: function(arg0, arg1, arg2) {
|
|
4465
|
-
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
4466
|
-
return ret;
|
|
4467
|
-
},
|
|
4468
|
-
__wbg_value_a5d5488a9589444a: function(arg0) {
|
|
4469
|
-
const ret = arg0.value;
|
|
4470
|
-
return ret;
|
|
4471
|
-
},
|
|
4472
|
-
__wbg_versions_276b2795b1c6a219: function(arg0) {
|
|
4473
|
-
const ret = arg0.versions;
|
|
4474
|
-
return ret;
|
|
4475
|
-
},
|
|
4476
|
-
__wbindgen_cast_0000000000000001: function(arg0) {
|
|
4477
|
-
const ret = arg0;
|
|
4478
|
-
return ret;
|
|
4479
|
-
},
|
|
4480
|
-
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
4481
|
-
const ret = arg0;
|
|
4482
|
-
return ret;
|
|
4483
|
-
},
|
|
4484
|
-
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
4485
|
-
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
4486
|
-
return ret;
|
|
4487
|
-
},
|
|
4488
|
-
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
4489
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
4490
|
-
return ret;
|
|
4491
|
-
},
|
|
4492
|
-
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
4493
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
4494
|
-
return ret;
|
|
4495
|
-
},
|
|
4496
|
-
__wbindgen_init_externref_table: function() {
|
|
4497
|
-
const table = wasm.__wbindgen_externrefs;
|
|
4498
|
-
const offset = table.grow(4);
|
|
4499
|
-
table.set(0, undefined);
|
|
4500
|
-
table.set(offset + 0, undefined);
|
|
4501
|
-
table.set(offset + 1, null);
|
|
4502
|
-
table.set(offset + 2, true);
|
|
4503
|
-
table.set(offset + 3, false);
|
|
3713
|
+
}
|
|
3714
|
+
let len = arg.length;
|
|
3715
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
3716
|
+
const mem = getUint8ArrayMemory0();
|
|
3717
|
+
let offset = 0;
|
|
3718
|
+
for (;offset < len; offset++) {
|
|
3719
|
+
const code = arg.charCodeAt(offset);
|
|
3720
|
+
if (code > 127)
|
|
3721
|
+
break;
|
|
3722
|
+
mem[ptr + offset] = code;
|
|
3723
|
+
}
|
|
3724
|
+
if (offset !== len) {
|
|
3725
|
+
if (offset !== 0) {
|
|
3726
|
+
arg = arg.slice(offset);
|
|
4504
3727
|
}
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
}
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
var
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
3728
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
3729
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
3730
|
+
const ret = encodeString(arg, view);
|
|
3731
|
+
offset += ret.written;
|
|
3732
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
3733
|
+
}
|
|
3734
|
+
WASM_VECTOR_LEN = offset;
|
|
3735
|
+
return ptr;
|
|
3736
|
+
}
|
|
3737
|
+
var cachedDataViewMemory0 = null;
|
|
3738
|
+
function getDataViewMemory0() {
|
|
3739
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
3740
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
3741
|
+
}
|
|
3742
|
+
return cachedDataViewMemory0;
|
|
3743
|
+
}
|
|
4520
3744
|
function addToExternrefTable0(obj) {
|
|
4521
3745
|
const idx = wasm.__externref_table_alloc();
|
|
4522
|
-
wasm.
|
|
3746
|
+
wasm.__wbindgen_export_4.set(idx, obj);
|
|
4523
3747
|
return idx;
|
|
4524
3748
|
}
|
|
4525
|
-
function
|
|
4526
|
-
|
|
4527
|
-
|
|
3749
|
+
function handleError(f, args) {
|
|
3750
|
+
try {
|
|
3751
|
+
return f.apply(this, args);
|
|
3752
|
+
} catch (e) {
|
|
3753
|
+
const idx = addToExternrefTable0(e);
|
|
3754
|
+
wasm.__wbindgen_exn_store(idx);
|
|
4528
3755
|
}
|
|
4529
3756
|
}
|
|
3757
|
+
var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
|
|
3758
|
+
throw Error("TextDecoder not available");
|
|
3759
|
+
} };
|
|
3760
|
+
if (typeof TextDecoder !== "undefined") {
|
|
3761
|
+
cachedTextDecoder.decode();
|
|
3762
|
+
}
|
|
3763
|
+
function getStringFromWasm0(ptr, len) {
|
|
3764
|
+
ptr = ptr >>> 0;
|
|
3765
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
3766
|
+
}
|
|
3767
|
+
function isLikeNone(x) {
|
|
3768
|
+
return x === undefined || x === null;
|
|
3769
|
+
}
|
|
4530
3770
|
function debugString(val) {
|
|
4531
3771
|
const type = typeof val;
|
|
4532
3772
|
if (type == "number" || type == "boolean" || val == null) {
|
|
@@ -4583,125 +3823,83 @@ ${val.stack}`;
|
|
|
4583
3823
|
}
|
|
4584
3824
|
return className;
|
|
4585
3825
|
}
|
|
4586
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
4587
|
-
ptr = ptr >>> 0;
|
|
4588
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
4589
|
-
}
|
|
4590
|
-
var cachedDataViewMemory0 = null;
|
|
4591
|
-
function getDataViewMemory0() {
|
|
4592
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
4593
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
4594
|
-
}
|
|
4595
|
-
return cachedDataViewMemory0;
|
|
4596
|
-
}
|
|
4597
|
-
function getStringFromWasm0(ptr, len) {
|
|
4598
|
-
return decodeText(ptr >>> 0, len);
|
|
4599
|
-
}
|
|
4600
|
-
var cachedUint8ArrayMemory0 = null;
|
|
4601
|
-
function getUint8ArrayMemory0() {
|
|
4602
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
4603
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
4604
|
-
}
|
|
4605
|
-
return cachedUint8ArrayMemory0;
|
|
4606
|
-
}
|
|
4607
|
-
function handleError(f, args) {
|
|
4608
|
-
try {
|
|
4609
|
-
return f.apply(this, args);
|
|
4610
|
-
} catch (e) {
|
|
4611
|
-
const idx = addToExternrefTable0(e);
|
|
4612
|
-
wasm.__wbindgen_exn_store(idx);
|
|
4613
|
-
}
|
|
4614
|
-
}
|
|
4615
|
-
function isLikeNone(x) {
|
|
4616
|
-
return x === undefined || x === null;
|
|
4617
|
-
}
|
|
4618
3826
|
function passArray8ToWasm0(arg, malloc) {
|
|
4619
3827
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
4620
3828
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
4621
3829
|
WASM_VECTOR_LEN = arg.length;
|
|
4622
3830
|
return ptr;
|
|
4623
3831
|
}
|
|
4624
|
-
function
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
3832
|
+
function takeFromExternrefTable0(idx) {
|
|
3833
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
3834
|
+
wasm.__externref_table_dealloc(idx);
|
|
3835
|
+
return value;
|
|
3836
|
+
}
|
|
3837
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
3838
|
+
ptr = ptr >>> 0;
|
|
3839
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
3840
|
+
}
|
|
3841
|
+
var WasmActivatedClientV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmactivatedclientv1_free(ptr >>> 0, 1));
|
|
3842
|
+
var WasmClientSigningShareV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmclientsigningsharev1_free(ptr >>> 0, 1));
|
|
3843
|
+
var WasmEd25519YaoClientRootExportSessionV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmed25519yaoclientrootexportsessionv1_free(ptr >>> 0, 1));
|
|
3844
|
+
var WasmEd25519YaoLaneClientV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmed25519yaolaneclientv1_free(ptr >>> 0, 1));
|
|
3845
|
+
var WasmEd25519YaoLaneSourceV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmed25519yaolanesourcev1_free(ptr >>> 0, 1));
|
|
3846
|
+
var WasmEd25519YaoSourcePreservingRegistrationSessionV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmed25519yaosourcepreservingregistrationsessionv1_free(ptr >>> 0, 1));
|
|
3847
|
+
var WasmExportedEd25519SeedV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmexporteded25519seedv1_free(ptr >>> 0, 1));
|
|
3848
|
+
var WasmOrdinaryEd25519ActivationClientMaterialV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmordinaryed25519activationclientmaterialv1_free(ptr >>> 0, 1));
|
|
3849
|
+
|
|
3850
|
+
class WasmOrdinaryEd25519ActivationClientMaterialV1 {
|
|
3851
|
+
__destroy_into_raw() {
|
|
3852
|
+
const ptr = this.__wbg_ptr;
|
|
3853
|
+
this.__wbg_ptr = 0;
|
|
3854
|
+
WasmOrdinaryEd25519ActivationClientMaterialV1Finalization.unregister(this);
|
|
4630
3855
|
return ptr;
|
|
4631
3856
|
}
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
let offset = 0;
|
|
4636
|
-
for (;offset < len; offset++) {
|
|
4637
|
-
const code = arg.charCodeAt(offset);
|
|
4638
|
-
if (code > 127)
|
|
4639
|
-
break;
|
|
4640
|
-
mem[ptr + offset] = code;
|
|
3857
|
+
free() {
|
|
3858
|
+
const ptr = this.__destroy_into_raw();
|
|
3859
|
+
wasm.__wbg_wasmordinaryed25519activationclientmaterialv1_free(ptr, 0);
|
|
4641
3860
|
}
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
3861
|
+
take_client_material() {
|
|
3862
|
+
const ret = wasm.wasmordinaryed25519activationclientmaterialv1_take_client_material(this.__wbg_ptr);
|
|
3863
|
+
if (ret[3]) {
|
|
3864
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
4645
3865
|
}
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
offset += ret.written;
|
|
4650
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
3866
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
3867
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
3868
|
+
return v1;
|
|
4651
3869
|
}
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
3870
|
+
constructor(binding_json, deriver_a_client_package_json, deriver_b_client_package_json, recipient_private_key, participant_ids_json, public_receipt_json) {
|
|
3871
|
+
const ptr0 = passStringToWasm0(binding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3872
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3873
|
+
const ptr1 = passStringToWasm0(deriver_a_client_package_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3874
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3875
|
+
const ptr2 = passStringToWasm0(deriver_b_client_package_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3876
|
+
const len2 = WASM_VECTOR_LEN;
|
|
3877
|
+
const ptr3 = passArray8ToWasm0(recipient_private_key, wasm.__wbindgen_malloc);
|
|
3878
|
+
const len3 = WASM_VECTOR_LEN;
|
|
3879
|
+
const ptr4 = passStringToWasm0(participant_ids_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3880
|
+
const len4 = WASM_VECTOR_LEN;
|
|
3881
|
+
const ptr5 = passStringToWasm0(public_receipt_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3882
|
+
const len5 = WASM_VECTOR_LEN;
|
|
3883
|
+
const ret = wasm.wasmordinaryed25519activationclientmaterialv1_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5);
|
|
3884
|
+
if (ret[2]) {
|
|
3885
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
3886
|
+
}
|
|
3887
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
3888
|
+
WasmOrdinaryEd25519ActivationClientMaterialV1Finalization.register(this, this.__wbg_ptr, this);
|
|
3889
|
+
return this;
|
|
3890
|
+
}
|
|
3891
|
+
destroy() {
|
|
3892
|
+
wasm.wasmordinaryed25519activationclientmaterialv1_destroy(this.__wbg_ptr);
|
|
4670
3893
|
}
|
|
4671
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
4672
|
-
}
|
|
4673
|
-
var cachedTextEncoder = new TextEncoder;
|
|
4674
|
-
if (!("encodeInto" in cachedTextEncoder)) {
|
|
4675
|
-
cachedTextEncoder.encodeInto = function(arg, view) {
|
|
4676
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
4677
|
-
view.set(buf);
|
|
4678
|
-
return {
|
|
4679
|
-
read: arg.length,
|
|
4680
|
-
written: buf.length
|
|
4681
|
-
};
|
|
4682
|
-
};
|
|
4683
|
-
}
|
|
4684
|
-
var WASM_VECTOR_LEN = 0;
|
|
4685
|
-
var wasmModule;
|
|
4686
|
-
var wasmInstance;
|
|
4687
|
-
var wasm;
|
|
4688
|
-
function __wbg_finalize_init(instance, module) {
|
|
4689
|
-
wasmInstance = instance;
|
|
4690
|
-
wasm = instance.exports;
|
|
4691
|
-
wasmModule = module;
|
|
4692
|
-
cachedDataViewMemory0 = null;
|
|
4693
|
-
cachedUint8ArrayMemory0 = null;
|
|
4694
|
-
wasm.__wbindgen_start();
|
|
4695
|
-
return wasm;
|
|
4696
3894
|
}
|
|
3895
|
+
var WasmWalletCustodySeedExportSessionV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmwalletcustodyseedexportsessionv1_free(ptr >>> 0, 1));
|
|
4697
3896
|
async function __wbg_load(module, imports) {
|
|
4698
3897
|
if (typeof Response === "function" && module instanceof Response) {
|
|
4699
3898
|
if (typeof WebAssembly.instantiateStreaming === "function") {
|
|
4700
3899
|
try {
|
|
4701
3900
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
4702
3901
|
} catch (e) {
|
|
4703
|
-
|
|
4704
|
-
if (validResponse && module.headers.get("Content-Type") !== "application/wasm") {
|
|
3902
|
+
if (module.headers.get("Content-Type") != "application/wasm") {
|
|
4705
3903
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
4706
3904
|
} else {
|
|
4707
3905
|
throw e;
|
|
@@ -4718,36 +3916,345 @@ async function __wbg_load(module, imports) {
|
|
|
4718
3916
|
return instance;
|
|
4719
3917
|
}
|
|
4720
3918
|
}
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
3919
|
+
}
|
|
3920
|
+
function __wbg_get_imports() {
|
|
3921
|
+
const imports = {};
|
|
3922
|
+
imports.wbg = {};
|
|
3923
|
+
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
3924
|
+
const ret = String(arg1);
|
|
3925
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3926
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3927
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3928
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3929
|
+
};
|
|
3930
|
+
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
3931
|
+
const ret = arg0.buffer;
|
|
3932
|
+
return ret;
|
|
3933
|
+
};
|
|
3934
|
+
imports.wbg.__wbg_call_672a4d21634d4a24 = function() {
|
|
3935
|
+
return handleError(function(arg0, arg1) {
|
|
3936
|
+
const ret = arg0.call(arg1);
|
|
3937
|
+
return ret;
|
|
3938
|
+
}, arguments);
|
|
3939
|
+
};
|
|
3940
|
+
imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() {
|
|
3941
|
+
return handleError(function(arg0, arg1, arg2) {
|
|
3942
|
+
const ret = arg0.call(arg1, arg2);
|
|
3943
|
+
return ret;
|
|
3944
|
+
}, arguments);
|
|
3945
|
+
};
|
|
3946
|
+
imports.wbg.__wbg_crypto_86f2631e91b51511 = function(arg0) {
|
|
3947
|
+
const ret = arg0.crypto;
|
|
3948
|
+
return ret;
|
|
3949
|
+
};
|
|
3950
|
+
imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
|
|
3951
|
+
const ret = arg0.done;
|
|
3952
|
+
return ret;
|
|
3953
|
+
};
|
|
3954
|
+
imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
|
|
3955
|
+
const ret = Object.entries(arg0);
|
|
3956
|
+
return ret;
|
|
3957
|
+
};
|
|
3958
|
+
imports.wbg.__wbg_getRandomValues_b3f15fcbfabb0f8b = function() {
|
|
3959
|
+
return handleError(function(arg0, arg1) {
|
|
3960
|
+
arg0.getRandomValues(arg1);
|
|
3961
|
+
}, arguments);
|
|
3962
|
+
};
|
|
3963
|
+
imports.wbg.__wbg_get_67b2ba62fc30de12 = function() {
|
|
3964
|
+
return handleError(function(arg0, arg1) {
|
|
3965
|
+
const ret = Reflect.get(arg0, arg1);
|
|
3966
|
+
return ret;
|
|
3967
|
+
}, arguments);
|
|
3968
|
+
};
|
|
3969
|
+
imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
3970
|
+
const ret = arg0[arg1 >>> 0];
|
|
3971
|
+
return ret;
|
|
3972
|
+
};
|
|
3973
|
+
imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
|
|
3974
|
+
const ret = arg0[arg1];
|
|
3975
|
+
return ret;
|
|
3976
|
+
};
|
|
3977
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
|
|
3978
|
+
let result;
|
|
3979
|
+
try {
|
|
3980
|
+
result = arg0 instanceof ArrayBuffer;
|
|
3981
|
+
} catch (_) {
|
|
3982
|
+
result = false;
|
|
4727
3983
|
}
|
|
4728
|
-
|
|
4729
|
-
|
|
3984
|
+
const ret = result;
|
|
3985
|
+
return ret;
|
|
3986
|
+
};
|
|
3987
|
+
imports.wbg.__wbg_instanceof_Map_f3469ce2244d2430 = function(arg0) {
|
|
3988
|
+
let result;
|
|
3989
|
+
try {
|
|
3990
|
+
result = arg0 instanceof Map;
|
|
3991
|
+
} catch (_) {
|
|
3992
|
+
result = false;
|
|
3993
|
+
}
|
|
3994
|
+
const ret = result;
|
|
3995
|
+
return ret;
|
|
3996
|
+
};
|
|
3997
|
+
imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
|
|
3998
|
+
let result;
|
|
3999
|
+
try {
|
|
4000
|
+
result = arg0 instanceof Uint8Array;
|
|
4001
|
+
} catch (_) {
|
|
4002
|
+
result = false;
|
|
4003
|
+
}
|
|
4004
|
+
const ret = result;
|
|
4005
|
+
return ret;
|
|
4006
|
+
};
|
|
4007
|
+
imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
|
|
4008
|
+
const ret = Array.isArray(arg0);
|
|
4009
|
+
return ret;
|
|
4010
|
+
};
|
|
4011
|
+
imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
|
|
4012
|
+
const ret = Number.isSafeInteger(arg0);
|
|
4013
|
+
return ret;
|
|
4014
|
+
};
|
|
4015
|
+
imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
|
|
4016
|
+
const ret = Symbol.iterator;
|
|
4017
|
+
return ret;
|
|
4018
|
+
};
|
|
4019
|
+
imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
4020
|
+
const ret = arg0.length;
|
|
4021
|
+
return ret;
|
|
4022
|
+
};
|
|
4023
|
+
imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
|
|
4024
|
+
const ret = arg0.length;
|
|
4025
|
+
return ret;
|
|
4026
|
+
};
|
|
4027
|
+
imports.wbg.__wbg_msCrypto_d562bbe83e0d4b91 = function(arg0) {
|
|
4028
|
+
const ret = arg0.msCrypto;
|
|
4029
|
+
return ret;
|
|
4030
|
+
};
|
|
4031
|
+
imports.wbg.__wbg_new_405e22f390576ce2 = function() {
|
|
4032
|
+
const ret = new Object;
|
|
4033
|
+
return ret;
|
|
4034
|
+
};
|
|
4035
|
+
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
4036
|
+
const ret = new Uint8Array(arg0);
|
|
4037
|
+
return ret;
|
|
4038
|
+
};
|
|
4039
|
+
imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
4040
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
4041
|
+
return ret;
|
|
4042
|
+
};
|
|
4043
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
|
|
4044
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
4045
|
+
return ret;
|
|
4046
|
+
};
|
|
4047
|
+
imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
|
|
4048
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
4049
|
+
return ret;
|
|
4050
|
+
};
|
|
4051
|
+
imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
|
|
4052
|
+
const ret = arg0.next;
|
|
4053
|
+
return ret;
|
|
4054
|
+
};
|
|
4055
|
+
imports.wbg.__wbg_next_6574e1a8a62d1055 = function() {
|
|
4056
|
+
return handleError(function(arg0) {
|
|
4057
|
+
const ret = arg0.next();
|
|
4058
|
+
return ret;
|
|
4059
|
+
}, arguments);
|
|
4060
|
+
};
|
|
4061
|
+
imports.wbg.__wbg_node_e1f24f89a7336c2e = function(arg0) {
|
|
4062
|
+
const ret = arg0.node;
|
|
4063
|
+
return ret;
|
|
4064
|
+
};
|
|
4065
|
+
imports.wbg.__wbg_process_3975fd6c72f520aa = function(arg0) {
|
|
4066
|
+
const ret = arg0.process;
|
|
4067
|
+
return ret;
|
|
4068
|
+
};
|
|
4069
|
+
imports.wbg.__wbg_randomFillSync_f8c153b79f285817 = function() {
|
|
4070
|
+
return handleError(function(arg0, arg1) {
|
|
4071
|
+
arg0.randomFillSync(arg1);
|
|
4072
|
+
}, arguments);
|
|
4073
|
+
};
|
|
4074
|
+
imports.wbg.__wbg_require_b74f47fc2d022fd6 = function() {
|
|
4075
|
+
return handleError(function() {
|
|
4076
|
+
const ret = module_router_ab_ed25519_yao_client.require;
|
|
4077
|
+
return ret;
|
|
4078
|
+
}, arguments);
|
|
4079
|
+
};
|
|
4080
|
+
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
4081
|
+
arg0[arg1] = arg2;
|
|
4082
|
+
};
|
|
4083
|
+
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
4084
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
4085
|
+
};
|
|
4086
|
+
imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() {
|
|
4087
|
+
return handleError(function(arg0, arg1, arg2) {
|
|
4088
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
4089
|
+
return ret;
|
|
4090
|
+
}, arguments);
|
|
4091
|
+
};
|
|
4092
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
4093
|
+
const ret = typeof global === "undefined" ? null : global;
|
|
4094
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
4095
|
+
};
|
|
4096
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
|
|
4097
|
+
const ret = typeof globalThis === "undefined" ? null : globalThis;
|
|
4098
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
4099
|
+
};
|
|
4100
|
+
imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
4101
|
+
const ret = typeof self === "undefined" ? null : self;
|
|
4102
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
4103
|
+
};
|
|
4104
|
+
imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
4105
|
+
const ret = typeof window === "undefined" ? null : window;
|
|
4106
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
4107
|
+
};
|
|
4108
|
+
imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
|
|
4109
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
4110
|
+
return ret;
|
|
4111
|
+
};
|
|
4112
|
+
imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
4113
|
+
const ret = arg0.value;
|
|
4114
|
+
return ret;
|
|
4115
|
+
};
|
|
4116
|
+
imports.wbg.__wbg_versions_4e31226f5e8dc909 = function(arg0) {
|
|
4117
|
+
const ret = arg0.versions;
|
|
4118
|
+
return ret;
|
|
4119
|
+
};
|
|
4120
|
+
imports.wbg.__wbindgen_as_number = function(arg0) {
|
|
4121
|
+
const ret = +arg0;
|
|
4122
|
+
return ret;
|
|
4123
|
+
};
|
|
4124
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
4125
|
+
const ret = arg0;
|
|
4126
|
+
return ret;
|
|
4127
|
+
};
|
|
4128
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
4129
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
4130
|
+
return ret;
|
|
4131
|
+
};
|
|
4132
|
+
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
4133
|
+
const v = arg1;
|
|
4134
|
+
const ret = typeof v === "bigint" ? v : undefined;
|
|
4135
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
4136
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
4137
|
+
};
|
|
4138
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
4139
|
+
const v = arg0;
|
|
4140
|
+
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
|
4141
|
+
return ret;
|
|
4142
|
+
};
|
|
4143
|
+
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
4144
|
+
const ret = debugString(arg1);
|
|
4145
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4146
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4147
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
4148
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
4149
|
+
};
|
|
4150
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
4151
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
4152
|
+
return ret;
|
|
4153
|
+
};
|
|
4154
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
4155
|
+
const ret = arg0 in arg1;
|
|
4156
|
+
return ret;
|
|
4157
|
+
};
|
|
4158
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
4159
|
+
const table = wasm.__wbindgen_export_4;
|
|
4160
|
+
const offset = table.grow(4);
|
|
4161
|
+
table.set(0, undefined);
|
|
4162
|
+
table.set(offset + 0, undefined);
|
|
4163
|
+
table.set(offset + 1, null);
|
|
4164
|
+
table.set(offset + 2, true);
|
|
4165
|
+
table.set(offset + 3, false);
|
|
4166
|
+
};
|
|
4167
|
+
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
4168
|
+
const ret = typeof arg0 === "bigint";
|
|
4169
|
+
return ret;
|
|
4170
|
+
};
|
|
4171
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
4172
|
+
const ret = typeof arg0 === "function";
|
|
4173
|
+
return ret;
|
|
4174
|
+
};
|
|
4175
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
4176
|
+
const val = arg0;
|
|
4177
|
+
const ret = typeof val === "object" && val !== null;
|
|
4178
|
+
return ret;
|
|
4179
|
+
};
|
|
4180
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
4181
|
+
const ret = typeof arg0 === "string";
|
|
4182
|
+
return ret;
|
|
4183
|
+
};
|
|
4184
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
4185
|
+
const ret = arg0 === undefined;
|
|
4186
|
+
return ret;
|
|
4187
|
+
};
|
|
4188
|
+
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
4189
|
+
const ret = arg0 === arg1;
|
|
4190
|
+
return ret;
|
|
4191
|
+
};
|
|
4192
|
+
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
4193
|
+
const ret = arg0 == arg1;
|
|
4194
|
+
return ret;
|
|
4195
|
+
};
|
|
4196
|
+
imports.wbg.__wbindgen_memory = function() {
|
|
4197
|
+
const ret = wasm.memory;
|
|
4198
|
+
return ret;
|
|
4199
|
+
};
|
|
4200
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
4201
|
+
const obj = arg1;
|
|
4202
|
+
const ret = typeof obj === "number" ? obj : undefined;
|
|
4203
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
4204
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
4205
|
+
};
|
|
4206
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
4207
|
+
const ret = arg0;
|
|
4208
|
+
return ret;
|
|
4209
|
+
};
|
|
4210
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
4211
|
+
const obj = arg1;
|
|
4212
|
+
const ret = typeof obj === "string" ? obj : undefined;
|
|
4213
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4214
|
+
var len1 = WASM_VECTOR_LEN;
|
|
4215
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
4216
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
4217
|
+
};
|
|
4218
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
4219
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
4220
|
+
return ret;
|
|
4221
|
+
};
|
|
4222
|
+
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
4223
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
4224
|
+
};
|
|
4225
|
+
return imports;
|
|
4226
|
+
}
|
|
4227
|
+
function __wbg_init_memory(imports, memory) {}
|
|
4228
|
+
function __wbg_finalize_init(instance, module) {
|
|
4229
|
+
wasm = instance.exports;
|
|
4230
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
4231
|
+
cachedDataViewMemory0 = null;
|
|
4232
|
+
cachedUint8ArrayMemory0 = null;
|
|
4233
|
+
wasm.__wbindgen_start();
|
|
4234
|
+
return wasm;
|
|
4730
4235
|
}
|
|
4731
4236
|
async function __wbg_init(module_or_path) {
|
|
4732
4237
|
if (wasm !== undefined)
|
|
4733
4238
|
return wasm;
|
|
4734
|
-
if (module_or_path !== undefined) {
|
|
4239
|
+
if (typeof module_or_path !== "undefined") {
|
|
4735
4240
|
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
4736
4241
|
({ module_or_path } = module_or_path);
|
|
4737
4242
|
} else {
|
|
4738
4243
|
console.warn("using deprecated parameters for the initialization function; pass a single object instead");
|
|
4739
4244
|
}
|
|
4740
4245
|
}
|
|
4741
|
-
if (module_or_path === undefined) {
|
|
4246
|
+
if (typeof module_or_path === "undefined") {
|
|
4742
4247
|
module_or_path = new URL("router_ab_ed25519_yao_client_bg.wasm", import.meta.url);
|
|
4743
4248
|
}
|
|
4744
4249
|
const imports = __wbg_get_imports();
|
|
4745
4250
|
if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
|
|
4746
4251
|
module_or_path = fetch(module_or_path);
|
|
4747
4252
|
}
|
|
4253
|
+
__wbg_init_memory(imports);
|
|
4748
4254
|
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
4749
4255
|
return __wbg_finalize_init(instance, module);
|
|
4750
4256
|
}
|
|
4257
|
+
var router_ab_ed25519_yao_client_default = __wbg_init;
|
|
4751
4258
|
|
|
4752
4259
|
// src/core/walletRuntimePaths/base.ts
|
|
4753
4260
|
var SEAMS_WALLET_SDK_BASE_KEY = "__SEAMS_WALLET_SDK_BASE__";
|
|
@@ -6232,7 +5739,7 @@ function wasmInitializer(initialize) {
|
|
|
6232
5739
|
return await initPromise;
|
|
6233
5740
|
};
|
|
6234
5741
|
}
|
|
6235
|
-
var initializeLaneRecipientWasm = wasmInitializer(() =>
|
|
5742
|
+
var initializeLaneRecipientWasm = wasmInitializer(() => router_ab_ed25519_yao_client_default({ module_or_path: laneRecipientWasmUrl }));
|
|
6236
5743
|
function requireKeySlot(handleId) {
|
|
6237
5744
|
const slot = keySlots.get(handleId);
|
|
6238
5745
|
if (!slot)
|