@dynamic-labs-wallet/browser 0.0.329 → 0.0.330

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.
@@ -76,3 +76,39 @@ export declare class BIP340InitKeygenResult {
76
76
  keygenSecret: string;
77
77
  constructor(keygenId: string, keygenSecret: string);
78
78
  }
79
+ export type EdBls12377FieldElement = Uint8Array;
80
+ export type EdBls12377GroupElement = Uint8Array;
81
+ export interface EdBls12377SimpleRequestInput {
82
+ type: 'constant' | 'public' | 'private' | 'external_record';
83
+ index: EdBls12377FieldElement;
84
+ fields: EdBls12377FieldElement[];
85
+ }
86
+ export interface EdBls12377RecordRequestInput {
87
+ type: 'record';
88
+ h: EdBls12377GroupElement;
89
+ tag: EdBls12377FieldElement;
90
+ }
91
+ export type EdBls12377RequestInput = EdBls12377SimpleRequestInput | EdBls12377RecordRequestInput;
92
+ export interface EdBls12377RequestSignPayload {
93
+ function_id: EdBls12377FieldElement;
94
+ is_root: boolean;
95
+ program_checksum: EdBls12377FieldElement | null;
96
+ inputs: EdBls12377RequestInput[];
97
+ }
98
+ export interface EdBls12377SignedRequest {
99
+ signer: Uint8Array;
100
+ signature: Uint8Array;
101
+ tvk: EdBls12377FieldElement;
102
+ gammas: EdBls12377GroupElement[];
103
+ }
104
+ export declare class EdBls12377KeygenResult {
105
+ computeKey: string;
106
+ address: string;
107
+ secretShare: string;
108
+ constructor(computeKey: string, address: string, secretShare: string);
109
+ }
110
+ export declare class EdBls12377InitKeygenResult {
111
+ keygenId: string;
112
+ keygenSecret: string;
113
+ constructor(keygenId: string, keygenSecret: string);
114
+ }
@@ -1 +1 @@
1
- import*as utils_1 from"@noble/hashes/utils";import*as sha3_1 from"@noble/hashes/sha3";import*as sha256_1 from"@noble/hashes/sha256";class MessageHash{constructor(bytes){if(this.bytes=new Uint8Array,"string"==typeof bytes){if(bytes.length!==2*MessageHash.LENGTH)throw new Error("Invalid length for MessageHash: "+bytes.length);this.bytes=(0,utils_1.hexToBytes)(bytes)}else{if(bytes.length!==MessageHash.LENGTH)throw new Error("Invalid length for MessageHash: "+bytes.length);this.bytes=bytes}}static sha256(message){return new MessageHash((0,sha256_1.sha256)(message))}static sha256d(message){return new MessageHash((0,sha256_1.sha256)((0,sha256_1.sha256)(message)))}static keccak256(message){return new MessageHash((0,sha3_1.keccak_256)(message))}toHex(){return(0,utils_1.bytesToHex)(this.bytes)}}MessageHash.LENGTH=32;class EcdsaPublicKey{constructor(pubkey){if("string"==typeof pubkey&&(pubkey=(0,utils_1.hexToBytes)(pubkey)),pubkey.length===EcdsaPublicKey.LENGTH+1)this.pubkey=pubkey.slice(1);else{if(pubkey.length!==EcdsaPublicKey.LENGTH)throw new RangeError(`Invalid ${this.constructor.name} length, expected: ${EcdsaPublicKey.LENGTH} bytes, found: `+pubkey.length);this.pubkey=pubkey}}serializeUncompressed(){return new Uint8Array([4,...this.pubkey])}serializeCompressed(){const isOdd=1&this.pubkey[63];return new Uint8Array([2+isOdd,...this.pubkey.slice(0,32)])}pubKeyAsHex(){return(0,utils_1.bytesToHex)(this.serializeUncompressed())}}EcdsaPublicKey.LENGTH=64;class EcdsaKeygenResult{constructor(pubkey,secretShare){this.pubkey=pubkey,this.secretShare=secretShare}}class EcdsaInitKeygenResult{constructor(keygenId,keygenSecret){this.keygenId=keygenId,this.keygenSecret=keygenSecret}}class Ed25519KeygenResult{constructor(pubkey,secretShare){this.pubkey=pubkey,this.secretShare=secretShare}}class Ed25519InitKeygenResult{constructor(keygenId,keygenSecret){this.keygenId=keygenId,this.keygenSecret=keygenSecret}}class Sr25519KeygenResult{constructor(pubkey,secretShare){this.pubkey=pubkey,this.secretShare=secretShare}}class ExportableEd25519KeygenResult{constructor(pubkey,secretShare){this.pubkey=pubkey,this.secretShare=secretShare}}class ExportableEd25519InitKeygenResult{constructor(keygenId,keygenSecret){this.keygenId=keygenId,this.keygenSecret=keygenSecret}}class Sr25519InitKeygenResult{constructor(keygenId,keygenSecret){this.keygenId=keygenId,this.keygenSecret=keygenSecret}}class EcdsaSignature{static fromBuffer(expandedSignature){"string"==typeof expandedSignature&&(expandedSignature=(0,utils_1.hexToBytes)(expandedSignature));const maxSize=2*EcdsaSignature.FIELD_SIZE+EcdsaSignature.MAX_DER_LEN+1,minSize=2*EcdsaSignature.FIELD_SIZE+EcdsaSignature.MIN_DER_LEN+1;if(expandedSignature.length<minSize||expandedSignature.length>maxSize)throw new RangeError(`Invalid ${this.constructor.name} length, expected between ${minSize}..${maxSize} bytes, found: `+expandedSignature.length);const r=expandedSignature.subarray(0,EcdsaSignature.FIELD_SIZE),s=expandedSignature.subarray(EcdsaSignature.FIELD_SIZE,2*EcdsaSignature.FIELD_SIZE),v=expandedSignature[2*EcdsaSignature.FIELD_SIZE],der=expandedSignature.subarray(2*EcdsaSignature.FIELD_SIZE+1);return new EcdsaSignature(r,s,v,der)}constructor(r,s,v,DERencoding){if(s.length!==EcdsaSignature.FIELD_SIZE)throw new RangeError(`Invalid 's' length, expected: ${EcdsaSignature.FIELD_SIZE} found: `+s.length);if(r.length!==EcdsaSignature.FIELD_SIZE)throw new RangeError(`Invalid 'r' length, expected: ${EcdsaSignature.FIELD_SIZE} found: `+r.length);if(!Number.isInteger(v)||v<27||30<v)throw new RangeError("Invalid 'v' value, expected 27/28/29/30 found: "+v);if(DERencoding.length<EcdsaSignature.MIN_DER_LEN||DERencoding.length>EcdsaSignature.MAX_DER_LEN)throw new RangeError(`Invalid DER encoding, expected length: ${EcdsaSignature.MIN_DER_LEN}..${EcdsaSignature.MAX_DER_LEN} found: `+DERencoding.length);this.r=r,this.s=s,this.v=v,this.der=DERencoding}}EcdsaSignature.FIELD_SIZE=32,EcdsaSignature.MAX_DER_LEN=72,EcdsaSignature.MIN_DER_LEN=8;class BIP340KeygenResult{constructor(pubkey,secretShare){this.pubkey=pubkey,this.secretShare=secretShare}}class BIP340InitKeygenResult{constructor(keygenId,keygenSecret){this.keygenId=keygenId,this.keygenSecret=keygenSecret}}export{MessageHash,EcdsaPublicKey,EcdsaKeygenResult,EcdsaInitKeygenResult,Ed25519KeygenResult,Ed25519InitKeygenResult,Sr25519KeygenResult,ExportableEd25519KeygenResult,ExportableEd25519InitKeygenResult,Sr25519InitKeygenResult,EcdsaSignature,BIP340KeygenResult,BIP340InitKeygenResult};
1
+ import*as utils_1 from"@noble/hashes/utils";import*as sha3_1 from"@noble/hashes/sha3";import*as sha256_1 from"@noble/hashes/sha256";class MessageHash{constructor(bytes){if(this.bytes=new Uint8Array,"string"==typeof bytes){if(bytes.length!==2*MessageHash.LENGTH)throw new Error("Invalid length for MessageHash: "+bytes.length);this.bytes=(0,utils_1.hexToBytes)(bytes)}else{if(bytes.length!==MessageHash.LENGTH)throw new Error("Invalid length for MessageHash: "+bytes.length);this.bytes=bytes}}static sha256(message){return new MessageHash((0,sha256_1.sha256)(message))}static sha256d(message){return new MessageHash((0,sha256_1.sha256)((0,sha256_1.sha256)(message)))}static keccak256(message){return new MessageHash((0,sha3_1.keccak_256)(message))}toHex(){return(0,utils_1.bytesToHex)(this.bytes)}}MessageHash.LENGTH=32;class EcdsaPublicKey{constructor(pubkey){if("string"==typeof pubkey&&(pubkey=(0,utils_1.hexToBytes)(pubkey)),pubkey.length===EcdsaPublicKey.LENGTH+1)this.pubkey=pubkey.slice(1);else{if(pubkey.length!==EcdsaPublicKey.LENGTH)throw new RangeError(`Invalid ${this.constructor.name} length, expected: ${EcdsaPublicKey.LENGTH} bytes, found: `+pubkey.length);this.pubkey=pubkey}}serializeUncompressed(){return new Uint8Array([4,...this.pubkey])}serializeCompressed(){const isOdd=1&this.pubkey[63];return new Uint8Array([2+isOdd,...this.pubkey.slice(0,32)])}pubKeyAsHex(){return(0,utils_1.bytesToHex)(this.serializeUncompressed())}}EcdsaPublicKey.LENGTH=64;class EcdsaKeygenResult{constructor(pubkey,secretShare){this.pubkey=pubkey,this.secretShare=secretShare}}class EcdsaInitKeygenResult{constructor(keygenId,keygenSecret){this.keygenId=keygenId,this.keygenSecret=keygenSecret}}class Ed25519KeygenResult{constructor(pubkey,secretShare){this.pubkey=pubkey,this.secretShare=secretShare}}class Ed25519InitKeygenResult{constructor(keygenId,keygenSecret){this.keygenId=keygenId,this.keygenSecret=keygenSecret}}class Sr25519KeygenResult{constructor(pubkey,secretShare){this.pubkey=pubkey,this.secretShare=secretShare}}class ExportableEd25519KeygenResult{constructor(pubkey,secretShare){this.pubkey=pubkey,this.secretShare=secretShare}}class ExportableEd25519InitKeygenResult{constructor(keygenId,keygenSecret){this.keygenId=keygenId,this.keygenSecret=keygenSecret}}class Sr25519InitKeygenResult{constructor(keygenId,keygenSecret){this.keygenId=keygenId,this.keygenSecret=keygenSecret}}class EcdsaSignature{static fromBuffer(expandedSignature){"string"==typeof expandedSignature&&(expandedSignature=(0,utils_1.hexToBytes)(expandedSignature));const maxSize=2*EcdsaSignature.FIELD_SIZE+EcdsaSignature.MAX_DER_LEN+1,minSize=2*EcdsaSignature.FIELD_SIZE+EcdsaSignature.MIN_DER_LEN+1;if(expandedSignature.length<minSize||expandedSignature.length>maxSize)throw new RangeError(`Invalid ${this.constructor.name} length, expected between ${minSize}..${maxSize} bytes, found: `+expandedSignature.length);const r=expandedSignature.subarray(0,EcdsaSignature.FIELD_SIZE),s=expandedSignature.subarray(EcdsaSignature.FIELD_SIZE,2*EcdsaSignature.FIELD_SIZE),v=expandedSignature[2*EcdsaSignature.FIELD_SIZE],der=expandedSignature.subarray(2*EcdsaSignature.FIELD_SIZE+1);return new EcdsaSignature(r,s,v,der)}constructor(r,s,v,DERencoding){if(s.length!==EcdsaSignature.FIELD_SIZE)throw new RangeError(`Invalid 's' length, expected: ${EcdsaSignature.FIELD_SIZE} found: `+s.length);if(r.length!==EcdsaSignature.FIELD_SIZE)throw new RangeError(`Invalid 'r' length, expected: ${EcdsaSignature.FIELD_SIZE} found: `+r.length);if(!Number.isInteger(v)||v<27||30<v)throw new RangeError("Invalid 'v' value, expected 27/28/29/30 found: "+v);if(DERencoding.length<EcdsaSignature.MIN_DER_LEN||DERencoding.length>EcdsaSignature.MAX_DER_LEN)throw new RangeError(`Invalid DER encoding, expected length: ${EcdsaSignature.MIN_DER_LEN}..${EcdsaSignature.MAX_DER_LEN} found: `+DERencoding.length);this.r=r,this.s=s,this.v=v,this.der=DERencoding}}EcdsaSignature.FIELD_SIZE=32,EcdsaSignature.MAX_DER_LEN=72,EcdsaSignature.MIN_DER_LEN=8;class BIP340KeygenResult{constructor(pubkey,secretShare){this.pubkey=pubkey,this.secretShare=secretShare}}class BIP340InitKeygenResult{constructor(keygenId,keygenSecret){this.keygenId=keygenId,this.keygenSecret=keygenSecret}}class EdBls12377KeygenResult{constructor(computeKey,address,secretShare){this.computeKey=computeKey,this.address=address,this.secretShare=secretShare}}class EdBls12377InitKeygenResult{constructor(keygenId,keygenSecret){this.keygenId=keygenId,this.keygenSecret=keygenSecret}}export{MessageHash,EcdsaPublicKey,EcdsaKeygenResult,EcdsaInitKeygenResult,Ed25519KeygenResult,Ed25519InitKeygenResult,Sr25519KeygenResult,ExportableEd25519KeygenResult,ExportableEd25519InitKeygenResult,Sr25519InitKeygenResult,EcdsaSignature,BIP340KeygenResult,BIP340InitKeygenResult,EdBls12377KeygenResult,EdBls12377InitKeygenResult};
@@ -1,74 +1,95 @@
1
- export function ecdsaKeygen(room_uuid: string, host_addr: string, num_parties: number, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
2
- export function ecdsaSign(room_uuid: string, host_addr: string, secret_share: string, msg_hex: string, derivation_path: Uint32Array): Promise<string>;
3
- export function ecdsaRefresh(room_uuid: string, host_addr: string, secret_share: string): Promise<KeygenResult>;
4
- export function ecdsaReshareNewParty(room_uuid: string, host_addr: string, _old_threshold: number, new_threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
5
- export function ecdsaReshareRemainingParty(room_uuid: string, host_addr: string, new_threshold: number, secret_share: string, keygen_ids: string[]): Promise<KeygenResult>;
6
- export function ecdsaDerivePubkey(secret_share: string, derivation_path: Uint32Array): Promise<string>;
7
- export function ecdsaGetXpub(secret_share: string): Promise<string>;
8
- export function ecdsaDerivePubkeyFromXpub(xpub: string, derivation_path: Uint32Array): Promise<string>;
9
- export function ecdsaGetExportID(secret_share: string): Promise<string>;
10
- export function ecdsaExportFullPrivateKey(room_uuid: string, host_addr: string, secret_share: string, export_to: string): Promise<string | undefined>;
11
- export function ecdsaOfflineExportFullPrivateKey(secret_shares: string[]): Promise<string>;
12
- export function ecdsaDerivePrivateKeyFromXpriv(xpriv: string, derivation_path: Uint32Array): Promise<string>;
13
- export function ecdsaImportPrivateKeyRecipient(room_uuid: string, host_addr: string, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
14
- export function ecdsaImportPrivateKeyImporter(room_uuid: string, host_addr: string, threshold: number, private_key_hex: string, keygen_secret: string, keygen_ids: string[], chaincode_hex: string): Promise<KeygenResult>;
15
- export function bip340Keygen(room_uuid: string, host_addr: string, num_parties: number, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
16
- export function bip340Sign(room_uuid: string, host_addr: string, secret_share: string, msg_hex: string, derivation_path: Uint32Array, opt_tweak: string): Promise<string>;
17
- export function bip340Refresh(room_uuid: string, host_addr: string, secret_share: string): Promise<KeygenResult>;
18
- export function bip340ReshareNewParty(room_uuid: string, host_addr: string, _old_threshold: number, new_threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
19
- export function bip340ReshareRemainingParty(room_uuid: string, host_addr: string, new_threshold: number, secret_share: string, keygen_ids: string[]): Promise<KeygenResult>;
1
+ export function bip340DerivePrivateKeyFromXpriv(xpriv: string, derivation_path: Uint32Array): Promise<string>;
20
2
  export function bip340DeriveTweakPubkey(secret_share: string, derivation_path: Uint32Array, opt_tweak: string): Promise<string>;
21
- export function bip340GetXpub(secret_share: string): Promise<string>;
22
3
  export function bip340DeriveTweakPubkeyFromXpub(xpub: string, derivation_path: Uint32Array, opt_tweak: string): Promise<string>;
23
- export function bip340GetExportID(secret_share: string): Promise<string>;
24
4
  export function bip340ExportFullPrivateKey(room_uuid: string, host_addr: string, secret_share: string, export_to: string): Promise<string | undefined>;
25
- export function bip340OfflineExportFullPrivateKey(secret_shares: string[]): Promise<string>;
26
- export function bip340DerivePrivateKeyFromXpriv(xpriv: string, derivation_path: Uint32Array): Promise<string>;
27
- export function bip340ImportPrivateKeyRecipient(room_uuid: string, host_addr: string, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
5
+ export function bip340GetExportID(secret_share: string): Promise<string>;
6
+ export function bip340GetXpub(secret_share: string): Promise<string>;
28
7
  export function bip340ImportPrivateKeyImporter(room_uuid: string, host_addr: string, threshold: number, private_key_hex: string, keygen_secret: string, keygen_ids: string[], chaincode_hex: string): Promise<KeygenResult>;
29
- export function sr25519Keygen(room_uuid: string, host_addr: string, num_parties: number, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
30
- export function sr25519Sign(room_uuid: string, host_addr: string, secret_share: string, msg_hex: string, derivation_path: string[]): Promise<string>;
31
- export function sr25519Refresh(room_uuid: string, host_addr: string, secret_share: string): Promise<KeygenResult>;
32
- export function sr25519ReshareNewParty(room_uuid: string, host_addr: string, _old_threshold: number, new_threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
33
- export function sr25519ReshareRemainingParty(room_uuid: string, host_addr: string, new_threshold: number, secret_share: string, keygen_ids: string[]): Promise<KeygenResult>;
34
- export function sr25519DerivePubkey(secret_share: string, derivation_path: string[]): Promise<string>;
35
- export function sr25519GetPubkey(secret_share: string): Promise<string>;
36
- export function sr25519DerivePubkeyFromPubkey(pubkey: string, derivation_path: string[]): Promise<string>;
37
- export function sr25519GetExportID(secret_share: string): Promise<string>;
38
- export function sr25519ExportFullPrivateKey(room_uuid: string, host_addr: string, secret_share: string, export_to: string): Promise<string | undefined>;
39
- export function sr25519OfflineExportFullPrivateKey(secret_shares: string[]): Promise<string>;
40
- export function sr25519DerivePrivateKeyFromPrivateKey(private_key: string, derivation_path: string[], is_private_key_raw: boolean): Promise<string>;
41
- export function sr25519ImportPrivateKeyRecipient(room_uuid: string, host_addr: string, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
42
- export function sr25519ImportPrivateKeyImporter(room_uuid: string, host_addr: string, threshold: number, private_key_hex: string, keygen_secret: string, keygen_ids: string[], is_private_key_raw: boolean): Promise<KeygenResult>;
8
+ export function bip340ImportPrivateKeyRecipient(room_uuid: string, host_addr: string, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
9
+ export function bip340Keygen(room_uuid: string, host_addr: string, num_parties: number, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
10
+ export function bip340OfflineExportFullPrivateKey(secret_shares: string[]): Promise<string>;
11
+ export function bip340Refresh(room_uuid: string, host_addr: string, secret_share: string): Promise<KeygenResult>;
12
+ export function bip340ReshareNewParty(room_uuid: string, host_addr: string, _old_threshold: number, new_threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
13
+ export function bip340ReshareRemainingParty(room_uuid: string, host_addr: string, new_threshold: number, secret_share: string, keygen_ids: string[]): Promise<KeygenResult>;
14
+ export function bip340Sign(room_uuid: string, host_addr: string, secret_share: string, msg_hex: string, derivation_path: Uint32Array, opt_tweak: string): Promise<string>;
43
15
  export function createRoom(host_addr: string, num_parties: number, api_token: string): Promise<string>;
44
- export function initKeygen(): Promise<KeygenInit>;
45
- export function start(): void;
46
- export function ed25519Keygen(room_uuid: string, host_addr: string, num_parties: number, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
47
- export function ed25519Sign(room_uuid: string, host_addr: string, secret_share: string, msg_hex: string, derivation_path: Uint32Array): Promise<string>;
48
- export function ed25519Refresh(room_uuid: string, host_addr: string, secret_share: string): Promise<KeygenResult>;
49
- export function ed25519ReshareNewParty(room_uuid: string, host_addr: string, _old_threshold: number, new_threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
50
- export function ed25519ReshareRemainingParty(room_uuid: string, host_addr: string, new_threshold: number, secret_share: string, keygen_ids: string[]): Promise<KeygenResult>;
16
+ export function ecdsaDerivePrivateKeyFromXpriv(xpriv: string, derivation_path: Uint32Array): Promise<string>;
17
+ export function ecdsaDerivePubkey(secret_share: string, derivation_path: Uint32Array): Promise<string>;
18
+ export function ecdsaDerivePubkeyFromXpub(xpub: string, derivation_path: Uint32Array): Promise<string>;
19
+ export function ecdsaExportFullPrivateKey(room_uuid: string, host_addr: string, secret_share: string, export_to: string): Promise<string | undefined>;
20
+ export function ecdsaGetExportID(secret_share: string): Promise<string>;
21
+ export function ecdsaGetXpub(secret_share: string): Promise<string>;
22
+ export function ecdsaImportPrivateKeyImporter(room_uuid: string, host_addr: string, threshold: number, private_key_hex: string, keygen_secret: string, keygen_ids: string[], chaincode_hex: string): Promise<KeygenResult>;
23
+ export function ecdsaImportPrivateKeyRecipient(room_uuid: string, host_addr: string, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
24
+ export function ecdsaKeygen(room_uuid: string, host_addr: string, num_parties: number, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
25
+ export function ecdsaOfflineExportFullPrivateKey(secret_shares: string[]): Promise<string>;
26
+ export function ecdsaRefresh(room_uuid: string, host_addr: string, secret_share: string): Promise<KeygenResult>;
27
+ export function ecdsaReshareNewParty(room_uuid: string, host_addr: string, _old_threshold: number, new_threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
28
+ export function ecdsaReshareRemainingParty(room_uuid: string, host_addr: string, new_threshold: number, secret_share: string, keygen_ids: string[]): Promise<KeygenResult>;
29
+ export function ecdsaSign(room_uuid: string, host_addr: string, secret_share: string, msg_hex: string, derivation_path: Uint32Array): Promise<string>;
30
+ export function ed25519DerivePrivateKeyFromSpriv(spriv: string, derivation_path: Uint32Array): Promise<string>;
51
31
  export function ed25519DerivePubkey(secret_share: string, derivation_path: Uint32Array): Promise<string>;
52
- export function ed25519GetSpub(secret_share: string): Promise<string>;
53
32
  export function ed25519DerivePubkeyFromSpub(spub: string, derivation_path: Uint32Array): Promise<string>;
54
- export function ed25519GetExportID(secret_share: string): Promise<string>;
55
33
  export function ed25519ExportFullPrivateKey(room_uuid: string, host_addr: string, secret_share: string, export_to: string): Promise<string | undefined>;
56
- export function ed25519OfflineExportFullPrivateKey(secret_shares: string[]): Promise<string>;
57
- export function ed25519DerivePrivateKeyFromSpriv(spriv: string, derivation_path: Uint32Array): Promise<string>;
58
- export function ed25519ImportPrivateKeyRecipient(room_uuid: string, host_addr: string, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
34
+ export function ed25519GetExportID(secret_share: string): Promise<string>;
35
+ export function ed25519GetSpub(secret_share: string): Promise<string>;
59
36
  export function ed25519ImportPrivateKeyImporter(room_uuid: string, host_addr: string, threshold: number, private_key_hex: string, keygen_secret: string, keygen_ids: string[], is_private_key_raw: boolean): Promise<KeygenResult>;
60
- export function exportableEd25519SampleKey(room_uuid: string, host_addr: string, num_parties: number, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
37
+ export function ed25519ImportPrivateKeyRecipient(room_uuid: string, host_addr: string, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
38
+ export function ed25519Keygen(room_uuid: string, host_addr: string, num_parties: number, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
39
+ export function ed25519OfflineExportFullPrivateKey(secret_shares: string[]): Promise<string>;
40
+ export function ed25519Refresh(room_uuid: string, host_addr: string, secret_share: string): Promise<KeygenResult>;
41
+ export function ed25519ReshareNewParty(room_uuid: string, host_addr: string, _old_threshold: number, new_threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
42
+ export function ed25519ReshareRemainingParty(room_uuid: string, host_addr: string, new_threshold: number, secret_share: string, keygen_ids: string[]): Promise<KeygenResult>;
43
+ export function ed25519Sign(room_uuid: string, host_addr: string, secret_share: string, msg_hex: string, derivation_path: Uint32Array): Promise<string>;
44
+ export function edBls12377ExportFullPrivateKey(room_uuid: string, host_addr: string, secret_share: string, export_to: string): Promise<string | undefined>;
45
+ export function edBls12377ExportViewKey(room_uuid: string, host_addr: string, secret_share: string, export_to: string): Promise<string | undefined>;
46
+ export function edBls12377GetExportID(secret_share: string): Promise<string>;
47
+ export function edBls12377ImportPrivateKeyImporter(room_uuid: string, host_addr: string, threshold: number, private_key_hex: string, keygen_secret: string, keygen_ids: string[], is_private_key_raw: boolean): Promise<EdBls12377KeygenResult>;
48
+ export function edBls12377ImportPrivateKeyRecipient(room_uuid: string, host_addr: string, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<EdBls12377KeygenResult>;
49
+ export function edBls12377Keygen(room_uuid: string, host_addr: string, num_parties: number, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<EdBls12377KeygenResult>;
50
+ export function edBls12377OfflineExportFullPrivateKey(secret_shares: string[]): Promise<string>;
51
+ export function edBls12377OfflineExportViewKey(secret_shares: string[]): Promise<string>;
52
+ export function edBls12377Refresh(room_uuid: string, host_addr: string, secret_share: string): Promise<EdBls12377KeygenResult>;
53
+ export function edBls12377ReshareNewParty(room_uuid: string, host_addr: string, _old_threshold: number, new_threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<EdBls12377KeygenResult>;
54
+ export function edBls12377ReshareRemainingParty(room_uuid: string, host_addr: string, new_threshold: number, secret_share: string, keygen_ids: string[]): Promise<EdBls12377KeygenResult>;
55
+ export function edBls12377signRequest(room_uuid: string, host_addr: string, secret_share: string, request_payload_json: string): Promise<string>;
56
+ export function exportableEd25519ExportFullPrivateKey(room_uuid: string, host_addr: string, secret_share: string, export_to: string): Promise<string | undefined>;
57
+ export function exportableEd25519GetExportID(secret_share: string): Promise<string>;
58
+ export function exportableEd25519GetPubkey(secret_share: string): Promise<string>;
59
+ export function exportableEd25519ImportPrivateKeyImporter(room_uuid: string, host_addr: string, threshold: number, private_key_hex: string, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
60
+ export function exportableEd25519ImportPrivateKeyRecipient(room_uuid: string, host_addr: string, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
61
+ export function exportableEd25519OfflineExportFullPrivateKey(secret_shares: string[]): Promise<string>;
61
62
  export function exportableEd25519ReceiveKey(room_uuid: string, host_addr: string, num_parties: number, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
62
- export function exportableEd25519Sign(room_uuid: string, host_addr: string, secret_share: string, msg_hex: string): Promise<string>;
63
63
  export function exportableEd25519Refresh(room_uuid: string, host_addr: string, secret_share: string): Promise<KeygenResult>;
64
64
  export function exportableEd25519ReshareNewParty(room_uuid: string, host_addr: string, _old_threshold: number, new_threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
65
65
  export function exportableEd25519ReshareRemainingParty(room_uuid: string, host_addr: string, new_threshold: number, secret_share: string, keygen_ids: string[]): Promise<KeygenResult>;
66
- export function exportableEd25519GetPubkey(secret_share: string): Promise<string>;
67
- export function exportableEd25519GetExportID(secret_share: string): Promise<string>;
68
- export function exportableEd25519ExportFullPrivateKey(room_uuid: string, host_addr: string, secret_share: string, export_to: string): Promise<string | undefined>;
69
- export function exportableEd25519OfflineExportFullPrivateKey(secret_shares: string[]): Promise<string>;
70
- export function exportableEd25519ImportPrivateKeyRecipient(room_uuid: string, host_addr: string, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
71
- export function exportableEd25519ImportPrivateKeyImporter(room_uuid: string, host_addr: string, threshold: number, private_key_hex: string, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
66
+ export function exportableEd25519SampleKey(room_uuid: string, host_addr: string, num_parties: number, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
67
+ export function exportableEd25519Sign(room_uuid: string, host_addr: string, secret_share: string, msg_hex: string): Promise<string>;
68
+ export function initKeygen(): Promise<KeygenInit>;
69
+ export function sr25519DerivePrivateKeyFromPrivateKey(private_key: string, derivation_path: string[], is_private_key_raw: boolean): Promise<string>;
70
+ export function sr25519DerivePubkey(secret_share: string, derivation_path: string[]): Promise<string>;
71
+ export function sr25519DerivePubkeyFromPubkey(pubkey: string, derivation_path: string[]): Promise<string>;
72
+ export function sr25519ExportFullPrivateKey(room_uuid: string, host_addr: string, secret_share: string, export_to: string): Promise<string | undefined>;
73
+ export function sr25519GetExportID(secret_share: string): Promise<string>;
74
+ export function sr25519GetPubkey(secret_share: string): Promise<string>;
75
+ export function sr25519ImportPrivateKeyImporter(room_uuid: string, host_addr: string, threshold: number, private_key_hex: string, keygen_secret: string, keygen_ids: string[], is_private_key_raw: boolean): Promise<KeygenResult>;
76
+ export function sr25519ImportPrivateKeyRecipient(room_uuid: string, host_addr: string, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
77
+ export function sr25519Keygen(room_uuid: string, host_addr: string, num_parties: number, threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
78
+ export function sr25519OfflineExportFullPrivateKey(secret_shares: string[]): Promise<string>;
79
+ export function sr25519Refresh(room_uuid: string, host_addr: string, secret_share: string): Promise<KeygenResult>;
80
+ export function sr25519ReshareNewParty(room_uuid: string, host_addr: string, _old_threshold: number, new_threshold: number, keygen_secret: string, keygen_ids: string[]): Promise<KeygenResult>;
81
+ export function sr25519ReshareRemainingParty(room_uuid: string, host_addr: string, new_threshold: number, secret_share: string, keygen_ids: string[]): Promise<KeygenResult>;
82
+ export function sr25519Sign(room_uuid: string, host_addr: string, secret_share: string, msg_hex: string, derivation_path: string[]): Promise<string>;
83
+ export function start(): void;
84
+ export class EdBls12377KeygenResult {
85
+ static __wrap(ptr: any): any;
86
+ __destroy_into_raw(): number | undefined;
87
+ __wbg_ptr: number | undefined;
88
+ free(): void;
89
+ get address(): string;
90
+ get compute_key(): string;
91
+ get secret_share(): string;
92
+ }
72
93
  export class KeygenInit {
73
94
  static __wrap(ptr: any): any;
74
95
  constructor(keypair: string, pubkey: string);
@@ -83,9 +104,9 @@ export class KeygenResult {
83
104
  __destroy_into_raw(): number | undefined;
84
105
  __wbg_ptr: number | undefined;
85
106
  free(): void;
86
- get secret_share(): string;
87
107
  get pubkey(): string;
108
+ get secret_share(): string;
88
109
  }
89
- export default __wbg_init;
90
110
  export function initSync(module: any): any;
91
111
  declare function __wbg_init(module_or_path: any): Promise<any>;
112
+ export { __wbg_init as default };
@@ -1,2 +1,2 @@
1
- let wasm;const heap=new Array(128).fill(void 0);function getObject(idx){return heap[idx]}heap.push(void 0,null,!0,!1);const cachedTextDecoder="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&cachedTextDecoder.decode();let cachedUint8ArrayMemory0=null;function getUint8ArrayMemory0(){return null!==cachedUint8ArrayMemory0&&0!==cachedUint8ArrayMemory0.byteLength||(cachedUint8ArrayMemory0=new Uint8Array(wasm.memory.buffer)),cachedUint8ArrayMemory0}function getStringFromWasm0(ptr,len){return ptr>>>=0,cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr,ptr+len))}let heap_next=heap.length;function addHeapObject(obj){heap_next===heap.length&&heap.push(heap.length+1);const idx=heap_next;return heap_next=heap[idx],heap[idx]=obj,idx}function handleError(f,args){try{return f.apply(this,args)}catch(e){wasm.__wbindgen_export_0(addHeapObject(e))}}function dropObject(idx){idx<132||(heap[idx]=heap_next,heap_next=idx)}function takeObject(idx){const ret=getObject(idx);return dropObject(idx),ret}let WASM_VECTOR_LEN=0;const cachedTextEncoder="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},encodeString="function"==typeof cachedTextEncoder.encodeInto?function(arg,view){return cachedTextEncoder.encodeInto(arg,view)}:function(arg,view){const buf=cachedTextEncoder.encode(arg);return view.set(buf),{read:arg.length,written:buf.length}};function passStringToWasm0(arg,malloc,realloc){if(void 0===realloc){const buf=cachedTextEncoder.encode(arg),ptr=malloc(buf.length,1)>>>0;return getUint8ArrayMemory0().subarray(ptr,ptr+buf.length).set(buf),WASM_VECTOR_LEN=buf.length,ptr}let len=arg.length,ptr=malloc(len,1)>>>0;const mem=getUint8ArrayMemory0();let offset=0;for(;offset<len;offset++){const code=arg.charCodeAt(offset);if(127<code)break;mem[ptr+offset]=code}if(offset!==len){0!==offset&&(arg=arg.slice(offset)),ptr=realloc(ptr,len,len=offset+3*arg.length,1)>>>0;const view=getUint8ArrayMemory0().subarray(ptr+offset,ptr+len),ret=encodeString(arg,view);offset+=ret.written,ptr=realloc(ptr,len,offset,1)>>>0}return WASM_VECTOR_LEN=offset,ptr}let cachedDataViewMemory0=null;function getDataViewMemory0(){return(null===cachedDataViewMemory0||!0===cachedDataViewMemory0.buffer.detached||void 0===cachedDataViewMemory0.buffer.detached&&cachedDataViewMemory0.buffer!==wasm.memory.buffer)&&(cachedDataViewMemory0=new DataView(wasm.memory.buffer)),cachedDataViewMemory0}function getArrayU8FromWasm0(ptr,len){return ptr>>>=0,getUint8ArrayMemory0().subarray(+ptr,+ptr+len)}function isLikeNone(x){return null==x}const CLOSURE_DTORS="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(state=>{wasm.__wbindgen_export_3.get(state.dtor)(state.a,state.b)});function makeMutClosure(arg0,arg1,dtor,f){const state={a:arg0,b:arg1,cnt:1,dtor:dtor},real=(...args)=>{state.cnt++;const a=state.a;state.a=0;try{return f(a,state.b,...args)}finally{0==--state.cnt?(wasm.__wbindgen_export_3.get(state.dtor)(a,state.b),CLOSURE_DTORS.unregister(state)):state.a=a}};return real.original=state,CLOSURE_DTORS.register(real,state,state),real}function makeClosure(arg0,arg1,dtor,f){const state={a:arg0,b:arg1,cnt:1,dtor:dtor},real=(...args)=>{state.cnt++;try{return f(state.a,state.b,...args)}finally{0==--state.cnt&&(wasm.__wbindgen_export_3.get(state.dtor)(state.a,state.b),state.a=0,CLOSURE_DTORS.unregister(state))}};return real.original=state,CLOSURE_DTORS.register(real,state,state),real}function debugString(val){const type=typeof val;if("number"==type||"boolean"==type||null==val)return""+val;if("string"==type)return`"${val}"`;if("symbol"==type){const description=val.description;return null==description?"Symbol":`Symbol(${description})`}if("function"==type){const name=val.name;return"string"==typeof name&&0<name.length?`Function(${name})`:"Function"}if(Array.isArray(val)){const length=val.length;let debug="[";0<length&&(debug+=debugString(val[0]));for(let i=1;i<length;i++)debug+=", "+debugString(val[i]);return debug+="]",debug}const builtInMatches=/\[object ([^\]]+)\]/.exec(toString.call(val));let className;if(!(builtInMatches&&1<builtInMatches.length))return toString.call(val);if(className=builtInMatches[1],"Object"==className)try{return"Object("+JSON.stringify(val)+")"}catch(_){return"Object"}return val instanceof Error?`${val.name}: ${val.message}
2
- `+val.stack:className}function passArrayJsValueToWasm0(array,malloc){const ptr=malloc(4*array.length,4)>>>0,mem=getDataViewMemory0();for(let i=0;i<array.length;i++)mem.setUint32(ptr+4*i,addHeapObject(array[i]),!0);return WASM_VECTOR_LEN=array.length,ptr}function ecdsaKeygen(room_uuid,host_addr,num_parties,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.ecdsaKeygen(ptr0,len0,ptr1,len1,num_parties,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}let cachedUint32ArrayMemory0=null;function getUint32ArrayMemory0(){return null!==cachedUint32ArrayMemory0&&0!==cachedUint32ArrayMemory0.byteLength||(cachedUint32ArrayMemory0=new Uint32Array(wasm.memory.buffer)),cachedUint32ArrayMemory0}function passArray32ToWasm0(arg,malloc){const ptr=malloc(4*arg.length,4)>>>0;return getUint32ArrayMemory0().set(arg,ptr/4),WASM_VECTOR_LEN=arg.length,ptr}function ecdsaSign(room_uuid,host_addr,secret_share,msg_hex,derivation_path){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(msg_hex,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len3=WASM_VECTOR_LEN,ptr4=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export_1),len4=WASM_VECTOR_LEN,ret=wasm.ecdsaSign(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3,ptr4,len4);return takeObject(ret)}function ecdsaRefresh(room_uuid,host_addr,secret_share){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ret=wasm.ecdsaRefresh(ptr0,len0,ptr1,len1,ptr2,len2);return takeObject(ret)}function ecdsaReshareNewParty(room_uuid,host_addr,_old_threshold,new_threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.ecdsaReshareNewParty(ptr0,len0,ptr1,len1,_old_threshold,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function ecdsaReshareRemainingParty(room_uuid,host_addr,new_threshold,secret_share,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.ecdsaReshareRemainingParty(ptr0,len0,ptr1,len1,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function ecdsaDerivePubkey(secret_share,derivation_path){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export_1),len1=WASM_VECTOR_LEN,ret=wasm.ecdsaDerivePubkey(ptr0,len0,ptr1,len1);return takeObject(ret)}function ecdsaGetXpub(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ret=wasm.ecdsaGetXpub(ptr0,len0);return takeObject(ret)}function ecdsaDerivePubkeyFromXpub(xpub,derivation_path){const ptr0=passStringToWasm0(xpub,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export_1),len1=WASM_VECTOR_LEN,ret=wasm.ecdsaDerivePubkeyFromXpub(ptr0,len0,ptr1,len1);return takeObject(ret)}function ecdsaGetExportID(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ret=wasm.ecdsaGetExportID(ptr0,len0);return takeObject(ret)}function ecdsaExportFullPrivateKey(room_uuid,host_addr,secret_share,export_to){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(export_to,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len3=WASM_VECTOR_LEN,ret=wasm.ecdsaExportFullPrivateKey(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3);return takeObject(ret)}function ecdsaOfflineExportFullPrivateKey(secret_shares){const ptr0=passArrayJsValueToWasm0(secret_shares,wasm.__wbindgen_export_1),len0=WASM_VECTOR_LEN,ret=wasm.ecdsaOfflineExportFullPrivateKey(ptr0,len0);return takeObject(ret)}function ecdsaDerivePrivateKeyFromXpriv(xpriv,derivation_path){const ptr0=passStringToWasm0(xpriv,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export_1),len1=WASM_VECTOR_LEN,ret=wasm.ecdsaDerivePrivateKeyFromXpriv(ptr0,len0,ptr1,len1);return takeObject(ret)}function ecdsaImportPrivateKeyRecipient(room_uuid,host_addr,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.ecdsaImportPrivateKeyRecipient(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function ecdsaImportPrivateKeyImporter(room_uuid,host_addr,threshold,private_key_hex,keygen_secret,keygen_ids,chaincode_hex){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(private_key_hex,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len3=WASM_VECTOR_LEN,ptr4=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len4=WASM_VECTOR_LEN,ptr5=passStringToWasm0(chaincode_hex,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len5=WASM_VECTOR_LEN,ret=wasm.ecdsaImportPrivateKeyImporter(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3,ptr4,len4,ptr5,len5);return takeObject(ret)}function bip340Keygen(room_uuid,host_addr,num_parties,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.bip340Keygen(ptr0,len0,ptr1,len1,num_parties,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function bip340Sign(room_uuid,host_addr,secret_share,msg_hex,derivation_path,opt_tweak){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(msg_hex,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len3=WASM_VECTOR_LEN,ptr4=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export_1),len4=WASM_VECTOR_LEN,ptr5=passStringToWasm0(opt_tweak,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len5=WASM_VECTOR_LEN,ret=wasm.bip340Sign(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3,ptr4,len4,ptr5,len5);return takeObject(ret)}function bip340Refresh(room_uuid,host_addr,secret_share){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ret=wasm.bip340Refresh(ptr0,len0,ptr1,len1,ptr2,len2);return takeObject(ret)}function bip340ReshareNewParty(room_uuid,host_addr,_old_threshold,new_threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.bip340ReshareNewParty(ptr0,len0,ptr1,len1,_old_threshold,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function bip340ReshareRemainingParty(room_uuid,host_addr,new_threshold,secret_share,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.bip340ReshareRemainingParty(ptr0,len0,ptr1,len1,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function bip340DeriveTweakPubkey(secret_share,derivation_path,opt_tweak){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export_1),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(opt_tweak,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ret=wasm.bip340DeriveTweakPubkey(ptr0,len0,ptr1,len1,ptr2,len2);return takeObject(ret)}function bip340GetXpub(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ret=wasm.bip340GetXpub(ptr0,len0);return takeObject(ret)}function bip340DeriveTweakPubkeyFromXpub(xpub,derivation_path,opt_tweak){const ptr0=passStringToWasm0(xpub,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export_1),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(opt_tweak,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ret=wasm.bip340DeriveTweakPubkeyFromXpub(ptr0,len0,ptr1,len1,ptr2,len2);return takeObject(ret)}function bip340GetExportID(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ret=wasm.bip340GetExportID(ptr0,len0);return takeObject(ret)}function bip340ExportFullPrivateKey(room_uuid,host_addr,secret_share,export_to){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(export_to,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len3=WASM_VECTOR_LEN,ret=wasm.bip340ExportFullPrivateKey(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3);return takeObject(ret)}function bip340OfflineExportFullPrivateKey(secret_shares){const ptr0=passArrayJsValueToWasm0(secret_shares,wasm.__wbindgen_export_1),len0=WASM_VECTOR_LEN,ret=wasm.bip340OfflineExportFullPrivateKey(ptr0,len0);return takeObject(ret)}function bip340DerivePrivateKeyFromXpriv(xpriv,derivation_path){const ptr0=passStringToWasm0(xpriv,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export_1),len1=WASM_VECTOR_LEN,ret=wasm.bip340DerivePrivateKeyFromXpriv(ptr0,len0,ptr1,len1);return takeObject(ret)}function bip340ImportPrivateKeyRecipient(room_uuid,host_addr,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.bip340ImportPrivateKeyRecipient(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function bip340ImportPrivateKeyImporter(room_uuid,host_addr,threshold,private_key_hex,keygen_secret,keygen_ids,chaincode_hex){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(private_key_hex,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len3=WASM_VECTOR_LEN,ptr4=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len4=WASM_VECTOR_LEN,ptr5=passStringToWasm0(chaincode_hex,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len5=WASM_VECTOR_LEN,ret=wasm.bip340ImportPrivateKeyImporter(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3,ptr4,len4,ptr5,len5);return takeObject(ret)}function sr25519Keygen(room_uuid,host_addr,num_parties,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.sr25519Keygen(ptr0,len0,ptr1,len1,num_parties,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function sr25519Sign(room_uuid,host_addr,secret_share,msg_hex,derivation_path){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(msg_hex,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len3=WASM_VECTOR_LEN,ptr4=passArrayJsValueToWasm0(derivation_path,wasm.__wbindgen_export_1),len4=WASM_VECTOR_LEN,ret=wasm.sr25519Sign(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3,ptr4,len4);return takeObject(ret)}function sr25519Refresh(room_uuid,host_addr,secret_share){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ret=wasm.sr25519Refresh(ptr0,len0,ptr1,len1,ptr2,len2);return takeObject(ret)}function sr25519ReshareNewParty(room_uuid,host_addr,_old_threshold,new_threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.sr25519ReshareNewParty(ptr0,len0,ptr1,len1,_old_threshold,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function sr25519ReshareRemainingParty(room_uuid,host_addr,new_threshold,secret_share,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.sr25519ReshareRemainingParty(ptr0,len0,ptr1,len1,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function sr25519DerivePubkey(secret_share,derivation_path){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passArrayJsValueToWasm0(derivation_path,wasm.__wbindgen_export_1),len1=WASM_VECTOR_LEN,ret=wasm.sr25519DerivePubkey(ptr0,len0,ptr1,len1);return takeObject(ret)}function sr25519GetPubkey(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ret=wasm.sr25519GetPubkey(ptr0,len0);return takeObject(ret)}function sr25519DerivePubkeyFromPubkey(pubkey,derivation_path){const ptr0=passStringToWasm0(pubkey,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passArrayJsValueToWasm0(derivation_path,wasm.__wbindgen_export_1),len1=WASM_VECTOR_LEN,ret=wasm.sr25519DerivePubkeyFromPubkey(ptr0,len0,ptr1,len1);return takeObject(ret)}function sr25519GetExportID(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ret=wasm.sr25519GetExportID(ptr0,len0);return takeObject(ret)}function sr25519ExportFullPrivateKey(room_uuid,host_addr,secret_share,export_to){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(export_to,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len3=WASM_VECTOR_LEN,ret=wasm.sr25519ExportFullPrivateKey(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3);return takeObject(ret)}function sr25519OfflineExportFullPrivateKey(secret_shares){const ptr0=passArrayJsValueToWasm0(secret_shares,wasm.__wbindgen_export_1),len0=WASM_VECTOR_LEN,ret=wasm.sr25519OfflineExportFullPrivateKey(ptr0,len0);return takeObject(ret)}function sr25519DerivePrivateKeyFromPrivateKey(private_key,derivation_path,is_private_key_raw){const ptr0=passStringToWasm0(private_key,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passArrayJsValueToWasm0(derivation_path,wasm.__wbindgen_export_1),len1=WASM_VECTOR_LEN,ret=wasm.sr25519DerivePrivateKeyFromPrivateKey(ptr0,len0,ptr1,len1,is_private_key_raw);return takeObject(ret)}function sr25519ImportPrivateKeyRecipient(room_uuid,host_addr,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.sr25519ImportPrivateKeyRecipient(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function sr25519ImportPrivateKeyImporter(room_uuid,host_addr,threshold,private_key_hex,keygen_secret,keygen_ids,is_private_key_raw){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(private_key_hex,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len3=WASM_VECTOR_LEN,ptr4=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len4=WASM_VECTOR_LEN,ret=wasm.sr25519ImportPrivateKeyImporter(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3,ptr4,len4,is_private_key_raw);return takeObject(ret)}function createRoom(host_addr,num_parties,api_token){const ptr0=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(api_token,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ret=wasm.createRoom(ptr0,len0,num_parties,ptr1,len1);return takeObject(ret)}function initKeygen(){const ret=wasm.initKeygen();return takeObject(ret)}function start(){wasm.start()}function ed25519Keygen(room_uuid,host_addr,num_parties,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.ed25519Keygen(ptr0,len0,ptr1,len1,num_parties,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function ed25519Sign(room_uuid,host_addr,secret_share,msg_hex,derivation_path){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(msg_hex,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len3=WASM_VECTOR_LEN,ptr4=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export_1),len4=WASM_VECTOR_LEN,ret=wasm.ed25519Sign(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3,ptr4,len4);return takeObject(ret)}function ed25519Refresh(room_uuid,host_addr,secret_share){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ret=wasm.ed25519Refresh(ptr0,len0,ptr1,len1,ptr2,len2);return takeObject(ret)}function ed25519ReshareNewParty(room_uuid,host_addr,_old_threshold,new_threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.ed25519ReshareNewParty(ptr0,len0,ptr1,len1,_old_threshold,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function ed25519ReshareRemainingParty(room_uuid,host_addr,new_threshold,secret_share,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.ed25519ReshareRemainingParty(ptr0,len0,ptr1,len1,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function ed25519DerivePubkey(secret_share,derivation_path){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export_1),len1=WASM_VECTOR_LEN,ret=wasm.ed25519DerivePubkey(ptr0,len0,ptr1,len1);return takeObject(ret)}function ed25519GetSpub(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ret=wasm.ed25519GetSpub(ptr0,len0);return takeObject(ret)}function ed25519DerivePubkeyFromSpub(spub,derivation_path){const ptr0=passStringToWasm0(spub,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export_1),len1=WASM_VECTOR_LEN,ret=wasm.ed25519DerivePubkeyFromSpub(ptr0,len0,ptr1,len1);return takeObject(ret)}function ed25519GetExportID(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ret=wasm.ed25519GetExportID(ptr0,len0);return takeObject(ret)}function ed25519ExportFullPrivateKey(room_uuid,host_addr,secret_share,export_to){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(export_to,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len3=WASM_VECTOR_LEN,ret=wasm.ed25519ExportFullPrivateKey(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3);return takeObject(ret)}function ed25519OfflineExportFullPrivateKey(secret_shares){const ptr0=passArrayJsValueToWasm0(secret_shares,wasm.__wbindgen_export_1),len0=WASM_VECTOR_LEN,ret=wasm.ed25519OfflineExportFullPrivateKey(ptr0,len0);return takeObject(ret)}function ed25519DerivePrivateKeyFromSpriv(spriv,derivation_path){const ptr0=passStringToWasm0(spriv,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export_1),len1=WASM_VECTOR_LEN,ret=wasm.ed25519DerivePrivateKeyFromSpriv(ptr0,len0,ptr1,len1);return takeObject(ret)}function ed25519ImportPrivateKeyRecipient(room_uuid,host_addr,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.ed25519ImportPrivateKeyRecipient(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function ed25519ImportPrivateKeyImporter(room_uuid,host_addr,threshold,private_key_hex,keygen_secret,keygen_ids,is_private_key_raw){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(private_key_hex,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len3=WASM_VECTOR_LEN,ptr4=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len4=WASM_VECTOR_LEN,ret=wasm.ed25519ImportPrivateKeyImporter(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3,ptr4,len4,is_private_key_raw);return takeObject(ret)}function exportableEd25519SampleKey(room_uuid,host_addr,num_parties,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.exportableEd25519SampleKey(ptr0,len0,ptr1,len1,num_parties,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function exportableEd25519ReceiveKey(room_uuid,host_addr,num_parties,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.exportableEd25519ReceiveKey(ptr0,len0,ptr1,len1,num_parties,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function exportableEd25519Sign(room_uuid,host_addr,secret_share,msg_hex){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(msg_hex,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len3=WASM_VECTOR_LEN,ret=wasm.exportableEd25519Sign(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3);return takeObject(ret)}function exportableEd25519Refresh(room_uuid,host_addr,secret_share){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ret=wasm.exportableEd25519Refresh(ptr0,len0,ptr1,len1,ptr2,len2);return takeObject(ret)}function exportableEd25519ReshareNewParty(room_uuid,host_addr,_old_threshold,new_threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.exportableEd25519ReshareNewParty(ptr0,len0,ptr1,len1,_old_threshold,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function exportableEd25519ReshareRemainingParty(room_uuid,host_addr,new_threshold,secret_share,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.exportableEd25519ReshareRemainingParty(ptr0,len0,ptr1,len1,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function exportableEd25519GetPubkey(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ret=wasm.exportableEd25519GetPubkey(ptr0,len0);return takeObject(ret)}function exportableEd25519GetExportID(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ret=wasm.exportableEd25519GetExportID(ptr0,len0);return takeObject(ret)}function exportableEd25519ExportFullPrivateKey(room_uuid,host_addr,secret_share,export_to){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(export_to,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len3=WASM_VECTOR_LEN,ret=wasm.exportableEd25519ExportFullPrivateKey(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3);return takeObject(ret)}function exportableEd25519OfflineExportFullPrivateKey(secret_shares){const ptr0=passArrayJsValueToWasm0(secret_shares,wasm.__wbindgen_export_1),len0=WASM_VECTOR_LEN,ret=wasm.exportableEd25519OfflineExportFullPrivateKey(ptr0,len0);return takeObject(ret)}function exportableEd25519ImportPrivateKeyRecipient(room_uuid,host_addr,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len3=WASM_VECTOR_LEN,ret=wasm.exportableEd25519ImportPrivateKeyRecipient(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function exportableEd25519ImportPrivateKeyImporter(room_uuid,host_addr,threshold,private_key_hex,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(private_key_hex,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(keygen_secret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len3=WASM_VECTOR_LEN,ptr4=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export_1),len4=WASM_VECTOR_LEN,ret=wasm.exportableEd25519ImportPrivateKeyImporter(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3,ptr4,len4);return takeObject(ret)}function __wbg_adapter_28(arg0,arg1){wasm.__wbindgen_export_5(arg0,arg1)}function __wbg_adapter_35(arg0,arg1,arg2){wasm.__wbindgen_export_6(arg0,arg1,addHeapObject(arg2))}function __wbg_adapter_40(arg0,arg1,arg2){wasm.__wbindgen_export_7(arg0,arg1,addHeapObject(arg2))}function __wbg_adapter_91(arg0,arg1,arg2,arg3){wasm.__wbindgen_export_8(arg0,arg1,addHeapObject(arg2),addHeapObject(arg3))}const __wbindgen_enum_BinaryType=["blob","arraybuffer"],__wbindgen_enum_RequestCache=["default","no-store","reload","no-cache","force-cache","only-if-cached"],__wbindgen_enum_RequestCredentials=["omit","same-origin","include"],__wbindgen_enum_RequestMode=["same-origin","no-cors","cors","navigate"],KeygenInitFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_keygeninit_free(ptr>>>0,1));class KeygenInit{static __wrap(ptr){ptr>>>=0;const obj=Object.create(KeygenInit.prototype);return obj.__wbg_ptr=ptr,KeygenInitFinalization.register(obj,obj.__wbg_ptr,obj),obj}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,KeygenInitFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_keygeninit_free(ptr,0)}get keypair(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wbg_get_keygeninit_keypair(retptr,this.__wbg_ptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export_4(deferred1_0,deferred1_1,1)}}get pubkey(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wbg_get_keygeninit_pubkey(retptr,this.__wbg_ptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export_4(deferred1_0,deferred1_1,1)}}constructor(keypair,pubkey){const ptr0=passStringToWasm0(keypair,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(pubkey,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN,ret=wasm.keygeninit_new(ptr0,len0,ptr1,len1);return this.__wbg_ptr=ret>>>0,KeygenInitFinalization.register(this,this.__wbg_ptr,this),this}}const KeygenResultFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_keygenresult_free(ptr>>>0,1));class KeygenResult{static __wrap(ptr){ptr>>>=0;const obj=Object.create(KeygenResult.prototype);return obj.__wbg_ptr=ptr,KeygenResultFinalization.register(obj,obj.__wbg_ptr,obj),obj}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,KeygenResultFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_keygenresult_free(ptr,0)}get secret_share(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wbg_get_keygeninit_keypair(retptr,this.__wbg_ptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export_4(deferred1_0,deferred1_1,1)}}get pubkey(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wbg_get_keygeninit_pubkey(retptr,this.__wbg_ptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export_4(deferred1_0,deferred1_1,1)}}}async function __wbg_load(module,imports){if("function"==typeof Response&&module instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(module,imports)}catch(e){if("application/wasm"==module.headers.get("Content-Type"))throw e;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)}const bytes=await module.arrayBuffer();return WebAssembly.instantiate(bytes,imports)}{const instance=await WebAssembly.instantiate(module,imports);return instance instanceof WebAssembly.Instance?{instance:instance,module:module}:instance}}function __wbg_get_imports(){const imports={wbg:{}};return imports.wbg.__wbg_abort_410ec47a64ac6117=function(arg0,arg1){getObject(arg0).abort(getObject(arg1))},imports.wbg.__wbg_abort_775ef1d17fc65868=function(arg0){getObject(arg0).abort()},imports.wbg.__wbg_append_8c7dd8d641a5f01b=function(){return handleError(function(arg0,arg1,arg2,arg3,arg4){getObject(arg0).append(getStringFromWasm0(arg1,arg2),getStringFromWasm0(arg3,arg4))},arguments)},imports.wbg.__wbg_buffer_609cc3eee51ed158=function(arg0){const ret=getObject(arg0).buffer;return addHeapObject(ret)},imports.wbg.__wbg_call_672a4d21634d4a24=function(){return handleError(function(arg0,arg1){const ret=getObject(arg0).call(getObject(arg1));return addHeapObject(ret)},arguments)},imports.wbg.__wbg_call_7cccdd69e0791ae2=function(){return handleError(function(arg0,arg1,arg2){const ret=getObject(arg0).call(getObject(arg1),getObject(arg2));return addHeapObject(ret)},arguments)},imports.wbg.__wbg_clearTimeout_5a54f8841c30079a=function(arg0){const ret=clearTimeout(takeObject(arg0));return addHeapObject(ret)},imports.wbg.__wbg_clearTimeout_7a42b49784aea641=function(arg0){const ret=clearTimeout(takeObject(arg0));return addHeapObject(ret)},imports.wbg.__wbg_clearTimeout_96804de0ab838f26=function(arg0){const ret=clearTimeout(takeObject(arg0));return addHeapObject(ret)},imports.wbg.__wbg_close_2893b7d056a0627d=function(){return handleError(function(arg0){getObject(arg0).close()},arguments)},imports.wbg.__wbg_close_e1253d480ed93ce3=function(){return handleError(function(arg0,arg1,arg2,arg3){getObject(arg0).close(arg1,getStringFromWasm0(arg2,arg3))},arguments)},imports.wbg.__wbg_code_f4ec1e6e2e1b0417=function(arg0){const ret=getObject(arg0).code;return ret},imports.wbg.__wbg_crypto_574e78ad8b13b65f=function(arg0){const ret=getObject(arg0).crypto;return addHeapObject(ret)},imports.wbg.__wbg_data_432d9c3df2630942=function(arg0){const ret=getObject(arg0).data;return addHeapObject(ret)},imports.wbg.__wbg_done_769e5ede4b31c67b=function(arg0){const ret=getObject(arg0).done;return ret},imports.wbg.__wbg_fetch_509096533071c657=function(arg0,arg1){const ret=getObject(arg0).fetch(getObject(arg1));return addHeapObject(ret)},imports.wbg.__wbg_fetch_74a3e84ebd2c9a0e=function(arg0){const ret=fetch(getObject(arg0));return addHeapObject(ret)},imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e=function(){return handleError(function(arg0,arg1){getObject(arg0).getRandomValues(getObject(arg1))},arguments)},imports.wbg.__wbg_get_67b2ba62fc30de12=function(){return handleError(function(arg0,arg1){const ret=Reflect.get(getObject(arg0),getObject(arg1));return addHeapObject(ret)},arguments)},imports.wbg.__wbg_has_a5ea9117f258a0ec=function(){return handleError(function(arg0,arg1){const ret=Reflect.has(getObject(arg0),getObject(arg1));return ret},arguments)},imports.wbg.__wbg_headers_9cb51cfd2ac780a4=function(arg0){const ret=getObject(arg0).headers;return addHeapObject(ret)},imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc=function(arg0){let result;try{result=getObject(arg0)instanceof ArrayBuffer}catch(_){result=!1}const ret=result;return ret},imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644=function(arg0){let result;try{result=getObject(arg0)instanceof Response}catch(_){result=!1}const ret=result;return ret},imports.wbg.__wbg_iterator_9a24c88df860dc65=function(){const ret=Symbol.iterator;return addHeapObject(ret)},imports.wbg.__wbg_keygeninit_new=function(arg0){const ret=KeygenInit.__wrap(arg0);return addHeapObject(ret)},imports.wbg.__wbg_keygenresult_new=function(arg0){const ret=KeygenResult.__wrap(arg0);return addHeapObject(ret)},imports.wbg.__wbg_length_a446193dc22c12f8=function(arg0){const ret=getObject(arg0).length;return ret},imports.wbg.__wbg_message_d1685a448ba00178=function(arg0,arg1){const ret=getObject(arg1).message,ptr1=passStringToWasm0(ret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},imports.wbg.__wbg_msCrypto_a61aeb35a24c1329=function(arg0){const ret=getObject(arg0).msCrypto;return addHeapObject(ret)},imports.wbg.__wbg_new_018dcc2d6c8c2f6a=function(){return handleError(function(){const ret=new Headers;return addHeapObject(ret)},arguments)},imports.wbg.__wbg_new_23a2665fac83c611=function(arg0,arg1){try{var state0={a:arg0,b:arg1},cb0=(arg0,arg1)=>{const a=state0.a;state0.a=0;try{return __wbg_adapter_91(a,state0.b,arg0,arg1)}finally{state0.a=a}};const ret=new Promise(cb0);return addHeapObject(ret)}finally{state0.a=state0.b=0}},imports.wbg.__wbg_new_405e22f390576ce2=function(){const ret=new Object;return addHeapObject(ret)},imports.wbg.__wbg_new_92c54fc74574ef55=function(){return handleError(function(arg0,arg1){const ret=new WebSocket(getStringFromWasm0(arg0,arg1));return addHeapObject(ret)},arguments)},imports.wbg.__wbg_new_a12002a7f91c75be=function(arg0){const ret=new Uint8Array(getObject(arg0));return addHeapObject(ret)},imports.wbg.__wbg_new_e25e5aab09ff45db=function(){return handleError(function(){const ret=new AbortController;return addHeapObject(ret)},arguments)},imports.wbg.__wbg_newnoargs_105ed471475aaf50=function(arg0,arg1){const ret=new Function(getStringFromWasm0(arg0,arg1));return addHeapObject(ret)},imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(arg0,arg1,arg2){const ret=new Uint8Array(getObject(arg0),arg1>>>0,arg2>>>0);return addHeapObject(ret)},imports.wbg.__wbg_newwithlength_a381634e90c276d4=function(arg0){const ret=new Uint8Array(arg0>>>0);return addHeapObject(ret)},imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635=function(){return handleError(function(arg0,arg1,arg2){const ret=new Request(getStringFromWasm0(arg0,arg1),getObject(arg2));return addHeapObject(ret)},arguments)},imports.wbg.__wbg_next_25feadfc0913fea9=function(arg0){const ret=getObject(arg0).next;return addHeapObject(ret)},imports.wbg.__wbg_next_6574e1a8a62d1055=function(){return handleError(function(arg0){const ret=getObject(arg0).next();return addHeapObject(ret)},arguments)},imports.wbg.__wbg_node_905d3e251edff8a2=function(arg0){const ret=getObject(arg0).node;return addHeapObject(ret)},imports.wbg.__wbg_process_dc0fbacc7c1c06f7=function(arg0){const ret=getObject(arg0).process;return addHeapObject(ret)},imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5=function(arg0){queueMicrotask(getObject(arg0))},imports.wbg.__wbg_queueMicrotask_d3219def82552485=function(arg0){const ret=getObject(arg0).queueMicrotask;return addHeapObject(ret)},imports.wbg.__wbg_randomFillSync_ac0988aba3254290=function(){return handleError(function(arg0,arg1){getObject(arg0).randomFillSync(takeObject(arg1))},arguments)},imports.wbg.__wbg_readyState_7ef6e63c349899ed=function(arg0){const ret=getObject(arg0).readyState;return ret},imports.wbg.__wbg_reason_49f1cede8bcf23dd=function(arg0,arg1){const ret=getObject(arg1).reason,ptr1=passStringToWasm0(ret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},imports.wbg.__wbg_require_60cc747a6bc5215a=function(){return handleError(function(){const ret=module.require;return addHeapObject(ret)},arguments)},imports.wbg.__wbg_resolve_4851785c9c5f573d=function(arg0){const ret=Promise.resolve(getObject(arg0));return addHeapObject(ret)},imports.wbg.__wbg_send_0293179ba074ffb4=function(){return handleError(function(arg0,arg1,arg2){getObject(arg0).send(getStringFromWasm0(arg1,arg2))},arguments)},imports.wbg.__wbg_send_fc0c204e8a1757f4=function(){return handleError(function(arg0,arg1,arg2){getObject(arg0).send(getArrayU8FromWasm0(arg1,arg2))},arguments)},imports.wbg.__wbg_setTimeout_7bb3429662ab1e70=function(arg0,arg1){const ret=setTimeout(getObject(arg0),arg1);return addHeapObject(ret)},imports.wbg.__wbg_setTimeout_db2dbaeefb6f39c7=function(){return handleError(function(arg0,arg1){const ret=setTimeout(getObject(arg0),arg1);return addHeapObject(ret)},arguments)},imports.wbg.__wbg_setTimeout_eefe7f4c234b0c6b=function(){return handleError(function(arg0,arg1){const ret=setTimeout(getObject(arg0),arg1);return addHeapObject(ret)},arguments)},imports.wbg.__wbg_set_65595bdd868b3009=function(arg0,arg1,arg2){getObject(arg0).set(getObject(arg1),arg2>>>0)},imports.wbg.__wbg_setbinaryType_92fa1ffd873b327c=function(arg0,arg1){getObject(arg0).binaryType=__wbindgen_enum_BinaryType[arg1]},imports.wbg.__wbg_setbody_5923b78a95eedf29=function(arg0,arg1){getObject(arg0).body=getObject(arg1)},imports.wbg.__wbg_setcache_12f17c3a980650e4=function(arg0,arg1){getObject(arg0).cache=__wbindgen_enum_RequestCache[arg1]},imports.wbg.__wbg_setcredentials_c3a22f1cd105a2c6=function(arg0,arg1){getObject(arg0).credentials=__wbindgen_enum_RequestCredentials[arg1]},imports.wbg.__wbg_setheaders_834c0bdb6a8949ad=function(arg0,arg1){getObject(arg0).headers=getObject(arg1)},imports.wbg.__wbg_setmethod_3c5280fe5d890842=function(arg0,arg1,arg2){getObject(arg0).method=getStringFromWasm0(arg1,arg2)},imports.wbg.__wbg_setmode_5dc300b865044b65=function(arg0,arg1){getObject(arg0).mode=__wbindgen_enum_RequestMode[arg1]},imports.wbg.__wbg_setonclose_14fc475a49d488fc=function(arg0,arg1){getObject(arg0).onclose=getObject(arg1)},imports.wbg.__wbg_setonerror_8639efe354b947cd=function(arg0,arg1){getObject(arg0).onerror=getObject(arg1)},imports.wbg.__wbg_setonmessage_6eccab530a8fb4c7=function(arg0,arg1){getObject(arg0).onmessage=getObject(arg1)},imports.wbg.__wbg_setonopen_2da654e1f39745d5=function(arg0,arg1){getObject(arg0).onopen=getObject(arg1)},imports.wbg.__wbg_setsignal_75b21ef3a81de905=function(arg0,arg1){getObject(arg0).signal=getObject(arg1)},imports.wbg.__wbg_signal_aaf9ad74119f20a4=function(arg0){const ret=getObject(arg0).signal;return addHeapObject(ret)},imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07=function(){const ret="undefined"==typeof global?null:global;return isLikeNone(ret)?0:addHeapObject(ret)},imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0=function(){const ret="undefined"==typeof globalThis?null:globalThis;return isLikeNone(ret)?0:addHeapObject(ret)},imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819=function(){const ret="undefined"==typeof self?null:self;return isLikeNone(ret)?0:addHeapObject(ret)},imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40=function(){const ret="undefined"==typeof window?null:window;return isLikeNone(ret)?0:addHeapObject(ret)},imports.wbg.__wbg_status_f6360336ca686bf0=function(arg0){const ret=getObject(arg0).status;return ret},imports.wbg.__wbg_stringify_f7ed6987935b4a24=function(){return handleError(function(arg0){const ret=JSON.stringify(getObject(arg0));return addHeapObject(ret)},arguments)},imports.wbg.__wbg_subarray_aa9065fa9dc5df96=function(arg0,arg1,arg2){const ret=getObject(arg0).subarray(arg1>>>0,arg2>>>0);return addHeapObject(ret)},imports.wbg.__wbg_text_7805bea50de2af49=function(){return handleError(function(arg0){const ret=getObject(arg0).text();return addHeapObject(ret)},arguments)},imports.wbg.__wbg_then_44b73946d2fb3e7d=function(arg0,arg1){const ret=getObject(arg0).then(getObject(arg1));return addHeapObject(ret)},imports.wbg.__wbg_then_48b406749878a531=function(arg0,arg1,arg2){const ret=getObject(arg0).then(getObject(arg1),getObject(arg2));return addHeapObject(ret)},imports.wbg.__wbg_url_ae10c34ca209681d=function(arg0,arg1){const ret=getObject(arg1).url,ptr1=passStringToWasm0(ret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},imports.wbg.__wbg_value_cd1ffa7b1ab794f1=function(arg0){const ret=getObject(arg0).value;return addHeapObject(ret)},imports.wbg.__wbg_versions_c01dfd4722a88165=function(arg0){const ret=getObject(arg0).versions;return addHeapObject(ret)},imports.wbg.__wbg_wasClean_605b4fd66d44354a=function(arg0){const ret=getObject(arg0).wasClean;return ret},imports.wbg.__wbindgen_cb_drop=function(arg0){const obj=takeObject(arg0).original;if(1==obj.cnt--)return obj.a=0,!0;const ret=!1;return ret},imports.wbg.__wbindgen_closure_wrapper1453=function(arg0,arg1,arg2){const ret=makeMutClosure(arg0,arg1,57,__wbg_adapter_28);return addHeapObject(ret)},imports.wbg.__wbindgen_closure_wrapper1466=function(arg0,arg1,arg2){const ret=makeMutClosure(arg0,arg1,57,__wbg_adapter_28);return addHeapObject(ret)},imports.wbg.__wbindgen_closure_wrapper2258=function(arg0,arg1,arg2){const ret=makeMutClosure(arg0,arg1,88,__wbg_adapter_28);return addHeapObject(ret)},imports.wbg.__wbindgen_closure_wrapper3913=function(arg0,arg1,arg2){const ret=makeMutClosure(arg0,arg1,88,__wbg_adapter_35);return addHeapObject(ret)},imports.wbg.__wbindgen_closure_wrapper3918=function(arg0,arg1,arg2){const ret=makeMutClosure(arg0,arg1,88,__wbg_adapter_35);return addHeapObject(ret)},imports.wbg.__wbindgen_closure_wrapper3921=function(arg0,arg1,arg2){const ret=makeClosure(arg0,arg1,88,__wbg_adapter_40);return addHeapObject(ret)},imports.wbg.__wbindgen_closure_wrapper3926=function(arg0,arg1,arg2){const ret=makeClosure(arg0,arg1,88,__wbg_adapter_40);return addHeapObject(ret)},imports.wbg.__wbindgen_closure_wrapper3929=function(arg0,arg1,arg2){const ret=makeClosure(arg0,arg1,88,__wbg_adapter_40);return addHeapObject(ret)},imports.wbg.__wbindgen_closure_wrapper4494=function(arg0,arg1,arg2){const ret=makeMutClosure(arg0,arg1,88,__wbg_adapter_35);return addHeapObject(ret)},imports.wbg.__wbindgen_debug_string=function(arg0,arg1){const ret=debugString(getObject(arg1)),ptr1=passStringToWasm0(ret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},imports.wbg.__wbindgen_error_new=function(arg0,arg1){const ret=new Error(getStringFromWasm0(arg0,arg1));return addHeapObject(ret)},imports.wbg.__wbindgen_is_function=function(arg0){const ret="function"==typeof getObject(arg0);return ret},imports.wbg.__wbindgen_is_object=function(arg0){const val=getObject(arg0),ret="object"==typeof val&&null!==val;return ret},imports.wbg.__wbindgen_is_string=function(arg0){const ret="string"==typeof getObject(arg0);return ret},imports.wbg.__wbindgen_is_undefined=function(arg0){const ret=void 0===getObject(arg0);return ret},imports.wbg.__wbindgen_memory=function(){const ret=wasm.memory;return addHeapObject(ret)},imports.wbg.__wbindgen_object_clone_ref=function(arg0){const ret=getObject(arg0);return addHeapObject(ret)},imports.wbg.__wbindgen_object_drop_ref=function(arg0){takeObject(arg0)},imports.wbg.__wbindgen_string_get=function(arg0,arg1){const obj=getObject(arg1),ret="string"==typeof obj?obj:void 0;var arg1=isLikeNone(ret)?0:passStringToWasm0(ret,wasm.__wbindgen_export_1,wasm.__wbindgen_export_2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,arg1,!0)},imports.wbg.__wbindgen_string_new=function(arg0,arg1){const ret=getStringFromWasm0(arg0,arg1);return addHeapObject(ret)},imports.wbg.__wbindgen_throw=function(arg0,arg1){throw new Error(getStringFromWasm0(arg0,arg1))},imports}function __wbg_init_memory(imports,memory){}function __wbg_finalize_init(instance,module){return wasm=instance.exports,__wbg_init.__wbindgen_wasm_module=module,cachedDataViewMemory0=null,cachedUint32ArrayMemory0=null,cachedUint8ArrayMemory0=null,wasm.__wbindgen_start(),wasm}function initSync(module){if(void 0!==wasm)return wasm;void 0!==module&&(Object.getPrototypeOf(module)===Object.prototype?module=module.module:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const imports=__wbg_get_imports(),instance=(__wbg_init_memory(imports),module instanceof WebAssembly.Module||(module=new WebAssembly.Module(module)),new WebAssembly.Instance(module,imports));return __wbg_finalize_init(instance,module)}async function __wbg_init(module_or_path){if(void 0!==wasm)return wasm;void 0!==module_or_path&&(Object.getPrototypeOf(module_or_path)===Object.prototype?module_or_path=module_or_path.module_or_path:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===module_or_path&&(module_or_path=new URL("libmpc_executor_bg.wasm",import.meta.url));const imports=__wbg_get_imports(),{instance,module}=(("string"==typeof module_or_path||"function"==typeof Request&&module_or_path instanceof Request||"function"==typeof URL&&module_or_path instanceof URL)&&(module_or_path=fetch(module_or_path)),__wbg_init_memory(imports),await __wbg_load(await module_or_path,imports));return __wbg_finalize_init(instance,module)}export default __wbg_init;export{ecdsaKeygen,ecdsaSign,ecdsaRefresh,ecdsaReshareNewParty,ecdsaReshareRemainingParty,ecdsaDerivePubkey,ecdsaGetXpub,ecdsaDerivePubkeyFromXpub,ecdsaGetExportID,ecdsaExportFullPrivateKey,ecdsaOfflineExportFullPrivateKey,ecdsaDerivePrivateKeyFromXpriv,ecdsaImportPrivateKeyRecipient,ecdsaImportPrivateKeyImporter,bip340Keygen,bip340Sign,bip340Refresh,bip340ReshareNewParty,bip340ReshareRemainingParty,bip340DeriveTweakPubkey,bip340GetXpub,bip340DeriveTweakPubkeyFromXpub,bip340GetExportID,bip340ExportFullPrivateKey,bip340OfflineExportFullPrivateKey,bip340DerivePrivateKeyFromXpriv,bip340ImportPrivateKeyRecipient,bip340ImportPrivateKeyImporter,sr25519Keygen,sr25519Sign,sr25519Refresh,sr25519ReshareNewParty,sr25519ReshareRemainingParty,sr25519DerivePubkey,sr25519GetPubkey,sr25519DerivePubkeyFromPubkey,sr25519GetExportID,sr25519ExportFullPrivateKey,sr25519OfflineExportFullPrivateKey,sr25519DerivePrivateKeyFromPrivateKey,sr25519ImportPrivateKeyRecipient,sr25519ImportPrivateKeyImporter,createRoom,initKeygen,start,ed25519Keygen,ed25519Sign,ed25519Refresh,ed25519ReshareNewParty,ed25519ReshareRemainingParty,ed25519DerivePubkey,ed25519GetSpub,ed25519DerivePubkeyFromSpub,ed25519GetExportID,ed25519ExportFullPrivateKey,ed25519OfflineExportFullPrivateKey,ed25519DerivePrivateKeyFromSpriv,ed25519ImportPrivateKeyRecipient,ed25519ImportPrivateKeyImporter,exportableEd25519SampleKey,exportableEd25519ReceiveKey,exportableEd25519Sign,exportableEd25519Refresh,exportableEd25519ReshareNewParty,exportableEd25519ReshareRemainingParty,exportableEd25519GetPubkey,exportableEd25519GetExportID,exportableEd25519ExportFullPrivateKey,exportableEd25519OfflineExportFullPrivateKey,exportableEd25519ImportPrivateKeyRecipient,exportableEd25519ImportPrivateKeyImporter,KeygenInit,KeygenResult,initSync};
1
+ class EdBls12377KeygenResult{static __wrap(ptr){ptr>>>=0;const obj=Object.create(EdBls12377KeygenResult.prototype);return obj.__wbg_ptr=ptr,EdBls12377KeygenResultFinalization.register(obj,obj.__wbg_ptr,obj),obj}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,EdBls12377KeygenResultFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_edbls12377keygenresult_free(ptr,0)}get address(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wbg_get_edbls12377keygenresult_address(retptr,this.__wbg_ptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}get compute_key(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wbg_get_edbls12377keygenresult_compute_key(retptr,this.__wbg_ptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}get secret_share(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wbg_get_edbls12377keygenresult_secret_share(retptr,this.__wbg_ptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}}Symbol.dispose&&(EdBls12377KeygenResult.prototype[Symbol.dispose]=EdBls12377KeygenResult.prototype.free);class KeygenInit{static __wrap(ptr){ptr>>>=0;const obj=Object.create(KeygenInit.prototype);return obj.__wbg_ptr=ptr,KeygenInitFinalization.register(obj,obj.__wbg_ptr,obj),obj}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,KeygenInitFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_keygeninit_free(ptr,0)}get keypair(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wbg_get_keygeninit_keypair(retptr,this.__wbg_ptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}get pubkey(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wbg_get_keygeninit_pubkey(retptr,this.__wbg_ptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}constructor(keypair,pubkey){const ptr0=passStringToWasm0(keypair,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(pubkey,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ret=wasm.keygeninit_new(ptr0,len0,ptr1,len1);return this.__wbg_ptr=ret>>>0,KeygenInitFinalization.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(KeygenInit.prototype[Symbol.dispose]=KeygenInit.prototype.free);class KeygenResult{static __wrap(ptr){ptr>>>=0;const obj=Object.create(KeygenResult.prototype);return obj.__wbg_ptr=ptr,KeygenResultFinalization.register(obj,obj.__wbg_ptr,obj),obj}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,KeygenResultFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_keygenresult_free(ptr,0)}get pubkey(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wbg_get_keygenresult_pubkey(retptr,this.__wbg_ptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}get secret_share(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wbg_get_keygenresult_secret_share(retptr,this.__wbg_ptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}}function bip340DerivePrivateKeyFromXpriv(xpriv,derivation_path){const ptr0=passStringToWasm0(xpriv,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export),len1=WASM_VECTOR_LEN,ret=wasm.bip340DerivePrivateKeyFromXpriv(ptr0,len0,ptr1,len1);return takeObject(ret)}function bip340DeriveTweakPubkey(secret_share,derivation_path,opt_tweak){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(opt_tweak,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ret=wasm.bip340DeriveTweakPubkey(ptr0,len0,ptr1,len1,ptr2,len2);return takeObject(ret)}function bip340DeriveTweakPubkeyFromXpub(xpub,derivation_path,opt_tweak){const ptr0=passStringToWasm0(xpub,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(opt_tweak,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ret=wasm.bip340DeriveTweakPubkeyFromXpub(ptr0,len0,ptr1,len1,ptr2,len2);return takeObject(ret)}function bip340ExportFullPrivateKey(room_uuid,host_addr,secret_share,export_to){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(export_to,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ret=wasm.bip340ExportFullPrivateKey(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3);return takeObject(ret)}function bip340GetExportID(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ret=wasm.bip340GetExportID(ptr0,len0);return takeObject(ret)}function bip340GetXpub(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ret=wasm.bip340GetXpub(ptr0,len0);return takeObject(ret)}function bip340ImportPrivateKeyImporter(room_uuid,host_addr,threshold,private_key_hex,keygen_secret,keygen_ids,chaincode_hex){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(private_key_hex,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ptr4=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len4=WASM_VECTOR_LEN,ptr5=passStringToWasm0(chaincode_hex,wasm.__wbindgen_export,wasm.__wbindgen_export2),len5=WASM_VECTOR_LEN,ret=wasm.bip340ImportPrivateKeyImporter(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3,ptr4,len4,ptr5,len5);return takeObject(ret)}function bip340ImportPrivateKeyRecipient(room_uuid,host_addr,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.bip340ImportPrivateKeyRecipient(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function bip340Keygen(room_uuid,host_addr,num_parties,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.bip340Keygen(ptr0,len0,ptr1,len1,num_parties,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function bip340OfflineExportFullPrivateKey(secret_shares){const ptr0=passArrayJsValueToWasm0(secret_shares,wasm.__wbindgen_export),len0=WASM_VECTOR_LEN,ret=wasm.bip340OfflineExportFullPrivateKey(ptr0,len0);return takeObject(ret)}function bip340Refresh(room_uuid,host_addr,secret_share){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ret=wasm.bip340Refresh(ptr0,len0,ptr1,len1,ptr2,len2);return takeObject(ret)}function bip340ReshareNewParty(room_uuid,host_addr,_old_threshold,new_threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.bip340ReshareNewParty(ptr0,len0,ptr1,len1,_old_threshold,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function bip340ReshareRemainingParty(room_uuid,host_addr,new_threshold,secret_share,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.bip340ReshareRemainingParty(ptr0,len0,ptr1,len1,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function bip340Sign(room_uuid,host_addr,secret_share,msg_hex,derivation_path,opt_tweak){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(msg_hex,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ptr4=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export),len4=WASM_VECTOR_LEN,ptr5=passStringToWasm0(opt_tweak,wasm.__wbindgen_export,wasm.__wbindgen_export2),len5=WASM_VECTOR_LEN,ret=wasm.bip340Sign(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3,ptr4,len4,ptr5,len5);return takeObject(ret)}function createRoom(host_addr,num_parties,api_token){const ptr0=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(api_token,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ret=wasm.createRoom(ptr0,len0,num_parties,ptr1,len1);return takeObject(ret)}function ecdsaDerivePrivateKeyFromXpriv(xpriv,derivation_path){const ptr0=passStringToWasm0(xpriv,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export),len1=WASM_VECTOR_LEN,ret=wasm.ecdsaDerivePrivateKeyFromXpriv(ptr0,len0,ptr1,len1);return takeObject(ret)}function ecdsaDerivePubkey(secret_share,derivation_path){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export),len1=WASM_VECTOR_LEN,ret=wasm.ecdsaDerivePubkey(ptr0,len0,ptr1,len1);return takeObject(ret)}function ecdsaDerivePubkeyFromXpub(xpub,derivation_path){const ptr0=passStringToWasm0(xpub,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export),len1=WASM_VECTOR_LEN,ret=wasm.ecdsaDerivePubkeyFromXpub(ptr0,len0,ptr1,len1);return takeObject(ret)}function ecdsaExportFullPrivateKey(room_uuid,host_addr,secret_share,export_to){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(export_to,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ret=wasm.ecdsaExportFullPrivateKey(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3);return takeObject(ret)}function ecdsaGetExportID(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ret=wasm.ecdsaGetExportID(ptr0,len0);return takeObject(ret)}function ecdsaGetXpub(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ret=wasm.ecdsaGetXpub(ptr0,len0);return takeObject(ret)}function ecdsaImportPrivateKeyImporter(room_uuid,host_addr,threshold,private_key_hex,keygen_secret,keygen_ids,chaincode_hex){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(private_key_hex,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ptr4=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len4=WASM_VECTOR_LEN,ptr5=passStringToWasm0(chaincode_hex,wasm.__wbindgen_export,wasm.__wbindgen_export2),len5=WASM_VECTOR_LEN,ret=wasm.ecdsaImportPrivateKeyImporter(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3,ptr4,len4,ptr5,len5);return takeObject(ret)}function ecdsaImportPrivateKeyRecipient(room_uuid,host_addr,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.ecdsaImportPrivateKeyRecipient(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function ecdsaKeygen(room_uuid,host_addr,num_parties,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.ecdsaKeygen(ptr0,len0,ptr1,len1,num_parties,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function ecdsaOfflineExportFullPrivateKey(secret_shares){const ptr0=passArrayJsValueToWasm0(secret_shares,wasm.__wbindgen_export),len0=WASM_VECTOR_LEN,ret=wasm.ecdsaOfflineExportFullPrivateKey(ptr0,len0);return takeObject(ret)}function ecdsaRefresh(room_uuid,host_addr,secret_share){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ret=wasm.ecdsaRefresh(ptr0,len0,ptr1,len1,ptr2,len2);return takeObject(ret)}function ecdsaReshareNewParty(room_uuid,host_addr,_old_threshold,new_threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.ecdsaReshareNewParty(ptr0,len0,ptr1,len1,_old_threshold,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function ecdsaReshareRemainingParty(room_uuid,host_addr,new_threshold,secret_share,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.ecdsaReshareRemainingParty(ptr0,len0,ptr1,len1,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function ecdsaSign(room_uuid,host_addr,secret_share,msg_hex,derivation_path){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(msg_hex,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ptr4=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export),len4=WASM_VECTOR_LEN,ret=wasm.ecdsaSign(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3,ptr4,len4);return takeObject(ret)}function ed25519DerivePrivateKeyFromSpriv(spriv,derivation_path){const ptr0=passStringToWasm0(spriv,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export),len1=WASM_VECTOR_LEN,ret=wasm.ed25519DerivePrivateKeyFromSpriv(ptr0,len0,ptr1,len1);return takeObject(ret)}function ed25519DerivePubkey(secret_share,derivation_path){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export),len1=WASM_VECTOR_LEN,ret=wasm.ed25519DerivePubkey(ptr0,len0,ptr1,len1);return takeObject(ret)}function ed25519DerivePubkeyFromSpub(spub,derivation_path){const ptr0=passStringToWasm0(spub,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export),len1=WASM_VECTOR_LEN,ret=wasm.ed25519DerivePubkeyFromSpub(ptr0,len0,ptr1,len1);return takeObject(ret)}function ed25519ExportFullPrivateKey(room_uuid,host_addr,secret_share,export_to){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(export_to,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ret=wasm.ed25519ExportFullPrivateKey(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3);return takeObject(ret)}function ed25519GetExportID(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ret=wasm.ed25519GetExportID(ptr0,len0);return takeObject(ret)}function ed25519GetSpub(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ret=wasm.ed25519GetSpub(ptr0,len0);return takeObject(ret)}function ed25519ImportPrivateKeyImporter(room_uuid,host_addr,threshold,private_key_hex,keygen_secret,keygen_ids,is_private_key_raw){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(private_key_hex,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ptr4=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len4=WASM_VECTOR_LEN,ret=wasm.ed25519ImportPrivateKeyImporter(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3,ptr4,len4,is_private_key_raw);return takeObject(ret)}function ed25519ImportPrivateKeyRecipient(room_uuid,host_addr,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.ed25519ImportPrivateKeyRecipient(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function ed25519Keygen(room_uuid,host_addr,num_parties,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.ed25519Keygen(ptr0,len0,ptr1,len1,num_parties,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function ed25519OfflineExportFullPrivateKey(secret_shares){const ptr0=passArrayJsValueToWasm0(secret_shares,wasm.__wbindgen_export),len0=WASM_VECTOR_LEN,ret=wasm.ed25519OfflineExportFullPrivateKey(ptr0,len0);return takeObject(ret)}function ed25519Refresh(room_uuid,host_addr,secret_share){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ret=wasm.ed25519Refresh(ptr0,len0,ptr1,len1,ptr2,len2);return takeObject(ret)}function ed25519ReshareNewParty(room_uuid,host_addr,_old_threshold,new_threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.ed25519ReshareNewParty(ptr0,len0,ptr1,len1,_old_threshold,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function ed25519ReshareRemainingParty(room_uuid,host_addr,new_threshold,secret_share,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.ed25519ReshareRemainingParty(ptr0,len0,ptr1,len1,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function ed25519Sign(room_uuid,host_addr,secret_share,msg_hex,derivation_path){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(msg_hex,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ptr4=passArray32ToWasm0(derivation_path,wasm.__wbindgen_export),len4=WASM_VECTOR_LEN,ret=wasm.ed25519Sign(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3,ptr4,len4);return takeObject(ret)}function edBls12377ExportFullPrivateKey(room_uuid,host_addr,secret_share,export_to){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(export_to,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ret=wasm.edBls12377ExportFullPrivateKey(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3);return takeObject(ret)}function edBls12377ExportViewKey(room_uuid,host_addr,secret_share,export_to){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(export_to,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ret=wasm.edBls12377ExportViewKey(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3);return takeObject(ret)}function edBls12377GetExportID(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ret=wasm.edBls12377GetExportID(ptr0,len0);return takeObject(ret)}function edBls12377ImportPrivateKeyImporter(room_uuid,host_addr,threshold,private_key_hex,keygen_secret,keygen_ids,is_private_key_raw){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(private_key_hex,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ptr4=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len4=WASM_VECTOR_LEN,ret=wasm.edBls12377ImportPrivateKeyImporter(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3,ptr4,len4,is_private_key_raw);return takeObject(ret)}function edBls12377ImportPrivateKeyRecipient(room_uuid,host_addr,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.edBls12377ImportPrivateKeyRecipient(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function edBls12377Keygen(room_uuid,host_addr,num_parties,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.edBls12377Keygen(ptr0,len0,ptr1,len1,num_parties,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function edBls12377OfflineExportFullPrivateKey(secret_shares){const ptr0=passArrayJsValueToWasm0(secret_shares,wasm.__wbindgen_export),len0=WASM_VECTOR_LEN,ret=wasm.edBls12377OfflineExportFullPrivateKey(ptr0,len0);return takeObject(ret)}function edBls12377OfflineExportViewKey(secret_shares){const ptr0=passArrayJsValueToWasm0(secret_shares,wasm.__wbindgen_export),len0=WASM_VECTOR_LEN,ret=wasm.edBls12377OfflineExportViewKey(ptr0,len0);return takeObject(ret)}function edBls12377Refresh(room_uuid,host_addr,secret_share){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ret=wasm.edBls12377Refresh(ptr0,len0,ptr1,len1,ptr2,len2);return takeObject(ret)}function edBls12377ReshareNewParty(room_uuid,host_addr,_old_threshold,new_threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.edBls12377ReshareNewParty(ptr0,len0,ptr1,len1,_old_threshold,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function edBls12377ReshareRemainingParty(room_uuid,host_addr,new_threshold,secret_share,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.edBls12377ReshareRemainingParty(ptr0,len0,ptr1,len1,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function edBls12377signRequest(room_uuid,host_addr,secret_share,request_payload_json){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(request_payload_json,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ret=wasm.edBls12377signRequest(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3);return takeObject(ret)}function exportableEd25519ExportFullPrivateKey(room_uuid,host_addr,secret_share,export_to){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(export_to,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ret=wasm.exportableEd25519ExportFullPrivateKey(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3);return takeObject(ret)}function exportableEd25519GetExportID(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ret=wasm.exportableEd25519GetExportID(ptr0,len0);return takeObject(ret)}function exportableEd25519GetPubkey(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ret=wasm.exportableEd25519GetPubkey(ptr0,len0);return takeObject(ret)}function exportableEd25519ImportPrivateKeyImporter(room_uuid,host_addr,threshold,private_key_hex,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(private_key_hex,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ptr4=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len4=WASM_VECTOR_LEN,ret=wasm.exportableEd25519ImportPrivateKeyImporter(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3,ptr4,len4);return takeObject(ret)}function exportableEd25519ImportPrivateKeyRecipient(room_uuid,host_addr,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.exportableEd25519ImportPrivateKeyRecipient(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function exportableEd25519OfflineExportFullPrivateKey(secret_shares){const ptr0=passArrayJsValueToWasm0(secret_shares,wasm.__wbindgen_export),len0=WASM_VECTOR_LEN,ret=wasm.exportableEd25519OfflineExportFullPrivateKey(ptr0,len0);return takeObject(ret)}function exportableEd25519ReceiveKey(room_uuid,host_addr,num_parties,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.exportableEd25519ReceiveKey(ptr0,len0,ptr1,len1,num_parties,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function exportableEd25519Refresh(room_uuid,host_addr,secret_share){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ret=wasm.exportableEd25519Refresh(ptr0,len0,ptr1,len1,ptr2,len2);return takeObject(ret)}function exportableEd25519ReshareNewParty(room_uuid,host_addr,_old_threshold,new_threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.exportableEd25519ReshareNewParty(ptr0,len0,ptr1,len1,_old_threshold,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function exportableEd25519ReshareRemainingParty(room_uuid,host_addr,new_threshold,secret_share,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.exportableEd25519ReshareRemainingParty(ptr0,len0,ptr1,len1,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function exportableEd25519SampleKey(room_uuid,host_addr,num_parties,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.exportableEd25519SampleKey(ptr0,len0,ptr1,len1,num_parties,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function exportableEd25519Sign(room_uuid,host_addr,secret_share,msg_hex){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(msg_hex,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ret=wasm.exportableEd25519Sign(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3);return takeObject(ret)}function initKeygen(){const ret=wasm.initKeygen();return takeObject(ret)}function sr25519DerivePrivateKeyFromPrivateKey(private_key,derivation_path,is_private_key_raw){const ptr0=passStringToWasm0(private_key,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passArrayJsValueToWasm0(derivation_path,wasm.__wbindgen_export),len1=WASM_VECTOR_LEN,ret=wasm.sr25519DerivePrivateKeyFromPrivateKey(ptr0,len0,ptr1,len1,is_private_key_raw);return takeObject(ret)}function sr25519DerivePubkey(secret_share,derivation_path){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passArrayJsValueToWasm0(derivation_path,wasm.__wbindgen_export),len1=WASM_VECTOR_LEN,ret=wasm.sr25519DerivePubkey(ptr0,len0,ptr1,len1);return takeObject(ret)}function sr25519DerivePubkeyFromPubkey(pubkey,derivation_path){const ptr0=passStringToWasm0(pubkey,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passArrayJsValueToWasm0(derivation_path,wasm.__wbindgen_export),len1=WASM_VECTOR_LEN,ret=wasm.sr25519DerivePubkeyFromPubkey(ptr0,len0,ptr1,len1);return takeObject(ret)}function sr25519ExportFullPrivateKey(room_uuid,host_addr,secret_share,export_to){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(export_to,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ret=wasm.sr25519ExportFullPrivateKey(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3);return takeObject(ret)}function sr25519GetExportID(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ret=wasm.sr25519GetExportID(ptr0,len0);return takeObject(ret)}function sr25519GetPubkey(secret_share){const ptr0=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ret=wasm.sr25519GetPubkey(ptr0,len0);return takeObject(ret)}function sr25519ImportPrivateKeyImporter(room_uuid,host_addr,threshold,private_key_hex,keygen_secret,keygen_ids,is_private_key_raw){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(private_key_hex,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ptr4=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len4=WASM_VECTOR_LEN,ret=wasm.sr25519ImportPrivateKeyImporter(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3,ptr4,len4,is_private_key_raw);return takeObject(ret)}function sr25519ImportPrivateKeyRecipient(room_uuid,host_addr,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.sr25519ImportPrivateKeyRecipient(ptr0,len0,ptr1,len1,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function sr25519Keygen(room_uuid,host_addr,num_parties,threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.sr25519Keygen(ptr0,len0,ptr1,len1,num_parties,threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function sr25519OfflineExportFullPrivateKey(secret_shares){const ptr0=passArrayJsValueToWasm0(secret_shares,wasm.__wbindgen_export),len0=WASM_VECTOR_LEN,ret=wasm.sr25519OfflineExportFullPrivateKey(ptr0,len0);return takeObject(ret)}function sr25519Refresh(room_uuid,host_addr,secret_share){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ret=wasm.sr25519Refresh(ptr0,len0,ptr1,len1,ptr2,len2);return takeObject(ret)}function sr25519ReshareNewParty(room_uuid,host_addr,_old_threshold,new_threshold,keygen_secret,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(keygen_secret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.sr25519ReshareNewParty(ptr0,len0,ptr1,len1,_old_threshold,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function sr25519ReshareRemainingParty(room_uuid,host_addr,new_threshold,secret_share,keygen_ids){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passArrayJsValueToWasm0(keygen_ids,wasm.__wbindgen_export),len3=WASM_VECTOR_LEN,ret=wasm.sr25519ReshareRemainingParty(ptr0,len0,ptr1,len1,new_threshold,ptr2,len2,ptr3,len3);return takeObject(ret)}function sr25519Sign(room_uuid,host_addr,secret_share,msg_hex,derivation_path){const ptr0=passStringToWasm0(room_uuid,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(host_addr,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN,ptr2=passStringToWasm0(secret_share,wasm.__wbindgen_export,wasm.__wbindgen_export2),len2=WASM_VECTOR_LEN,ptr3=passStringToWasm0(msg_hex,wasm.__wbindgen_export,wasm.__wbindgen_export2),len3=WASM_VECTOR_LEN,ptr4=passArrayJsValueToWasm0(derivation_path,wasm.__wbindgen_export),len4=WASM_VECTOR_LEN,ret=wasm.sr25519Sign(ptr0,len0,ptr1,len1,ptr2,len2,ptr3,len3,ptr4,len4);return takeObject(ret)}function start(){wasm.start()}function __wbg_get_imports(){const import0={__proto__:null,__wbg_Error_83742b46f01ce22d:function(arg0,arg1){const ret=Error(getStringFromWasm0(arg0,arg1));return addHeapObject(ret)},__wbg___wbindgen_debug_string_5398f5bb970e0daa:function(arg0,arg1){const ret=debugString(getObject(arg1)),ptr1=passStringToWasm0(ret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbg___wbindgen_is_function_3c846841762788c1:function(arg0){const ret="function"==typeof getObject(arg0);return ret},__wbg___wbindgen_is_object_781bc9f159099513:function(arg0){const val=getObject(arg0),ret="object"==typeof val&&null!==val;return ret},__wbg___wbindgen_is_string_7ef6b97b02428fae:function(arg0){const ret="string"==typeof getObject(arg0);return ret},__wbg___wbindgen_is_undefined_52709e72fb9f179c:function(arg0){const ret=void 0===getObject(arg0);return ret},__wbg___wbindgen_string_get_395e606bd0ee4427:function(arg0,arg1){const obj=getObject(arg1),ret="string"==typeof obj?obj:void 0;var arg1=isLikeNone(ret)?0:passStringToWasm0(ret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,arg1,!0)},__wbg___wbindgen_throw_6ddd609b62940d55:function(arg0,arg1){throw new Error(getStringFromWasm0(arg0,arg1))},__wbg__wbg_cb_unref_6b5b6b8576d35cb1:function(arg0){getObject(arg0)._wbg_cb_unref()},__wbg_abort_5ef96933660780b7:function(arg0){getObject(arg0).abort()},__wbg_abort_6479c2d794ebf2ee:function(arg0,arg1){getObject(arg0).abort(getObject(arg1))},__wbg_append_608dfb635ee8998f:function(){return handleError(function(arg0,arg1,arg2,arg3,arg4){getObject(arg0).append(getStringFromWasm0(arg1,arg2),getStringFromWasm0(arg3,arg4))},arguments)},__wbg_call_2d781c1f4d5c0ef8:function(){return handleError(function(arg0,arg1,arg2){const ret=getObject(arg0).call(getObject(arg1),getObject(arg2));return addHeapObject(ret)},arguments)},__wbg_call_e133b57c9155d22c:function(){return handleError(function(arg0,arg1){const ret=getObject(arg0).call(getObject(arg1));return addHeapObject(ret)},arguments)},__wbg_clearTimeout_01406e55473040f6:function(arg0){const ret=clearTimeout(takeObject(arg0));return addHeapObject(ret)},__wbg_clearTimeout_113b1cde814ec762:function(arg0){const ret=clearTimeout(takeObject(arg0));return addHeapObject(ret)},__wbg_clearTimeout_6b8d9a38b9263d65:function(arg0){const ret=clearTimeout(takeObject(arg0));return addHeapObject(ret)},__wbg_close_a86fff250f8aa14f:function(){return handleError(function(arg0,arg1,arg2,arg3){getObject(arg0).close(arg1,getStringFromWasm0(arg2,arg3))},arguments)},__wbg_close_af26905c832a88cb:function(){return handleError(function(arg0){getObject(arg0).close()},arguments)},__wbg_code_aea376e2d265a64f:function(arg0){const ret=getObject(arg0).code;return ret},__wbg_crypto_38df2bab126b63dc:function(arg0){const ret=getObject(arg0).crypto;return addHeapObject(ret)},__wbg_data_a3d9ff9cdd801002:function(arg0){const ret=getObject(arg0).data;return addHeapObject(ret)},__wbg_done_08ce71ee07e3bd17:function(arg0){const ret=getObject(arg0).done;return ret},__wbg_edbls12377keygenresult_new:function(arg0){const ret=EdBls12377KeygenResult.__wrap(arg0);return addHeapObject(ret)},__wbg_fetch_5550a88cf343aaa9:function(arg0,arg1){const ret=getObject(arg0).fetch(getObject(arg1));return addHeapObject(ret)},__wbg_fetch_9dad4fe911207b37:function(arg0){const ret=fetch(getObject(arg0));return addHeapObject(ret)},__wbg_getRandomValues_c44a50d8cfdaebeb:function(){return handleError(function(arg0,arg1){getObject(arg0).getRandomValues(getObject(arg1))},arguments)},__wbg_get_326e41e095fb2575:function(){return handleError(function(arg0,arg1){const ret=Reflect.get(getObject(arg0),getObject(arg1));return addHeapObject(ret)},arguments)},__wbg_has_926ef2ff40b308cf:function(){return handleError(function(arg0,arg1){const ret=Reflect.has(getObject(arg0),getObject(arg1));return ret},arguments)},__wbg_headers_eb2234545f9ff993:function(arg0){const ret=getObject(arg0).headers;return addHeapObject(ret)},__wbg_instanceof_ArrayBuffer_101e2bf31071a9f6:function(arg0){let result;try{result=getObject(arg0)instanceof ArrayBuffer}catch(_){result=!1}const ret=result;return ret},__wbg_instanceof_Response_9b4d9fd451e051b1:function(arg0){let result;try{result=getObject(arg0)instanceof Response}catch(_){result=!1}const ret=result;return ret},__wbg_iterator_d8f549ec8fb061b1:function(){const ret=Symbol.iterator;return addHeapObject(ret)},__wbg_keygeninit_new:function(arg0){const ret=KeygenInit.__wrap(arg0);return addHeapObject(ret)},__wbg_keygenresult_new:function(arg0){const ret=KeygenResult.__wrap(arg0);return addHeapObject(ret)},__wbg_length_ea16607d7b61445b:function(arg0){const ret=getObject(arg0).length;return ret},__wbg_message_67f6368dc2a526af:function(arg0,arg1){const ret=getObject(arg1).message,ptr1=passStringToWasm0(ret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbg_msCrypto_bd5a034af96bcba6:function(arg0){const ret=getObject(arg0).msCrypto;return addHeapObject(ret)},__wbg_new_0837727332ac86ba:function(){return handleError(function(){const ret=new Headers;return addHeapObject(ret)},arguments)},__wbg_new_5f486cdf45a04d78:function(arg0){const ret=new Uint8Array(getObject(arg0));return addHeapObject(ret)},__wbg_new_ab79df5bd7c26067:function(){const ret=new Object;return addHeapObject(ret)},__wbg_new_c518c60af666645b:function(){return handleError(function(){const ret=new AbortController;return addHeapObject(ret)},arguments)},__wbg_new_dd50bcc3f60ba434:function(){return handleError(function(arg0,arg1){const ret=new WebSocket(getStringFromWasm0(arg0,arg1));return addHeapObject(ret)},arguments)},__wbg_new_from_slice_22da9388ac046e50:function(arg0,arg1){const ret=new Uint8Array(getArrayU8FromWasm0(arg0,arg1));return addHeapObject(ret)},__wbg_new_typed_aaaeaf29cf802876:function(arg0,arg1){try{var state0={a:arg0,b:arg1},cb0=(arg0,arg1)=>{const a=state0.a;state0.a=0;try{return __wasm_bindgen_func_elem_2294(a,state0.b,arg0,arg1)}finally{state0.a=a}};const ret=new Promise(cb0);return addHeapObject(ret)}finally{state0.a=state0.b=0}},__wbg_new_with_length_825018a1616e9e55:function(arg0){const ret=new Uint8Array(arg0>>>0);return addHeapObject(ret)},__wbg_new_with_str_and_init_b4b54d1a819bc724:function(){return handleError(function(arg0,arg1,arg2){const ret=new Request(getStringFromWasm0(arg0,arg1),getObject(arg2));return addHeapObject(ret)},arguments)},__wbg_next_11b99ee6237339e3:function(){return handleError(function(arg0){const ret=getObject(arg0).next();return addHeapObject(ret)},arguments)},__wbg_next_e01a967809d1aa68:function(arg0){const ret=getObject(arg0).next;return addHeapObject(ret)},__wbg_node_84ea875411254db1:function(arg0){const ret=getObject(arg0).node;return addHeapObject(ret)},__wbg_process_44c7a14e11e9f69e:function(arg0){const ret=getObject(arg0).process;return addHeapObject(ret)},__wbg_prototypesetcall_d62e5099504357e6:function(arg0,arg1,arg2){Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0,arg1),getObject(arg2))},__wbg_queueMicrotask_0c399741342fb10f:function(arg0){const ret=getObject(arg0).queueMicrotask;return addHeapObject(ret)},__wbg_queueMicrotask_a082d78ce798393e:function(arg0){queueMicrotask(getObject(arg0))},__wbg_randomFillSync_6c25eac9869eb53c:function(){return handleError(function(arg0,arg1){getObject(arg0).randomFillSync(takeObject(arg1))},arguments)},__wbg_readyState_1f1e7f1bdf9f4d42:function(arg0){const ret=getObject(arg0).readyState;return ret},__wbg_reason_cbcb9911796c4714:function(arg0,arg1){const ret=getObject(arg1).reason,ptr1=passStringToWasm0(ret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbg_require_b4edbdcf3e2a1ef0:function(){return handleError(function(){const ret=module.require;return addHeapObject(ret)},arguments)},__wbg_resolve_ae8d83246e5bcc12:function(arg0){const ret=Promise.resolve(getObject(arg0));return addHeapObject(ret)},__wbg_send_4a1dc66e8653e5ed:function(){return handleError(function(arg0,arg1,arg2){getObject(arg0).send(getStringFromWasm0(arg1,arg2))},arguments)},__wbg_send_d31a693c975dea74:function(){return handleError(function(arg0,arg1,arg2){getObject(arg0).send(getArrayU8FromWasm0(arg1,arg2))},arguments)},__wbg_setTimeout_613a21b62dc655a1:function(){return handleError(function(arg0,arg1){const ret=setTimeout(getObject(arg0),arg1);return addHeapObject(ret)},arguments)},__wbg_setTimeout_ef24d2fc3ad97385:function(){return handleError(function(arg0,arg1){const ret=setTimeout(getObject(arg0),arg1);return addHeapObject(ret)},arguments)},__wbg_setTimeout_f757f00851f76c42:function(arg0,arg1){const ret=setTimeout(getObject(arg0),arg1);return addHeapObject(ret)},__wbg_set_binaryType_3dcf8281ec100a8f:function(arg0,arg1){getObject(arg0).binaryType=__wbindgen_enum_BinaryType[arg1]},__wbg_set_body_a3d856b097dfda04:function(arg0,arg1){getObject(arg0).body=getObject(arg1)},__wbg_set_cache_ec7e430c6056ebda:function(arg0,arg1){getObject(arg0).cache=__wbindgen_enum_RequestCache[arg1]},__wbg_set_credentials_ed63183445882c65:function(arg0,arg1){getObject(arg0).credentials=__wbindgen_enum_RequestCredentials[arg1]},__wbg_set_headers_3c8fecc693b75327:function(arg0,arg1){getObject(arg0).headers=getObject(arg1)},__wbg_set_method_8c015e8bcafd7be1:function(arg0,arg1,arg2){getObject(arg0).method=getStringFromWasm0(arg1,arg2)},__wbg_set_mode_5a87f2c809cf37c2:function(arg0,arg1){getObject(arg0).mode=__wbindgen_enum_RequestMode[arg1]},__wbg_set_onclose_8da801226bdd7a7b:function(arg0,arg1){getObject(arg0).onclose=getObject(arg1)},__wbg_set_onerror_901ca711f94a5bbb:function(arg0,arg1){getObject(arg0).onerror=getObject(arg1)},__wbg_set_onmessage_6f80ab771bf151aa:function(arg0,arg1){getObject(arg0).onmessage=getObject(arg1)},__wbg_set_onopen_34e3e24cf9337ddd:function(arg0,arg1){getObject(arg0).onopen=getObject(arg1)},__wbg_set_signal_0cebecb698f25d21:function(arg0,arg1){getObject(arg0).signal=getObject(arg1)},__wbg_signal_166e1da31adcac18:function(arg0){const ret=getObject(arg0).signal;return addHeapObject(ret)},__wbg_static_accessor_GLOBAL_8adb955bd33fac2f:function(){const ret="undefined"==typeof global?null:global;return isLikeNone(ret)?0:addHeapObject(ret)},__wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913:function(){const ret="undefined"==typeof globalThis?null:globalThis;return isLikeNone(ret)?0:addHeapObject(ret)},__wbg_static_accessor_SELF_f207c857566db248:function(){const ret="undefined"==typeof self?null:self;return isLikeNone(ret)?0:addHeapObject(ret)},__wbg_static_accessor_WINDOW_bb9f1ba69d61b386:function(){const ret="undefined"==typeof window?null:window;return isLikeNone(ret)?0:addHeapObject(ret)},__wbg_status_318629ab93a22955:function(arg0){const ret=getObject(arg0).status;return ret},__wbg_stringify_5ae93966a84901ac:function(){return handleError(function(arg0){const ret=JSON.stringify(getObject(arg0));return addHeapObject(ret)},arguments)},__wbg_subarray_a068d24e39478a8a:function(arg0,arg1,arg2){const ret=getObject(arg0).subarray(arg1>>>0,arg2>>>0);return addHeapObject(ret)},__wbg_text_372f5b91442c50f9:function(){return handleError(function(arg0){const ret=getObject(arg0).text();return addHeapObject(ret)},arguments)},__wbg_then_098abe61755d12f6:function(arg0,arg1){const ret=getObject(arg0).then(getObject(arg1));return addHeapObject(ret)},__wbg_then_9e335f6dd892bc11:function(arg0,arg1,arg2){const ret=getObject(arg0).then(getObject(arg1),getObject(arg2));return addHeapObject(ret)},__wbg_url_7fefc1820fba4e0c:function(arg0,arg1){const ret=getObject(arg1).url,ptr1=passStringToWasm0(ret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbg_value_21fc78aab0322612:function(arg0){const ret=getObject(arg0).value;return addHeapObject(ret)},__wbg_versions_276b2795b1c6a219:function(arg0){const ret=getObject(arg0).versions;return addHeapObject(ret)},__wbg_wasClean_69f68dc4ed2d2cc7:function(arg0){const ret=getObject(arg0).wasClean;return ret},__wbindgen_cast_0000000000000001:function(arg0,arg1){const ret=makeClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_4479,__wasm_bindgen_func_elem_4710);return addHeapObject(ret)},__wbindgen_cast_0000000000000002:function(arg0,arg1){const ret=makeClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_4479,__wasm_bindgen_func_elem_4710_1);return addHeapObject(ret)},__wbindgen_cast_0000000000000003:function(arg0,arg1){const ret=makeMutClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_4479,__wasm_bindgen_func_elem_4717);return addHeapObject(ret)},__wbindgen_cast_0000000000000004:function(arg0,arg1){const ret=makeMutClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_4479,__wasm_bindgen_func_elem_4717_3);return addHeapObject(ret)},__wbindgen_cast_0000000000000005:function(arg0,arg1){const ret=makeClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_4479,__wasm_bindgen_func_elem_4710_4);return addHeapObject(ret)},__wbindgen_cast_0000000000000006:function(arg0,arg1){const ret=makeMutClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_1961,__wasm_bindgen_func_elem_2948);return addHeapObject(ret)},__wbindgen_cast_0000000000000007:function(arg0,arg1){const ret=makeMutClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_1961,__wasm_bindgen_func_elem_3097);return addHeapObject(ret)},__wbindgen_cast_0000000000000008:function(arg0,arg1){const ret=makeMutClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_1961,__wasm_bindgen_func_elem_1963);return addHeapObject(ret)},__wbindgen_cast_0000000000000009:function(arg0,arg1){const ret=getArrayU8FromWasm0(arg0,arg1);return addHeapObject(ret)},__wbindgen_cast_000000000000000a:function(arg0,arg1){const ret=getStringFromWasm0(arg0,arg1);return addHeapObject(ret)},__wbindgen_object_clone_ref:function(arg0){const ret=getObject(arg0);return addHeapObject(ret)},__wbindgen_object_drop_ref:function(arg0){takeObject(arg0)}};return{__proto__:null,"./sodot_executor_bg.js":import0}}function __wasm_bindgen_func_elem_3097(arg0,arg1){wasm.__wasm_bindgen_func_elem_3097(arg0,arg1)}function __wasm_bindgen_func_elem_1963(arg0,arg1){wasm.__wasm_bindgen_func_elem_1963(arg0,arg1)}function __wasm_bindgen_func_elem_4710(arg0,arg1,arg2){wasm.__wasm_bindgen_func_elem_4710(arg0,arg1,addHeapObject(arg2))}function __wasm_bindgen_func_elem_4710_1(arg0,arg1,arg2){wasm.__wasm_bindgen_func_elem_4710_1(arg0,arg1,addHeapObject(arg2))}function __wasm_bindgen_func_elem_4717(arg0,arg1,arg2){wasm.__wasm_bindgen_func_elem_4717(arg0,arg1,addHeapObject(arg2))}function __wasm_bindgen_func_elem_4717_3(arg0,arg1,arg2){wasm.__wasm_bindgen_func_elem_4717_3(arg0,arg1,addHeapObject(arg2))}function __wasm_bindgen_func_elem_4710_4(arg0,arg1,arg2){wasm.__wasm_bindgen_func_elem_4710_4(arg0,arg1,addHeapObject(arg2))}function __wasm_bindgen_func_elem_2948(arg0,arg1,arg2){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wasm_bindgen_func_elem_2948(retptr,arg0,arg1,addHeapObject(arg2));var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);if(r1)throw takeObject(r0)}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}function __wasm_bindgen_func_elem_2294(arg0,arg1,arg2,arg3){wasm.__wasm_bindgen_func_elem_2294(arg0,arg1,addHeapObject(arg2),addHeapObject(arg3))}Symbol.dispose&&(KeygenResult.prototype[Symbol.dispose]=KeygenResult.prototype.free);const __wbindgen_enum_BinaryType=["blob","arraybuffer"],__wbindgen_enum_RequestCache=["default","no-store","reload","no-cache","force-cache","only-if-cached"],__wbindgen_enum_RequestCredentials=["omit","same-origin","include"],__wbindgen_enum_RequestMode=["same-origin","no-cors","cors","navigate"],EdBls12377KeygenResultFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_edbls12377keygenresult_free(ptr>>>0,1)),KeygenInitFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_keygeninit_free(ptr>>>0,1)),KeygenResultFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_keygenresult_free(ptr>>>0,1));function addHeapObject(obj){heap_next===heap.length&&heap.push(heap.length+1);const idx=heap_next;return heap_next=heap[idx],heap[idx]=obj,idx}const CLOSURE_DTORS="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(state=>state.dtor(state.a,state.b));function debugString(val){const type=typeof val;if("number"==type||"boolean"==type||null==val)return""+val;if("string"==type)return`"${val}"`;if("symbol"==type){const description=val.description;return null==description?"Symbol":`Symbol(${description})`}if("function"==type){const name=val.name;return"string"==typeof name&&0<name.length?`Function(${name})`:"Function"}if(Array.isArray(val)){const length=val.length;let debug="[";0<length&&(debug+=debugString(val[0]));for(let i=1;i<length;i++)debug+=", "+debugString(val[i]);return debug+="]",debug}const builtInMatches=/\[object ([^\]]+)\]/.exec(toString.call(val));let className;if(!(builtInMatches&&1<builtInMatches.length))return toString.call(val);if(className=builtInMatches[1],"Object"==className)try{return"Object("+JSON.stringify(val)+")"}catch(_){return"Object"}return val instanceof Error?`${val.name}: ${val.message}
2
+ `+val.stack:className}function dropObject(idx){idx<1028||(heap[idx]=heap_next,heap_next=idx)}function getArrayU8FromWasm0(ptr,len){return ptr>>>=0,getUint8ArrayMemory0().subarray(+ptr,+ptr+len)}let cachedDataViewMemory0=null;function getDataViewMemory0(){return(null===cachedDataViewMemory0||!0===cachedDataViewMemory0.buffer.detached||void 0===cachedDataViewMemory0.buffer.detached&&cachedDataViewMemory0.buffer!==wasm.memory.buffer)&&(cachedDataViewMemory0=new DataView(wasm.memory.buffer)),cachedDataViewMemory0}function getStringFromWasm0(ptr,len){return ptr>>>=0,decodeText(ptr,len)}let cachedUint32ArrayMemory0=null;function getUint32ArrayMemory0(){return null!==cachedUint32ArrayMemory0&&0!==cachedUint32ArrayMemory0.byteLength||(cachedUint32ArrayMemory0=new Uint32Array(wasm.memory.buffer)),cachedUint32ArrayMemory0}let cachedUint8ArrayMemory0=null;function getUint8ArrayMemory0(){return null!==cachedUint8ArrayMemory0&&0!==cachedUint8ArrayMemory0.byteLength||(cachedUint8ArrayMemory0=new Uint8Array(wasm.memory.buffer)),cachedUint8ArrayMemory0}function getObject(idx){return heap[idx]}function handleError(f,args){try{return f.apply(this,args)}catch(e){wasm.__wbindgen_export3(addHeapObject(e))}}let heap=new Array(1024).fill(void 0),heap_next=(heap.push(void 0,null,!0,!1),heap.length);function isLikeNone(x){return null==x}function makeClosure(arg0,arg1,dtor,f){const state={a:arg0,b:arg1,cnt:1,dtor:dtor},real=(...args)=>{state.cnt++;try{return f(state.a,state.b,...args)}finally{real._wbg_cb_unref()}};return real._wbg_cb_unref=()=>{0==--state.cnt&&(state.dtor(state.a,state.b),state.a=0,CLOSURE_DTORS.unregister(state))},CLOSURE_DTORS.register(real,state,state),real}function makeMutClosure(arg0,arg1,dtor,f){const state={a:arg0,b:arg1,cnt:1,dtor:dtor},real=(...args)=>{state.cnt++;const a=state.a;state.a=0;try{return f(a,state.b,...args)}finally{state.a=a,real._wbg_cb_unref()}};return real._wbg_cb_unref=()=>{0==--state.cnt&&(state.dtor(state.a,state.b),state.a=0,CLOSURE_DTORS.unregister(state))},CLOSURE_DTORS.register(real,state,state),real}function passArray32ToWasm0(arg,malloc){const ptr=malloc(4*arg.length,4)>>>0;return getUint32ArrayMemory0().set(arg,ptr/4),WASM_VECTOR_LEN=arg.length,ptr}function passArrayJsValueToWasm0(array,malloc){const ptr=malloc(4*array.length,4)>>>0,mem=getDataViewMemory0();for(let i=0;i<array.length;i++)mem.setUint32(ptr+4*i,addHeapObject(array[i]),!0);return WASM_VECTOR_LEN=array.length,ptr}function passStringToWasm0(arg,malloc,realloc){if(void 0===realloc){const buf=cachedTextEncoder.encode(arg),ptr=malloc(buf.length,1)>>>0;return getUint8ArrayMemory0().subarray(ptr,ptr+buf.length).set(buf),WASM_VECTOR_LEN=buf.length,ptr}let len=arg.length,ptr=malloc(len,1)>>>0;const mem=getUint8ArrayMemory0();let offset=0;for(;offset<len;offset++){const code=arg.charCodeAt(offset);if(127<code)break;mem[ptr+offset]=code}if(offset!==len){0!==offset&&(arg=arg.slice(offset)),ptr=realloc(ptr,len,len=offset+3*arg.length,1)>>>0;const view=getUint8ArrayMemory0().subarray(ptr+offset,ptr+len),ret=cachedTextEncoder.encodeInto(arg,view);offset+=ret.written,ptr=realloc(ptr,len,offset,1)>>>0}return WASM_VECTOR_LEN=offset,ptr}function takeObject(idx){const ret=getObject(idx);return dropObject(idx),ret}let cachedTextDecoder=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});cachedTextDecoder.decode();const MAX_SAFARI_DECODE_BYTES=2146435072;let numBytesDecoded=0;function decodeText(ptr,len){return numBytesDecoded+=len,numBytesDecoded>=MAX_SAFARI_DECODE_BYTES&&(cachedTextDecoder=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),cachedTextDecoder.decode(),numBytesDecoded=len),cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr,ptr+len))}const cachedTextEncoder=new TextEncoder;"encodeInto"in cachedTextEncoder||(cachedTextEncoder.encodeInto=function(arg,view){const buf=cachedTextEncoder.encode(arg);return view.set(buf),{read:arg.length,written:buf.length}});let WASM_VECTOR_LEN=0,wasmModule,wasm;function __wbg_finalize_init(instance,module){return wasm=instance.exports,wasmModule=module,cachedDataViewMemory0=null,cachedUint32ArrayMemory0=null,cachedUint8ArrayMemory0=null,wasm.__wbindgen_start(),wasm}async function __wbg_load(module,imports){if("function"==typeof Response&&module instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(module,imports)}catch(e){const validResponse=module.ok&&expectedResponseType(module.type);if(!validResponse||"application/wasm"===module.headers.get("Content-Type"))throw e;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)}const bytes=await module.arrayBuffer();return WebAssembly.instantiate(bytes,imports)}{const instance=await WebAssembly.instantiate(module,imports);return instance instanceof WebAssembly.Instance?{instance:instance,module:module}:instance}function expectedResponseType(type){switch(type){case"basic":case"cors":case"default":return!0}return!1}}function initSync(module){if(void 0!==wasm)return wasm;void 0!==module&&(Object.getPrototypeOf(module)===Object.prototype?module=module.module:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const imports=__wbg_get_imports(),instance=(module instanceof WebAssembly.Module||(module=new WebAssembly.Module(module)),new WebAssembly.Instance(module,imports));return __wbg_finalize_init(instance,module)}async function __wbg_init(module_or_path){if(void 0!==wasm)return wasm;void 0!==module_or_path&&(Object.getPrototypeOf(module_or_path)===Object.prototype?module_or_path=module_or_path.module_or_path:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===module_or_path&&(module_or_path=new URL("libmpc_executor_bg.wasm",import.meta.url));const imports=__wbg_get_imports(),{instance,module}=(("string"==typeof module_or_path||"function"==typeof Request&&module_or_path instanceof Request||"function"==typeof URL&&module_or_path instanceof URL)&&(module_or_path=fetch(module_or_path)),await __wbg_load(await module_or_path,imports));return __wbg_finalize_init(instance,module)}export{EdBls12377KeygenResult,KeygenInit,KeygenResult,bip340DerivePrivateKeyFromXpriv,bip340DeriveTweakPubkey,bip340DeriveTweakPubkeyFromXpub,bip340ExportFullPrivateKey,bip340GetExportID,bip340GetXpub,bip340ImportPrivateKeyImporter,bip340ImportPrivateKeyRecipient,bip340Keygen,bip340OfflineExportFullPrivateKey,bip340Refresh,bip340ReshareNewParty,bip340ReshareRemainingParty,bip340Sign,createRoom,ecdsaDerivePrivateKeyFromXpriv,ecdsaDerivePubkey,ecdsaDerivePubkeyFromXpub,ecdsaExportFullPrivateKey,ecdsaGetExportID,ecdsaGetXpub,ecdsaImportPrivateKeyImporter,ecdsaImportPrivateKeyRecipient,ecdsaKeygen,ecdsaOfflineExportFullPrivateKey,ecdsaRefresh,ecdsaReshareNewParty,ecdsaReshareRemainingParty,ecdsaSign,ed25519DerivePrivateKeyFromSpriv,ed25519DerivePubkey,ed25519DerivePubkeyFromSpub,ed25519ExportFullPrivateKey,ed25519GetExportID,ed25519GetSpub,ed25519ImportPrivateKeyImporter,ed25519ImportPrivateKeyRecipient,ed25519Keygen,ed25519OfflineExportFullPrivateKey,ed25519Refresh,ed25519ReshareNewParty,ed25519ReshareRemainingParty,ed25519Sign,edBls12377ExportFullPrivateKey,edBls12377ExportViewKey,edBls12377GetExportID,edBls12377ImportPrivateKeyImporter,edBls12377ImportPrivateKeyRecipient,edBls12377Keygen,edBls12377OfflineExportFullPrivateKey,edBls12377OfflineExportViewKey,edBls12377Refresh,edBls12377ReshareNewParty,edBls12377ReshareRemainingParty,edBls12377signRequest,exportableEd25519ExportFullPrivateKey,exportableEd25519GetExportID,exportableEd25519GetPubkey,exportableEd25519ImportPrivateKeyImporter,exportableEd25519ImportPrivateKeyRecipient,exportableEd25519OfflineExportFullPrivateKey,exportableEd25519ReceiveKey,exportableEd25519Refresh,exportableEd25519ReshareNewParty,exportableEd25519ReshareRemainingParty,exportableEd25519SampleKey,exportableEd25519Sign,initKeygen,sr25519DerivePrivateKeyFromPrivateKey,sr25519DerivePubkey,sr25519DerivePubkeyFromPubkey,sr25519ExportFullPrivateKey,sr25519GetExportID,sr25519GetPubkey,sr25519ImportPrivateKeyImporter,sr25519ImportPrivateKeyRecipient,sr25519Keygen,sr25519OfflineExportFullPrivateKey,sr25519Refresh,sr25519ReshareNewParty,sr25519ReshareRemainingParty,sr25519Sign,start,initSync,__wbg_init as default};
@@ -1,5 +1,5 @@
1
- import { EcdsaInitKeygenResult, Ecdsa as EcdsaInternal, EcdsaKeygenResult, EcdsaPublicKey, EcdsaSignature, Ed25519InitKeygenResult, Ed25519 as Ed25519Internal, Ed25519KeygenResult, ExportableEd25519InitKeygenResult, ExportableEd25519 as ExportableEd25519Internal, ExportableEd25519KeygenResult, Sr25519InitKeygenResult, Sr25519 as Sr25519Internal, Sr25519KeygenResult, BIP340InitKeygenResult, BIP340 as BIP340Internal, BIP340KeygenResult, MessageHash } from '../core/index.d.ts';
2
- export { EcdsaKeygenResult, EcdsaPublicKey, EcdsaSignature, Ed25519KeygenResult, ExportableEd25519KeygenResult, ExportableEd25519InitKeygenResult, Sr25519KeygenResult, MessageHash, EcdsaInitKeygenResult, Ed25519InitKeygenResult, Sr25519InitKeygenResult, BIP340InitKeygenResult, BIP340KeygenResult, };
1
+ import { EcdsaInitKeygenResult, Ecdsa as EcdsaInternal, EcdsaKeygenResult, EcdsaPublicKey, EcdsaSignature, Ed25519InitKeygenResult, Ed25519 as Ed25519Internal, Ed25519KeygenResult, ExportableEd25519InitKeygenResult, ExportableEd25519 as ExportableEd25519Internal, ExportableEd25519KeygenResult, Sr25519InitKeygenResult, Sr25519 as Sr25519Internal, Sr25519KeygenResult, BIP340InitKeygenResult, BIP340 as BIP340Internal, BIP340KeygenResult, EdBls12377 as EdBls12377Internal, EdBls12377InitKeygenResult, EdBls12377KeygenResult, EdBls12377FieldElement, EdBls12377GroupElement, EdBls12377RequestInput, EdBls12377RequestSignPayload, EdBls12377SignedRequest, MessageHash } from '../core/index.d.ts';
2
+ export { EcdsaKeygenResult, EcdsaPublicKey, EcdsaSignature, Ed25519KeygenResult, ExportableEd25519KeygenResult, ExportableEd25519InitKeygenResult, Sr25519KeygenResult, MessageHash, EcdsaInitKeygenResult, Ed25519InitKeygenResult, Sr25519InitKeygenResult, BIP340InitKeygenResult, BIP340KeygenResult, EdBls12377InitKeygenResult, EdBls12377KeygenResult, EdBls12377FieldElement, EdBls12377GroupElement, EdBls12377RequestInput, EdBls12377RequestSignPayload, EdBls12377SignedRequest, };
3
3
  export declare class Ecdsa extends EcdsaInternal {
4
4
  constructor(hostUrl?: string);
5
5
  }
@@ -15,3 +15,6 @@ export declare class ExportableEd25519 extends ExportableEd25519Internal {
15
15
  export declare class BIP340 extends BIP340Internal {
16
16
  constructor(hostUrl?: string);
17
17
  }
18
+ export declare class EdBls12377 extends EdBls12377Internal {
19
+ constructor(hostUrl?: string);
20
+ }