@breeztech/breez-sdk-spark 0.7.8 → 0.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/breez-sdk-spark.tgz +0 -0
- package/bundler/breez_sdk_spark_wasm.d.ts +18 -18
- package/bundler/breez_sdk_spark_wasm_bg.js +27 -27
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +9 -9
- package/deno/breez_sdk_spark_wasm.d.ts +18 -18
- package/deno/breez_sdk_spark_wasm.js +27 -27
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +9 -9
- package/nodejs/breez_sdk_spark_wasm.d.ts +18 -18
- package/nodejs/breez_sdk_spark_wasm.js +27 -27
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +9 -9
- package/package.json +1 -1
- package/web/breez_sdk_spark_wasm.d.ts +27 -27
- package/web/breez_sdk_spark_wasm.js +27 -27
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +9 -9
package/breez-sdk-spark.tgz
CHANGED
|
Binary file
|
|
@@ -818,19 +818,19 @@ export interface ExternalSigner {
|
|
|
818
818
|
derivePublicKey(path: string): Promise<PublicKeyBytes>;
|
|
819
819
|
signEcdsa(message: MessageBytes, path: string): Promise<EcdsaSignatureBytes>;
|
|
820
820
|
signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
|
|
821
|
-
|
|
822
|
-
|
|
821
|
+
encryptEcies(message: Uint8Array, path: string): Promise<Uint8Array>;
|
|
822
|
+
decryptEcies(message: Uint8Array, path: string): Promise<Uint8Array>;
|
|
823
823
|
signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
|
|
824
|
-
|
|
824
|
+
generateRandomSigningCommitment(): Promise<ExternalFrostCommitments>;
|
|
825
825
|
getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
826
|
+
generateRandomSecret(): Promise<ExternalEncryptedSecret>;
|
|
827
|
+
staticDepositSecretEncrypted(index: number): Promise<ExternalSecretSource>;
|
|
828
|
+
staticDepositSecret(index: number): Promise<SecretBytes>;
|
|
829
|
+
staticDepositSigningKey(index: number): Promise<PublicKeyBytes>;
|
|
830
|
+
subtractSecrets(signingKey: ExternalSecretSource, newSigningKey: ExternalSecretSource): Promise<ExternalSecretSource>;
|
|
831
831
|
splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, numShares: number): Promise<ExternalVerifiableSecretShare[]>;
|
|
832
832
|
encryptPrivateKeyForReceiver(privateKey: ExternalEncryptedSecret, receiverPublicKey: PublicKeyBytes): Promise<Uint8Array>;
|
|
833
|
-
|
|
833
|
+
publicKeyFromSecret(privateKey: ExternalSecretSource): Promise<PublicKeyBytes>;
|
|
834
834
|
signFrost(request: ExternalSignFrostRequest): Promise<ExternalFrostSignatureShare>;
|
|
835
835
|
aggregateFrost(request: ExternalAggregateFrostRequest): Promise<ExternalFrostSignature>;
|
|
836
836
|
hmacSha256(message: Uint8Array, path: string): Promise<HashedMessageBytes>;
|
|
@@ -1027,23 +1027,23 @@ export class DefaultSigner {
|
|
|
1027
1027
|
signEcdsa(message: MessageBytes, path: string): Promise<EcdsaSignatureBytes>;
|
|
1028
1028
|
signFrost(request: ExternalSignFrostRequest): Promise<ExternalFrostSignatureShare>;
|
|
1029
1029
|
hmacSha256(message: Uint8Array, path: string): Promise<HashedMessageBytes>;
|
|
1030
|
-
|
|
1031
|
-
|
|
1030
|
+
decryptEcies(message: Uint8Array, path: string): Promise<Uint8Array>;
|
|
1031
|
+
encryptEcies(message: Uint8Array, path: string): Promise<Uint8Array>;
|
|
1032
1032
|
aggregateFrost(request: ExternalAggregateFrostRequest): Promise<ExternalFrostSignature>;
|
|
1033
|
-
|
|
1033
|
+
subtractSecrets(signing_key: ExternalSecretSource, new_signing_key: ExternalSecretSource): Promise<ExternalSecretSource>;
|
|
1034
1034
|
derivePublicKey(path: string): Promise<PublicKeyBytes>;
|
|
1035
1035
|
signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
|
|
1036
|
-
generateRandomKey(): Promise<ExternalSecretSource>;
|
|
1037
1036
|
identityPublicKey(): PublicKeyBytes;
|
|
1038
|
-
|
|
1039
|
-
|
|
1037
|
+
staticDepositSecret(index: number): Promise<SecretBytes>;
|
|
1038
|
+
generateRandomSecret(): Promise<ExternalEncryptedSecret>;
|
|
1039
|
+
publicKeyFromSecret(private_key: ExternalSecretSource): Promise<PublicKeyBytes>;
|
|
1040
1040
|
signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
|
|
1041
1041
|
getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
|
|
1042
1042
|
splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, num_shares: number): Promise<ExternalVerifiableSecretShare[]>;
|
|
1043
|
-
|
|
1043
|
+
staticDepositSigningKey(index: number): Promise<PublicKeyBytes>;
|
|
1044
1044
|
encryptPrivateKeyForReceiver(private_key: ExternalEncryptedSecret, receiver_public_key: PublicKeyBytes): Promise<Uint8Array>;
|
|
1045
|
-
|
|
1046
|
-
|
|
1045
|
+
staticDepositSecretEncrypted(index: number): Promise<ExternalSecretSource>;
|
|
1046
|
+
generateRandomSigningCommitment(): Promise<ExternalFrostCommitments>;
|
|
1047
1047
|
}
|
|
1048
1048
|
export class IntoUnderlyingByteSource {
|
|
1049
1049
|
private constructor();
|
|
@@ -701,12 +701,12 @@ export class DefaultSigner {
|
|
|
701
701
|
* @param {string} path
|
|
702
702
|
* @returns {Promise<Uint8Array>}
|
|
703
703
|
*/
|
|
704
|
-
|
|
704
|
+
decryptEcies(message, path) {
|
|
705
705
|
const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
706
706
|
const len0 = WASM_VECTOR_LEN;
|
|
707
707
|
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
708
708
|
const len1 = WASM_VECTOR_LEN;
|
|
709
|
-
const ret = wasm.
|
|
709
|
+
const ret = wasm.defaultsigner_decryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
710
710
|
return ret;
|
|
711
711
|
}
|
|
712
712
|
/**
|
|
@@ -714,12 +714,12 @@ export class DefaultSigner {
|
|
|
714
714
|
* @param {string} path
|
|
715
715
|
* @returns {Promise<Uint8Array>}
|
|
716
716
|
*/
|
|
717
|
-
|
|
717
|
+
encryptEcies(message, path) {
|
|
718
718
|
const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
719
719
|
const len0 = WASM_VECTOR_LEN;
|
|
720
720
|
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
721
721
|
const len1 = WASM_VECTOR_LEN;
|
|
722
|
-
const ret = wasm.
|
|
722
|
+
const ret = wasm.defaultsigner_encryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
723
723
|
return ret;
|
|
724
724
|
}
|
|
725
725
|
/**
|
|
@@ -735,8 +735,8 @@ export class DefaultSigner {
|
|
|
735
735
|
* @param {ExternalSecretSource} new_signing_key
|
|
736
736
|
* @returns {Promise<ExternalSecretSource>}
|
|
737
737
|
*/
|
|
738
|
-
|
|
739
|
-
const ret = wasm.
|
|
738
|
+
subtractSecrets(signing_key, new_signing_key) {
|
|
739
|
+
const ret = wasm.defaultsigner_subtractSecrets(this.__wbg_ptr, signing_key, new_signing_key);
|
|
740
740
|
return ret;
|
|
741
741
|
}
|
|
742
742
|
/**
|
|
@@ -762,13 +762,6 @@ export class DefaultSigner {
|
|
|
762
762
|
const ret = wasm.defaultsigner_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
763
763
|
return ret;
|
|
764
764
|
}
|
|
765
|
-
/**
|
|
766
|
-
* @returns {Promise<ExternalSecretSource>}
|
|
767
|
-
*/
|
|
768
|
-
generateRandomKey() {
|
|
769
|
-
const ret = wasm.defaultsigner_generateRandomKey(this.__wbg_ptr);
|
|
770
|
-
return ret;
|
|
771
|
-
}
|
|
772
765
|
/**
|
|
773
766
|
* @returns {PublicKeyBytes}
|
|
774
767
|
*/
|
|
@@ -783,16 +776,23 @@ export class DefaultSigner {
|
|
|
783
776
|
* @param {number} index
|
|
784
777
|
* @returns {Promise<SecretBytes>}
|
|
785
778
|
*/
|
|
786
|
-
|
|
787
|
-
const ret = wasm.
|
|
779
|
+
staticDepositSecret(index) {
|
|
780
|
+
const ret = wasm.defaultsigner_staticDepositSecret(this.__wbg_ptr, index);
|
|
781
|
+
return ret;
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* @returns {Promise<ExternalEncryptedSecret>}
|
|
785
|
+
*/
|
|
786
|
+
generateRandomSecret() {
|
|
787
|
+
const ret = wasm.defaultsigner_generateRandomSecret(this.__wbg_ptr);
|
|
788
788
|
return ret;
|
|
789
789
|
}
|
|
790
790
|
/**
|
|
791
791
|
* @param {ExternalSecretSource} private_key
|
|
792
792
|
* @returns {Promise<PublicKeyBytes>}
|
|
793
793
|
*/
|
|
794
|
-
|
|
795
|
-
const ret = wasm.
|
|
794
|
+
publicKeyFromSecret(private_key) {
|
|
795
|
+
const ret = wasm.defaultsigner_publicKeyFromSecret(this.__wbg_ptr, private_key);
|
|
796
796
|
return ret;
|
|
797
797
|
}
|
|
798
798
|
/**
|
|
@@ -828,8 +828,8 @@ export class DefaultSigner {
|
|
|
828
828
|
* @param {number} index
|
|
829
829
|
* @returns {Promise<PublicKeyBytes>}
|
|
830
830
|
*/
|
|
831
|
-
|
|
832
|
-
const ret = wasm.
|
|
831
|
+
staticDepositSigningKey(index) {
|
|
832
|
+
const ret = wasm.defaultsigner_staticDepositSigningKey(this.__wbg_ptr, index);
|
|
833
833
|
return ret;
|
|
834
834
|
}
|
|
835
835
|
/**
|
|
@@ -845,15 +845,15 @@ export class DefaultSigner {
|
|
|
845
845
|
* @param {number} index
|
|
846
846
|
* @returns {Promise<ExternalSecretSource>}
|
|
847
847
|
*/
|
|
848
|
-
|
|
849
|
-
const ret = wasm.
|
|
848
|
+
staticDepositSecretEncrypted(index) {
|
|
849
|
+
const ret = wasm.defaultsigner_staticDepositSecretEncrypted(this.__wbg_ptr, index);
|
|
850
850
|
return ret;
|
|
851
851
|
}
|
|
852
852
|
/**
|
|
853
853
|
* @returns {Promise<ExternalFrostCommitments>}
|
|
854
854
|
*/
|
|
855
|
-
|
|
856
|
-
const ret = wasm.
|
|
855
|
+
generateRandomSigningCommitment() {
|
|
856
|
+
const ret = wasm.defaultsigner_generateRandomSigningCommitment(this.__wbg_ptr);
|
|
857
857
|
return ret;
|
|
858
858
|
}
|
|
859
859
|
}
|
|
@@ -1487,8 +1487,8 @@ export function __wbg_generateFrostSigningCommitments_0630bbabc5b72b42() { retur
|
|
|
1487
1487
|
return ret;
|
|
1488
1488
|
}, arguments) };
|
|
1489
1489
|
|
|
1490
|
-
export function
|
|
1491
|
-
const ret = arg0.
|
|
1490
|
+
export function __wbg_generateRandomSecret_3dcc7ca4a61a1d4d() { return handleError(function (arg0) {
|
|
1491
|
+
const ret = arg0.generateRandomSecret();
|
|
1492
1492
|
return ret;
|
|
1493
1493
|
}, arguments) };
|
|
1494
1494
|
|
|
@@ -2383,12 +2383,12 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
2383
2383
|
return ret;
|
|
2384
2384
|
};
|
|
2385
2385
|
|
|
2386
|
-
export function
|
|
2386
|
+
export function __wbindgen_closure_wrapper11279(arg0, arg1, arg2) {
|
|
2387
2387
|
const ret = makeMutClosure(arg0, arg1, 817, __wbg_adapter_64);
|
|
2388
2388
|
return ret;
|
|
2389
2389
|
};
|
|
2390
2390
|
|
|
2391
|
-
export function
|
|
2391
|
+
export function __wbindgen_closure_wrapper13184(arg0, arg1, arg2) {
|
|
2392
2392
|
const ret = makeMutClosure(arg0, arg1, 1053, __wbg_adapter_67);
|
|
2393
2393
|
return ret;
|
|
2394
2394
|
};
|
|
Binary file
|
|
@@ -46,25 +46,25 @@ export const connectWithSigner: (a: any, b: any, c: number, d: number) => any;
|
|
|
46
46
|
export const defaultConfig: (a: any) => any;
|
|
47
47
|
export const defaultExternalSigner: (a: number, b: number, c: number, d: number, e: any, f: number) => [number, number, number];
|
|
48
48
|
export const defaultsigner_aggregateFrost: (a: number, b: any) => any;
|
|
49
|
+
export const defaultsigner_decryptEcies: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
49
50
|
export const defaultsigner_derivePublicKey: (a: number, b: number, c: number) => any;
|
|
50
|
-
export const
|
|
51
|
-
export const defaultsigner_eciesEncrypt: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
51
|
+
export const defaultsigner_encryptEcies: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
52
52
|
export const defaultsigner_encryptPrivateKeyForReceiver: (a: number, b: any, c: any) => any;
|
|
53
|
-
export const
|
|
54
|
-
export const
|
|
53
|
+
export const defaultsigner_generateRandomSecret: (a: number) => any;
|
|
54
|
+
export const defaultsigner_generateRandomSigningCommitment: (a: number) => any;
|
|
55
55
|
export const defaultsigner_getPublicKeyForNode: (a: number, b: any) => any;
|
|
56
|
-
export const defaultsigner_getPublicKeyFromSecretSource: (a: number, b: any) => any;
|
|
57
|
-
export const defaultsigner_getStaticDepositPrivateKey: (a: number, b: number) => any;
|
|
58
|
-
export const defaultsigner_getStaticDepositPublicKey: (a: number, b: number) => any;
|
|
59
|
-
export const defaultsigner_getStaticDepositSecretSource: (a: number, b: number) => any;
|
|
60
56
|
export const defaultsigner_hmacSha256: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
61
57
|
export const defaultsigner_identityPublicKey: (a: number) => [number, number, number];
|
|
58
|
+
export const defaultsigner_publicKeyFromSecret: (a: number, b: any) => any;
|
|
62
59
|
export const defaultsigner_signEcdsa: (a: number, b: any, c: number, d: number) => any;
|
|
63
60
|
export const defaultsigner_signEcdsaRecoverable: (a: number, b: any, c: number, d: number) => any;
|
|
64
61
|
export const defaultsigner_signFrost: (a: number, b: any) => any;
|
|
65
62
|
export const defaultsigner_signHashSchnorr: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
66
63
|
export const defaultsigner_splitSecretWithProofs: (a: number, b: any, c: number, d: number) => any;
|
|
67
|
-
export const
|
|
64
|
+
export const defaultsigner_staticDepositSecret: (a: number, b: number) => any;
|
|
65
|
+
export const defaultsigner_staticDepositSecretEncrypted: (a: number, b: number) => any;
|
|
66
|
+
export const defaultsigner_staticDepositSigningKey: (a: number, b: number) => any;
|
|
67
|
+
export const defaultsigner_subtractSecrets: (a: number, b: any, c: any) => any;
|
|
68
68
|
export const initLogging: (a: any, b: number, c: number) => any;
|
|
69
69
|
export const sdkbuilder_build: (a: number) => any;
|
|
70
70
|
export const sdkbuilder_new: (a: any, b: any) => number;
|
|
@@ -818,19 +818,19 @@ export interface ExternalSigner {
|
|
|
818
818
|
derivePublicKey(path: string): Promise<PublicKeyBytes>;
|
|
819
819
|
signEcdsa(message: MessageBytes, path: string): Promise<EcdsaSignatureBytes>;
|
|
820
820
|
signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
|
|
821
|
-
|
|
822
|
-
|
|
821
|
+
encryptEcies(message: Uint8Array, path: string): Promise<Uint8Array>;
|
|
822
|
+
decryptEcies(message: Uint8Array, path: string): Promise<Uint8Array>;
|
|
823
823
|
signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
|
|
824
|
-
|
|
824
|
+
generateRandomSigningCommitment(): Promise<ExternalFrostCommitments>;
|
|
825
825
|
getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
826
|
+
generateRandomSecret(): Promise<ExternalEncryptedSecret>;
|
|
827
|
+
staticDepositSecretEncrypted(index: number): Promise<ExternalSecretSource>;
|
|
828
|
+
staticDepositSecret(index: number): Promise<SecretBytes>;
|
|
829
|
+
staticDepositSigningKey(index: number): Promise<PublicKeyBytes>;
|
|
830
|
+
subtractSecrets(signingKey: ExternalSecretSource, newSigningKey: ExternalSecretSource): Promise<ExternalSecretSource>;
|
|
831
831
|
splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, numShares: number): Promise<ExternalVerifiableSecretShare[]>;
|
|
832
832
|
encryptPrivateKeyForReceiver(privateKey: ExternalEncryptedSecret, receiverPublicKey: PublicKeyBytes): Promise<Uint8Array>;
|
|
833
|
-
|
|
833
|
+
publicKeyFromSecret(privateKey: ExternalSecretSource): Promise<PublicKeyBytes>;
|
|
834
834
|
signFrost(request: ExternalSignFrostRequest): Promise<ExternalFrostSignatureShare>;
|
|
835
835
|
aggregateFrost(request: ExternalAggregateFrostRequest): Promise<ExternalFrostSignature>;
|
|
836
836
|
hmacSha256(message: Uint8Array, path: string): Promise<HashedMessageBytes>;
|
|
@@ -1027,23 +1027,23 @@ export class DefaultSigner {
|
|
|
1027
1027
|
signEcdsa(message: MessageBytes, path: string): Promise<EcdsaSignatureBytes>;
|
|
1028
1028
|
signFrost(request: ExternalSignFrostRequest): Promise<ExternalFrostSignatureShare>;
|
|
1029
1029
|
hmacSha256(message: Uint8Array, path: string): Promise<HashedMessageBytes>;
|
|
1030
|
-
|
|
1031
|
-
|
|
1030
|
+
decryptEcies(message: Uint8Array, path: string): Promise<Uint8Array>;
|
|
1031
|
+
encryptEcies(message: Uint8Array, path: string): Promise<Uint8Array>;
|
|
1032
1032
|
aggregateFrost(request: ExternalAggregateFrostRequest): Promise<ExternalFrostSignature>;
|
|
1033
|
-
|
|
1033
|
+
subtractSecrets(signing_key: ExternalSecretSource, new_signing_key: ExternalSecretSource): Promise<ExternalSecretSource>;
|
|
1034
1034
|
derivePublicKey(path: string): Promise<PublicKeyBytes>;
|
|
1035
1035
|
signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
|
|
1036
|
-
generateRandomKey(): Promise<ExternalSecretSource>;
|
|
1037
1036
|
identityPublicKey(): PublicKeyBytes;
|
|
1038
|
-
|
|
1039
|
-
|
|
1037
|
+
staticDepositSecret(index: number): Promise<SecretBytes>;
|
|
1038
|
+
generateRandomSecret(): Promise<ExternalEncryptedSecret>;
|
|
1039
|
+
publicKeyFromSecret(private_key: ExternalSecretSource): Promise<PublicKeyBytes>;
|
|
1040
1040
|
signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
|
|
1041
1041
|
getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
|
|
1042
1042
|
splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, num_shares: number): Promise<ExternalVerifiableSecretShare[]>;
|
|
1043
|
-
|
|
1043
|
+
staticDepositSigningKey(index: number): Promise<PublicKeyBytes>;
|
|
1044
1044
|
encryptPrivateKeyForReceiver(private_key: ExternalEncryptedSecret, receiver_public_key: PublicKeyBytes): Promise<Uint8Array>;
|
|
1045
|
-
|
|
1046
|
-
|
|
1045
|
+
staticDepositSecretEncrypted(index: number): Promise<ExternalSecretSource>;
|
|
1046
|
+
generateRandomSigningCommitment(): Promise<ExternalFrostCommitments>;
|
|
1047
1047
|
}
|
|
1048
1048
|
export class IntoUnderlyingByteSource {
|
|
1049
1049
|
private constructor();
|
|
@@ -684,12 +684,12 @@ export class DefaultSigner {
|
|
|
684
684
|
* @param {string} path
|
|
685
685
|
* @returns {Promise<Uint8Array>}
|
|
686
686
|
*/
|
|
687
|
-
|
|
687
|
+
decryptEcies(message, path) {
|
|
688
688
|
const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
689
689
|
const len0 = WASM_VECTOR_LEN;
|
|
690
690
|
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
691
691
|
const len1 = WASM_VECTOR_LEN;
|
|
692
|
-
const ret = wasm.
|
|
692
|
+
const ret = wasm.defaultsigner_decryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
693
693
|
return ret;
|
|
694
694
|
}
|
|
695
695
|
/**
|
|
@@ -697,12 +697,12 @@ export class DefaultSigner {
|
|
|
697
697
|
* @param {string} path
|
|
698
698
|
* @returns {Promise<Uint8Array>}
|
|
699
699
|
*/
|
|
700
|
-
|
|
700
|
+
encryptEcies(message, path) {
|
|
701
701
|
const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
702
702
|
const len0 = WASM_VECTOR_LEN;
|
|
703
703
|
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
704
704
|
const len1 = WASM_VECTOR_LEN;
|
|
705
|
-
const ret = wasm.
|
|
705
|
+
const ret = wasm.defaultsigner_encryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
706
706
|
return ret;
|
|
707
707
|
}
|
|
708
708
|
/**
|
|
@@ -718,8 +718,8 @@ export class DefaultSigner {
|
|
|
718
718
|
* @param {ExternalSecretSource} new_signing_key
|
|
719
719
|
* @returns {Promise<ExternalSecretSource>}
|
|
720
720
|
*/
|
|
721
|
-
|
|
722
|
-
const ret = wasm.
|
|
721
|
+
subtractSecrets(signing_key, new_signing_key) {
|
|
722
|
+
const ret = wasm.defaultsigner_subtractSecrets(this.__wbg_ptr, signing_key, new_signing_key);
|
|
723
723
|
return ret;
|
|
724
724
|
}
|
|
725
725
|
/**
|
|
@@ -745,13 +745,6 @@ export class DefaultSigner {
|
|
|
745
745
|
const ret = wasm.defaultsigner_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
746
746
|
return ret;
|
|
747
747
|
}
|
|
748
|
-
/**
|
|
749
|
-
* @returns {Promise<ExternalSecretSource>}
|
|
750
|
-
*/
|
|
751
|
-
generateRandomKey() {
|
|
752
|
-
const ret = wasm.defaultsigner_generateRandomKey(this.__wbg_ptr);
|
|
753
|
-
return ret;
|
|
754
|
-
}
|
|
755
748
|
/**
|
|
756
749
|
* @returns {PublicKeyBytes}
|
|
757
750
|
*/
|
|
@@ -766,16 +759,23 @@ export class DefaultSigner {
|
|
|
766
759
|
* @param {number} index
|
|
767
760
|
* @returns {Promise<SecretBytes>}
|
|
768
761
|
*/
|
|
769
|
-
|
|
770
|
-
const ret = wasm.
|
|
762
|
+
staticDepositSecret(index) {
|
|
763
|
+
const ret = wasm.defaultsigner_staticDepositSecret(this.__wbg_ptr, index);
|
|
764
|
+
return ret;
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* @returns {Promise<ExternalEncryptedSecret>}
|
|
768
|
+
*/
|
|
769
|
+
generateRandomSecret() {
|
|
770
|
+
const ret = wasm.defaultsigner_generateRandomSecret(this.__wbg_ptr);
|
|
771
771
|
return ret;
|
|
772
772
|
}
|
|
773
773
|
/**
|
|
774
774
|
* @param {ExternalSecretSource} private_key
|
|
775
775
|
* @returns {Promise<PublicKeyBytes>}
|
|
776
776
|
*/
|
|
777
|
-
|
|
778
|
-
const ret = wasm.
|
|
777
|
+
publicKeyFromSecret(private_key) {
|
|
778
|
+
const ret = wasm.defaultsigner_publicKeyFromSecret(this.__wbg_ptr, private_key);
|
|
779
779
|
return ret;
|
|
780
780
|
}
|
|
781
781
|
/**
|
|
@@ -811,8 +811,8 @@ export class DefaultSigner {
|
|
|
811
811
|
* @param {number} index
|
|
812
812
|
* @returns {Promise<PublicKeyBytes>}
|
|
813
813
|
*/
|
|
814
|
-
|
|
815
|
-
const ret = wasm.
|
|
814
|
+
staticDepositSigningKey(index) {
|
|
815
|
+
const ret = wasm.defaultsigner_staticDepositSigningKey(this.__wbg_ptr, index);
|
|
816
816
|
return ret;
|
|
817
817
|
}
|
|
818
818
|
/**
|
|
@@ -828,15 +828,15 @@ export class DefaultSigner {
|
|
|
828
828
|
* @param {number} index
|
|
829
829
|
* @returns {Promise<ExternalSecretSource>}
|
|
830
830
|
*/
|
|
831
|
-
|
|
832
|
-
const ret = wasm.
|
|
831
|
+
staticDepositSecretEncrypted(index) {
|
|
832
|
+
const ret = wasm.defaultsigner_staticDepositSecretEncrypted(this.__wbg_ptr, index);
|
|
833
833
|
return ret;
|
|
834
834
|
}
|
|
835
835
|
/**
|
|
836
836
|
* @returns {Promise<ExternalFrostCommitments>}
|
|
837
837
|
*/
|
|
838
|
-
|
|
839
|
-
const ret = wasm.
|
|
838
|
+
generateRandomSigningCommitment() {
|
|
839
|
+
const ret = wasm.defaultsigner_generateRandomSigningCommitment(this.__wbg_ptr);
|
|
840
840
|
return ret;
|
|
841
841
|
}
|
|
842
842
|
}
|
|
@@ -1428,8 +1428,8 @@ const imports = {
|
|
|
1428
1428
|
const ret = arg0.generateFrostSigningCommitments();
|
|
1429
1429
|
return ret;
|
|
1430
1430
|
}, arguments) },
|
|
1431
|
-
|
|
1432
|
-
const ret = arg0.
|
|
1431
|
+
__wbg_generateRandomSecret_3dcc7ca4a61a1d4d: function() { return handleError(function (arg0) {
|
|
1432
|
+
const ret = arg0.generateRandomSecret();
|
|
1433
1433
|
return ret;
|
|
1434
1434
|
}, arguments) },
|
|
1435
1435
|
__wbg_getAddressUtxos_328ceb8b4a63a6da: function() { return handleError(function (arg0, arg1, arg2) {
|
|
@@ -2182,11 +2182,11 @@ const imports = {
|
|
|
2182
2182
|
const ret = false;
|
|
2183
2183
|
return ret;
|
|
2184
2184
|
},
|
|
2185
|
-
|
|
2185
|
+
__wbindgen_closure_wrapper11279: function(arg0, arg1, arg2) {
|
|
2186
2186
|
const ret = makeMutClosure(arg0, arg1, 817, __wbg_adapter_64);
|
|
2187
2187
|
return ret;
|
|
2188
2188
|
},
|
|
2189
|
-
|
|
2189
|
+
__wbindgen_closure_wrapper13184: function(arg0, arg1, arg2) {
|
|
2190
2190
|
const ret = makeMutClosure(arg0, arg1, 1053, __wbg_adapter_67);
|
|
2191
2191
|
return ret;
|
|
2192
2192
|
},
|
|
Binary file
|
|
@@ -46,25 +46,25 @@ export const connectWithSigner: (a: any, b: any, c: number, d: number) => any;
|
|
|
46
46
|
export const defaultConfig: (a: any) => any;
|
|
47
47
|
export const defaultExternalSigner: (a: number, b: number, c: number, d: number, e: any, f: number) => [number, number, number];
|
|
48
48
|
export const defaultsigner_aggregateFrost: (a: number, b: any) => any;
|
|
49
|
+
export const defaultsigner_decryptEcies: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
49
50
|
export const defaultsigner_derivePublicKey: (a: number, b: number, c: number) => any;
|
|
50
|
-
export const
|
|
51
|
-
export const defaultsigner_eciesEncrypt: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
51
|
+
export const defaultsigner_encryptEcies: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
52
52
|
export const defaultsigner_encryptPrivateKeyForReceiver: (a: number, b: any, c: any) => any;
|
|
53
|
-
export const
|
|
54
|
-
export const
|
|
53
|
+
export const defaultsigner_generateRandomSecret: (a: number) => any;
|
|
54
|
+
export const defaultsigner_generateRandomSigningCommitment: (a: number) => any;
|
|
55
55
|
export const defaultsigner_getPublicKeyForNode: (a: number, b: any) => any;
|
|
56
|
-
export const defaultsigner_getPublicKeyFromSecretSource: (a: number, b: any) => any;
|
|
57
|
-
export const defaultsigner_getStaticDepositPrivateKey: (a: number, b: number) => any;
|
|
58
|
-
export const defaultsigner_getStaticDepositPublicKey: (a: number, b: number) => any;
|
|
59
|
-
export const defaultsigner_getStaticDepositSecretSource: (a: number, b: number) => any;
|
|
60
56
|
export const defaultsigner_hmacSha256: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
61
57
|
export const defaultsigner_identityPublicKey: (a: number) => [number, number, number];
|
|
58
|
+
export const defaultsigner_publicKeyFromSecret: (a: number, b: any) => any;
|
|
62
59
|
export const defaultsigner_signEcdsa: (a: number, b: any, c: number, d: number) => any;
|
|
63
60
|
export const defaultsigner_signEcdsaRecoverable: (a: number, b: any, c: number, d: number) => any;
|
|
64
61
|
export const defaultsigner_signFrost: (a: number, b: any) => any;
|
|
65
62
|
export const defaultsigner_signHashSchnorr: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
66
63
|
export const defaultsigner_splitSecretWithProofs: (a: number, b: any, c: number, d: number) => any;
|
|
67
|
-
export const
|
|
64
|
+
export const defaultsigner_staticDepositSecret: (a: number, b: number) => any;
|
|
65
|
+
export const defaultsigner_staticDepositSecretEncrypted: (a: number, b: number) => any;
|
|
66
|
+
export const defaultsigner_staticDepositSigningKey: (a: number, b: number) => any;
|
|
67
|
+
export const defaultsigner_subtractSecrets: (a: number, b: any, c: any) => any;
|
|
68
68
|
export const initLogging: (a: any, b: number, c: number) => any;
|
|
69
69
|
export const sdkbuilder_build: (a: number) => any;
|
|
70
70
|
export const sdkbuilder_new: (a: any, b: any) => number;
|
|
@@ -818,19 +818,19 @@ export interface ExternalSigner {
|
|
|
818
818
|
derivePublicKey(path: string): Promise<PublicKeyBytes>;
|
|
819
819
|
signEcdsa(message: MessageBytes, path: string): Promise<EcdsaSignatureBytes>;
|
|
820
820
|
signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
|
|
821
|
-
|
|
822
|
-
|
|
821
|
+
encryptEcies(message: Uint8Array, path: string): Promise<Uint8Array>;
|
|
822
|
+
decryptEcies(message: Uint8Array, path: string): Promise<Uint8Array>;
|
|
823
823
|
signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
|
|
824
|
-
|
|
824
|
+
generateRandomSigningCommitment(): Promise<ExternalFrostCommitments>;
|
|
825
825
|
getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
826
|
+
generateRandomSecret(): Promise<ExternalEncryptedSecret>;
|
|
827
|
+
staticDepositSecretEncrypted(index: number): Promise<ExternalSecretSource>;
|
|
828
|
+
staticDepositSecret(index: number): Promise<SecretBytes>;
|
|
829
|
+
staticDepositSigningKey(index: number): Promise<PublicKeyBytes>;
|
|
830
|
+
subtractSecrets(signingKey: ExternalSecretSource, newSigningKey: ExternalSecretSource): Promise<ExternalSecretSource>;
|
|
831
831
|
splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, numShares: number): Promise<ExternalVerifiableSecretShare[]>;
|
|
832
832
|
encryptPrivateKeyForReceiver(privateKey: ExternalEncryptedSecret, receiverPublicKey: PublicKeyBytes): Promise<Uint8Array>;
|
|
833
|
-
|
|
833
|
+
publicKeyFromSecret(privateKey: ExternalSecretSource): Promise<PublicKeyBytes>;
|
|
834
834
|
signFrost(request: ExternalSignFrostRequest): Promise<ExternalFrostSignatureShare>;
|
|
835
835
|
aggregateFrost(request: ExternalAggregateFrostRequest): Promise<ExternalFrostSignature>;
|
|
836
836
|
hmacSha256(message: Uint8Array, path: string): Promise<HashedMessageBytes>;
|
|
@@ -1027,23 +1027,23 @@ export class DefaultSigner {
|
|
|
1027
1027
|
signEcdsa(message: MessageBytes, path: string): Promise<EcdsaSignatureBytes>;
|
|
1028
1028
|
signFrost(request: ExternalSignFrostRequest): Promise<ExternalFrostSignatureShare>;
|
|
1029
1029
|
hmacSha256(message: Uint8Array, path: string): Promise<HashedMessageBytes>;
|
|
1030
|
-
|
|
1031
|
-
|
|
1030
|
+
decryptEcies(message: Uint8Array, path: string): Promise<Uint8Array>;
|
|
1031
|
+
encryptEcies(message: Uint8Array, path: string): Promise<Uint8Array>;
|
|
1032
1032
|
aggregateFrost(request: ExternalAggregateFrostRequest): Promise<ExternalFrostSignature>;
|
|
1033
|
-
|
|
1033
|
+
subtractSecrets(signing_key: ExternalSecretSource, new_signing_key: ExternalSecretSource): Promise<ExternalSecretSource>;
|
|
1034
1034
|
derivePublicKey(path: string): Promise<PublicKeyBytes>;
|
|
1035
1035
|
signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
|
|
1036
|
-
generateRandomKey(): Promise<ExternalSecretSource>;
|
|
1037
1036
|
identityPublicKey(): PublicKeyBytes;
|
|
1038
|
-
|
|
1039
|
-
|
|
1037
|
+
staticDepositSecret(index: number): Promise<SecretBytes>;
|
|
1038
|
+
generateRandomSecret(): Promise<ExternalEncryptedSecret>;
|
|
1039
|
+
publicKeyFromSecret(private_key: ExternalSecretSource): Promise<PublicKeyBytes>;
|
|
1040
1040
|
signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
|
|
1041
1041
|
getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
|
|
1042
1042
|
splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, num_shares: number): Promise<ExternalVerifiableSecretShare[]>;
|
|
1043
|
-
|
|
1043
|
+
staticDepositSigningKey(index: number): Promise<PublicKeyBytes>;
|
|
1044
1044
|
encryptPrivateKeyForReceiver(private_key: ExternalEncryptedSecret, receiver_public_key: PublicKeyBytes): Promise<Uint8Array>;
|
|
1045
|
-
|
|
1046
|
-
|
|
1045
|
+
staticDepositSecretEncrypted(index: number): Promise<ExternalSecretSource>;
|
|
1046
|
+
generateRandomSigningCommitment(): Promise<ExternalFrostCommitments>;
|
|
1047
1047
|
}
|
|
1048
1048
|
export class IntoUnderlyingByteSource {
|
|
1049
1049
|
private constructor();
|
|
@@ -698,12 +698,12 @@ class DefaultSigner {
|
|
|
698
698
|
* @param {string} path
|
|
699
699
|
* @returns {Promise<Uint8Array>}
|
|
700
700
|
*/
|
|
701
|
-
|
|
701
|
+
decryptEcies(message, path) {
|
|
702
702
|
const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
703
703
|
const len0 = WASM_VECTOR_LEN;
|
|
704
704
|
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
705
705
|
const len1 = WASM_VECTOR_LEN;
|
|
706
|
-
const ret = wasm.
|
|
706
|
+
const ret = wasm.defaultsigner_decryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
707
707
|
return ret;
|
|
708
708
|
}
|
|
709
709
|
/**
|
|
@@ -711,12 +711,12 @@ class DefaultSigner {
|
|
|
711
711
|
* @param {string} path
|
|
712
712
|
* @returns {Promise<Uint8Array>}
|
|
713
713
|
*/
|
|
714
|
-
|
|
714
|
+
encryptEcies(message, path) {
|
|
715
715
|
const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
716
716
|
const len0 = WASM_VECTOR_LEN;
|
|
717
717
|
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
718
718
|
const len1 = WASM_VECTOR_LEN;
|
|
719
|
-
const ret = wasm.
|
|
719
|
+
const ret = wasm.defaultsigner_encryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
720
720
|
return ret;
|
|
721
721
|
}
|
|
722
722
|
/**
|
|
@@ -732,8 +732,8 @@ class DefaultSigner {
|
|
|
732
732
|
* @param {ExternalSecretSource} new_signing_key
|
|
733
733
|
* @returns {Promise<ExternalSecretSource>}
|
|
734
734
|
*/
|
|
735
|
-
|
|
736
|
-
const ret = wasm.
|
|
735
|
+
subtractSecrets(signing_key, new_signing_key) {
|
|
736
|
+
const ret = wasm.defaultsigner_subtractSecrets(this.__wbg_ptr, signing_key, new_signing_key);
|
|
737
737
|
return ret;
|
|
738
738
|
}
|
|
739
739
|
/**
|
|
@@ -759,13 +759,6 @@ class DefaultSigner {
|
|
|
759
759
|
const ret = wasm.defaultsigner_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
760
760
|
return ret;
|
|
761
761
|
}
|
|
762
|
-
/**
|
|
763
|
-
* @returns {Promise<ExternalSecretSource>}
|
|
764
|
-
*/
|
|
765
|
-
generateRandomKey() {
|
|
766
|
-
const ret = wasm.defaultsigner_generateRandomKey(this.__wbg_ptr);
|
|
767
|
-
return ret;
|
|
768
|
-
}
|
|
769
762
|
/**
|
|
770
763
|
* @returns {PublicKeyBytes}
|
|
771
764
|
*/
|
|
@@ -780,16 +773,23 @@ class DefaultSigner {
|
|
|
780
773
|
* @param {number} index
|
|
781
774
|
* @returns {Promise<SecretBytes>}
|
|
782
775
|
*/
|
|
783
|
-
|
|
784
|
-
const ret = wasm.
|
|
776
|
+
staticDepositSecret(index) {
|
|
777
|
+
const ret = wasm.defaultsigner_staticDepositSecret(this.__wbg_ptr, index);
|
|
778
|
+
return ret;
|
|
779
|
+
}
|
|
780
|
+
/**
|
|
781
|
+
* @returns {Promise<ExternalEncryptedSecret>}
|
|
782
|
+
*/
|
|
783
|
+
generateRandomSecret() {
|
|
784
|
+
const ret = wasm.defaultsigner_generateRandomSecret(this.__wbg_ptr);
|
|
785
785
|
return ret;
|
|
786
786
|
}
|
|
787
787
|
/**
|
|
788
788
|
* @param {ExternalSecretSource} private_key
|
|
789
789
|
* @returns {Promise<PublicKeyBytes>}
|
|
790
790
|
*/
|
|
791
|
-
|
|
792
|
-
const ret = wasm.
|
|
791
|
+
publicKeyFromSecret(private_key) {
|
|
792
|
+
const ret = wasm.defaultsigner_publicKeyFromSecret(this.__wbg_ptr, private_key);
|
|
793
793
|
return ret;
|
|
794
794
|
}
|
|
795
795
|
/**
|
|
@@ -825,8 +825,8 @@ class DefaultSigner {
|
|
|
825
825
|
* @param {number} index
|
|
826
826
|
* @returns {Promise<PublicKeyBytes>}
|
|
827
827
|
*/
|
|
828
|
-
|
|
829
|
-
const ret = wasm.
|
|
828
|
+
staticDepositSigningKey(index) {
|
|
829
|
+
const ret = wasm.defaultsigner_staticDepositSigningKey(this.__wbg_ptr, index);
|
|
830
830
|
return ret;
|
|
831
831
|
}
|
|
832
832
|
/**
|
|
@@ -842,15 +842,15 @@ class DefaultSigner {
|
|
|
842
842
|
* @param {number} index
|
|
843
843
|
* @returns {Promise<ExternalSecretSource>}
|
|
844
844
|
*/
|
|
845
|
-
|
|
846
|
-
const ret = wasm.
|
|
845
|
+
staticDepositSecretEncrypted(index) {
|
|
846
|
+
const ret = wasm.defaultsigner_staticDepositSecretEncrypted(this.__wbg_ptr, index);
|
|
847
847
|
return ret;
|
|
848
848
|
}
|
|
849
849
|
/**
|
|
850
850
|
* @returns {Promise<ExternalFrostCommitments>}
|
|
851
851
|
*/
|
|
852
|
-
|
|
853
|
-
const ret = wasm.
|
|
852
|
+
generateRandomSigningCommitment() {
|
|
853
|
+
const ret = wasm.defaultsigner_generateRandomSigningCommitment(this.__wbg_ptr);
|
|
854
854
|
return ret;
|
|
855
855
|
}
|
|
856
856
|
}
|
|
@@ -1490,8 +1490,8 @@ module.exports.__wbg_generateFrostSigningCommitments_0630bbabc5b72b42 = function
|
|
|
1490
1490
|
return ret;
|
|
1491
1491
|
}, arguments) };
|
|
1492
1492
|
|
|
1493
|
-
module.exports.
|
|
1494
|
-
const ret = arg0.
|
|
1493
|
+
module.exports.__wbg_generateRandomSecret_3dcc7ca4a61a1d4d = function() { return handleError(function (arg0) {
|
|
1494
|
+
const ret = arg0.generateRandomSecret();
|
|
1495
1495
|
return ret;
|
|
1496
1496
|
}, arguments) };
|
|
1497
1497
|
|
|
@@ -2386,12 +2386,12 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
2386
2386
|
return ret;
|
|
2387
2387
|
};
|
|
2388
2388
|
|
|
2389
|
-
module.exports.
|
|
2389
|
+
module.exports.__wbindgen_closure_wrapper11279 = function(arg0, arg1, arg2) {
|
|
2390
2390
|
const ret = makeMutClosure(arg0, arg1, 817, __wbg_adapter_64);
|
|
2391
2391
|
return ret;
|
|
2392
2392
|
};
|
|
2393
2393
|
|
|
2394
|
-
module.exports.
|
|
2394
|
+
module.exports.__wbindgen_closure_wrapper13184 = function(arg0, arg1, arg2) {
|
|
2395
2395
|
const ret = makeMutClosure(arg0, arg1, 1053, __wbg_adapter_67);
|
|
2396
2396
|
return ret;
|
|
2397
2397
|
};
|
|
Binary file
|
|
@@ -46,25 +46,25 @@ export const connectWithSigner: (a: any, b: any, c: number, d: number) => any;
|
|
|
46
46
|
export const defaultConfig: (a: any) => any;
|
|
47
47
|
export const defaultExternalSigner: (a: number, b: number, c: number, d: number, e: any, f: number) => [number, number, number];
|
|
48
48
|
export const defaultsigner_aggregateFrost: (a: number, b: any) => any;
|
|
49
|
+
export const defaultsigner_decryptEcies: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
49
50
|
export const defaultsigner_derivePublicKey: (a: number, b: number, c: number) => any;
|
|
50
|
-
export const
|
|
51
|
-
export const defaultsigner_eciesEncrypt: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
51
|
+
export const defaultsigner_encryptEcies: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
52
52
|
export const defaultsigner_encryptPrivateKeyForReceiver: (a: number, b: any, c: any) => any;
|
|
53
|
-
export const
|
|
54
|
-
export const
|
|
53
|
+
export const defaultsigner_generateRandomSecret: (a: number) => any;
|
|
54
|
+
export const defaultsigner_generateRandomSigningCommitment: (a: number) => any;
|
|
55
55
|
export const defaultsigner_getPublicKeyForNode: (a: number, b: any) => any;
|
|
56
|
-
export const defaultsigner_getPublicKeyFromSecretSource: (a: number, b: any) => any;
|
|
57
|
-
export const defaultsigner_getStaticDepositPrivateKey: (a: number, b: number) => any;
|
|
58
|
-
export const defaultsigner_getStaticDepositPublicKey: (a: number, b: number) => any;
|
|
59
|
-
export const defaultsigner_getStaticDepositSecretSource: (a: number, b: number) => any;
|
|
60
56
|
export const defaultsigner_hmacSha256: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
61
57
|
export const defaultsigner_identityPublicKey: (a: number) => [number, number, number];
|
|
58
|
+
export const defaultsigner_publicKeyFromSecret: (a: number, b: any) => any;
|
|
62
59
|
export const defaultsigner_signEcdsa: (a: number, b: any, c: number, d: number) => any;
|
|
63
60
|
export const defaultsigner_signEcdsaRecoverable: (a: number, b: any, c: number, d: number) => any;
|
|
64
61
|
export const defaultsigner_signFrost: (a: number, b: any) => any;
|
|
65
62
|
export const defaultsigner_signHashSchnorr: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
66
63
|
export const defaultsigner_splitSecretWithProofs: (a: number, b: any, c: number, d: number) => any;
|
|
67
|
-
export const
|
|
64
|
+
export const defaultsigner_staticDepositSecret: (a: number, b: number) => any;
|
|
65
|
+
export const defaultsigner_staticDepositSecretEncrypted: (a: number, b: number) => any;
|
|
66
|
+
export const defaultsigner_staticDepositSigningKey: (a: number, b: number) => any;
|
|
67
|
+
export const defaultsigner_subtractSecrets: (a: number, b: any, c: any) => any;
|
|
68
68
|
export const initLogging: (a: any, b: number, c: number) => any;
|
|
69
69
|
export const sdkbuilder_build: (a: number) => any;
|
|
70
70
|
export const sdkbuilder_new: (a: any, b: any) => number;
|
package/package.json
CHANGED
|
@@ -818,19 +818,19 @@ export interface ExternalSigner {
|
|
|
818
818
|
derivePublicKey(path: string): Promise<PublicKeyBytes>;
|
|
819
819
|
signEcdsa(message: MessageBytes, path: string): Promise<EcdsaSignatureBytes>;
|
|
820
820
|
signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
|
|
821
|
-
|
|
822
|
-
|
|
821
|
+
encryptEcies(message: Uint8Array, path: string): Promise<Uint8Array>;
|
|
822
|
+
decryptEcies(message: Uint8Array, path: string): Promise<Uint8Array>;
|
|
823
823
|
signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
|
|
824
|
-
|
|
824
|
+
generateRandomSigningCommitment(): Promise<ExternalFrostCommitments>;
|
|
825
825
|
getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
826
|
+
generateRandomSecret(): Promise<ExternalEncryptedSecret>;
|
|
827
|
+
staticDepositSecretEncrypted(index: number): Promise<ExternalSecretSource>;
|
|
828
|
+
staticDepositSecret(index: number): Promise<SecretBytes>;
|
|
829
|
+
staticDepositSigningKey(index: number): Promise<PublicKeyBytes>;
|
|
830
|
+
subtractSecrets(signingKey: ExternalSecretSource, newSigningKey: ExternalSecretSource): Promise<ExternalSecretSource>;
|
|
831
831
|
splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, numShares: number): Promise<ExternalVerifiableSecretShare[]>;
|
|
832
832
|
encryptPrivateKeyForReceiver(privateKey: ExternalEncryptedSecret, receiverPublicKey: PublicKeyBytes): Promise<Uint8Array>;
|
|
833
|
-
|
|
833
|
+
publicKeyFromSecret(privateKey: ExternalSecretSource): Promise<PublicKeyBytes>;
|
|
834
834
|
signFrost(request: ExternalSignFrostRequest): Promise<ExternalFrostSignatureShare>;
|
|
835
835
|
aggregateFrost(request: ExternalAggregateFrostRequest): Promise<ExternalFrostSignature>;
|
|
836
836
|
hmacSha256(message: Uint8Array, path: string): Promise<HashedMessageBytes>;
|
|
@@ -1027,23 +1027,23 @@ export class DefaultSigner {
|
|
|
1027
1027
|
signEcdsa(message: MessageBytes, path: string): Promise<EcdsaSignatureBytes>;
|
|
1028
1028
|
signFrost(request: ExternalSignFrostRequest): Promise<ExternalFrostSignatureShare>;
|
|
1029
1029
|
hmacSha256(message: Uint8Array, path: string): Promise<HashedMessageBytes>;
|
|
1030
|
-
|
|
1031
|
-
|
|
1030
|
+
decryptEcies(message: Uint8Array, path: string): Promise<Uint8Array>;
|
|
1031
|
+
encryptEcies(message: Uint8Array, path: string): Promise<Uint8Array>;
|
|
1032
1032
|
aggregateFrost(request: ExternalAggregateFrostRequest): Promise<ExternalFrostSignature>;
|
|
1033
|
-
|
|
1033
|
+
subtractSecrets(signing_key: ExternalSecretSource, new_signing_key: ExternalSecretSource): Promise<ExternalSecretSource>;
|
|
1034
1034
|
derivePublicKey(path: string): Promise<PublicKeyBytes>;
|
|
1035
1035
|
signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
|
|
1036
|
-
generateRandomKey(): Promise<ExternalSecretSource>;
|
|
1037
1036
|
identityPublicKey(): PublicKeyBytes;
|
|
1038
|
-
|
|
1039
|
-
|
|
1037
|
+
staticDepositSecret(index: number): Promise<SecretBytes>;
|
|
1038
|
+
generateRandomSecret(): Promise<ExternalEncryptedSecret>;
|
|
1039
|
+
publicKeyFromSecret(private_key: ExternalSecretSource): Promise<PublicKeyBytes>;
|
|
1040
1040
|
signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
|
|
1041
1041
|
getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
|
|
1042
1042
|
splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, num_shares: number): Promise<ExternalVerifiableSecretShare[]>;
|
|
1043
|
-
|
|
1043
|
+
staticDepositSigningKey(index: number): Promise<PublicKeyBytes>;
|
|
1044
1044
|
encryptPrivateKeyForReceiver(private_key: ExternalEncryptedSecret, receiver_public_key: PublicKeyBytes): Promise<Uint8Array>;
|
|
1045
|
-
|
|
1046
|
-
|
|
1045
|
+
staticDepositSecretEncrypted(index: number): Promise<ExternalSecretSource>;
|
|
1046
|
+
generateRandomSigningCommitment(): Promise<ExternalFrostCommitments>;
|
|
1047
1047
|
}
|
|
1048
1048
|
export class IntoUnderlyingByteSource {
|
|
1049
1049
|
private constructor();
|
|
@@ -1143,25 +1143,25 @@ export interface InitOutput {
|
|
|
1143
1143
|
readonly defaultConfig: (a: any) => any;
|
|
1144
1144
|
readonly defaultExternalSigner: (a: number, b: number, c: number, d: number, e: any, f: number) => [number, number, number];
|
|
1145
1145
|
readonly defaultsigner_aggregateFrost: (a: number, b: any) => any;
|
|
1146
|
+
readonly defaultsigner_decryptEcies: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
1146
1147
|
readonly defaultsigner_derivePublicKey: (a: number, b: number, c: number) => any;
|
|
1147
|
-
readonly
|
|
1148
|
-
readonly defaultsigner_eciesEncrypt: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
1148
|
+
readonly defaultsigner_encryptEcies: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
1149
1149
|
readonly defaultsigner_encryptPrivateKeyForReceiver: (a: number, b: any, c: any) => any;
|
|
1150
|
-
readonly
|
|
1151
|
-
readonly
|
|
1150
|
+
readonly defaultsigner_generateRandomSecret: (a: number) => any;
|
|
1151
|
+
readonly defaultsigner_generateRandomSigningCommitment: (a: number) => any;
|
|
1152
1152
|
readonly defaultsigner_getPublicKeyForNode: (a: number, b: any) => any;
|
|
1153
|
-
readonly defaultsigner_getPublicKeyFromSecretSource: (a: number, b: any) => any;
|
|
1154
|
-
readonly defaultsigner_getStaticDepositPrivateKey: (a: number, b: number) => any;
|
|
1155
|
-
readonly defaultsigner_getStaticDepositPublicKey: (a: number, b: number) => any;
|
|
1156
|
-
readonly defaultsigner_getStaticDepositSecretSource: (a: number, b: number) => any;
|
|
1157
1153
|
readonly defaultsigner_hmacSha256: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
1158
1154
|
readonly defaultsigner_identityPublicKey: (a: number) => [number, number, number];
|
|
1155
|
+
readonly defaultsigner_publicKeyFromSecret: (a: number, b: any) => any;
|
|
1159
1156
|
readonly defaultsigner_signEcdsa: (a: number, b: any, c: number, d: number) => any;
|
|
1160
1157
|
readonly defaultsigner_signEcdsaRecoverable: (a: number, b: any, c: number, d: number) => any;
|
|
1161
1158
|
readonly defaultsigner_signFrost: (a: number, b: any) => any;
|
|
1162
1159
|
readonly defaultsigner_signHashSchnorr: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
1163
1160
|
readonly defaultsigner_splitSecretWithProofs: (a: number, b: any, c: number, d: number) => any;
|
|
1164
|
-
readonly
|
|
1161
|
+
readonly defaultsigner_staticDepositSecret: (a: number, b: number) => any;
|
|
1162
|
+
readonly defaultsigner_staticDepositSecretEncrypted: (a: number, b: number) => any;
|
|
1163
|
+
readonly defaultsigner_staticDepositSigningKey: (a: number, b: number) => any;
|
|
1164
|
+
readonly defaultsigner_subtractSecrets: (a: number, b: any, c: any) => any;
|
|
1165
1165
|
readonly initLogging: (a: any, b: number, c: number) => any;
|
|
1166
1166
|
readonly sdkbuilder_build: (a: number) => any;
|
|
1167
1167
|
readonly sdkbuilder_new: (a: any, b: any) => number;
|
|
@@ -693,12 +693,12 @@ export class DefaultSigner {
|
|
|
693
693
|
* @param {string} path
|
|
694
694
|
* @returns {Promise<Uint8Array>}
|
|
695
695
|
*/
|
|
696
|
-
|
|
696
|
+
decryptEcies(message, path) {
|
|
697
697
|
const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
698
698
|
const len0 = WASM_VECTOR_LEN;
|
|
699
699
|
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
700
700
|
const len1 = WASM_VECTOR_LEN;
|
|
701
|
-
const ret = wasm.
|
|
701
|
+
const ret = wasm.defaultsigner_decryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
702
702
|
return ret;
|
|
703
703
|
}
|
|
704
704
|
/**
|
|
@@ -706,12 +706,12 @@ export class DefaultSigner {
|
|
|
706
706
|
* @param {string} path
|
|
707
707
|
* @returns {Promise<Uint8Array>}
|
|
708
708
|
*/
|
|
709
|
-
|
|
709
|
+
encryptEcies(message, path) {
|
|
710
710
|
const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
711
711
|
const len0 = WASM_VECTOR_LEN;
|
|
712
712
|
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
713
713
|
const len1 = WASM_VECTOR_LEN;
|
|
714
|
-
const ret = wasm.
|
|
714
|
+
const ret = wasm.defaultsigner_encryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
715
715
|
return ret;
|
|
716
716
|
}
|
|
717
717
|
/**
|
|
@@ -727,8 +727,8 @@ export class DefaultSigner {
|
|
|
727
727
|
* @param {ExternalSecretSource} new_signing_key
|
|
728
728
|
* @returns {Promise<ExternalSecretSource>}
|
|
729
729
|
*/
|
|
730
|
-
|
|
731
|
-
const ret = wasm.
|
|
730
|
+
subtractSecrets(signing_key, new_signing_key) {
|
|
731
|
+
const ret = wasm.defaultsigner_subtractSecrets(this.__wbg_ptr, signing_key, new_signing_key);
|
|
732
732
|
return ret;
|
|
733
733
|
}
|
|
734
734
|
/**
|
|
@@ -754,13 +754,6 @@ export class DefaultSigner {
|
|
|
754
754
|
const ret = wasm.defaultsigner_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
755
755
|
return ret;
|
|
756
756
|
}
|
|
757
|
-
/**
|
|
758
|
-
* @returns {Promise<ExternalSecretSource>}
|
|
759
|
-
*/
|
|
760
|
-
generateRandomKey() {
|
|
761
|
-
const ret = wasm.defaultsigner_generateRandomKey(this.__wbg_ptr);
|
|
762
|
-
return ret;
|
|
763
|
-
}
|
|
764
757
|
/**
|
|
765
758
|
* @returns {PublicKeyBytes}
|
|
766
759
|
*/
|
|
@@ -775,16 +768,23 @@ export class DefaultSigner {
|
|
|
775
768
|
* @param {number} index
|
|
776
769
|
* @returns {Promise<SecretBytes>}
|
|
777
770
|
*/
|
|
778
|
-
|
|
779
|
-
const ret = wasm.
|
|
771
|
+
staticDepositSecret(index) {
|
|
772
|
+
const ret = wasm.defaultsigner_staticDepositSecret(this.__wbg_ptr, index);
|
|
773
|
+
return ret;
|
|
774
|
+
}
|
|
775
|
+
/**
|
|
776
|
+
* @returns {Promise<ExternalEncryptedSecret>}
|
|
777
|
+
*/
|
|
778
|
+
generateRandomSecret() {
|
|
779
|
+
const ret = wasm.defaultsigner_generateRandomSecret(this.__wbg_ptr);
|
|
780
780
|
return ret;
|
|
781
781
|
}
|
|
782
782
|
/**
|
|
783
783
|
* @param {ExternalSecretSource} private_key
|
|
784
784
|
* @returns {Promise<PublicKeyBytes>}
|
|
785
785
|
*/
|
|
786
|
-
|
|
787
|
-
const ret = wasm.
|
|
786
|
+
publicKeyFromSecret(private_key) {
|
|
787
|
+
const ret = wasm.defaultsigner_publicKeyFromSecret(this.__wbg_ptr, private_key);
|
|
788
788
|
return ret;
|
|
789
789
|
}
|
|
790
790
|
/**
|
|
@@ -820,8 +820,8 @@ export class DefaultSigner {
|
|
|
820
820
|
* @param {number} index
|
|
821
821
|
* @returns {Promise<PublicKeyBytes>}
|
|
822
822
|
*/
|
|
823
|
-
|
|
824
|
-
const ret = wasm.
|
|
823
|
+
staticDepositSigningKey(index) {
|
|
824
|
+
const ret = wasm.defaultsigner_staticDepositSigningKey(this.__wbg_ptr, index);
|
|
825
825
|
return ret;
|
|
826
826
|
}
|
|
827
827
|
/**
|
|
@@ -837,15 +837,15 @@ export class DefaultSigner {
|
|
|
837
837
|
* @param {number} index
|
|
838
838
|
* @returns {Promise<ExternalSecretSource>}
|
|
839
839
|
*/
|
|
840
|
-
|
|
841
|
-
const ret = wasm.
|
|
840
|
+
staticDepositSecretEncrypted(index) {
|
|
841
|
+
const ret = wasm.defaultsigner_staticDepositSecretEncrypted(this.__wbg_ptr, index);
|
|
842
842
|
return ret;
|
|
843
843
|
}
|
|
844
844
|
/**
|
|
845
845
|
* @returns {Promise<ExternalFrostCommitments>}
|
|
846
846
|
*/
|
|
847
|
-
|
|
848
|
-
const ret = wasm.
|
|
847
|
+
generateRandomSigningCommitment() {
|
|
848
|
+
const ret = wasm.defaultsigner_generateRandomSigningCommitment(this.__wbg_ptr);
|
|
849
849
|
return ret;
|
|
850
850
|
}
|
|
851
851
|
}
|
|
@@ -1469,8 +1469,8 @@ function __wbg_get_imports() {
|
|
|
1469
1469
|
const ret = arg0.generateFrostSigningCommitments();
|
|
1470
1470
|
return ret;
|
|
1471
1471
|
}, arguments) };
|
|
1472
|
-
imports.wbg.
|
|
1473
|
-
const ret = arg0.
|
|
1472
|
+
imports.wbg.__wbg_generateRandomSecret_3dcc7ca4a61a1d4d = function() { return handleError(function (arg0) {
|
|
1473
|
+
const ret = arg0.generateRandomSecret();
|
|
1474
1474
|
return ret;
|
|
1475
1475
|
}, arguments) };
|
|
1476
1476
|
imports.wbg.__wbg_getAddressUtxos_328ceb8b4a63a6da = function() { return handleError(function (arg0, arg1, arg2) {
|
|
@@ -2223,11 +2223,11 @@ function __wbg_get_imports() {
|
|
|
2223
2223
|
const ret = false;
|
|
2224
2224
|
return ret;
|
|
2225
2225
|
};
|
|
2226
|
-
imports.wbg.
|
|
2226
|
+
imports.wbg.__wbindgen_closure_wrapper11279 = function(arg0, arg1, arg2) {
|
|
2227
2227
|
const ret = makeMutClosure(arg0, arg1, 817, __wbg_adapter_64);
|
|
2228
2228
|
return ret;
|
|
2229
2229
|
};
|
|
2230
|
-
imports.wbg.
|
|
2230
|
+
imports.wbg.__wbindgen_closure_wrapper13184 = function(arg0, arg1, arg2) {
|
|
2231
2231
|
const ret = makeMutClosure(arg0, arg1, 1053, __wbg_adapter_67);
|
|
2232
2232
|
return ret;
|
|
2233
2233
|
};
|
|
Binary file
|
|
@@ -46,25 +46,25 @@ export const connectWithSigner: (a: any, b: any, c: number, d: number) => any;
|
|
|
46
46
|
export const defaultConfig: (a: any) => any;
|
|
47
47
|
export const defaultExternalSigner: (a: number, b: number, c: number, d: number, e: any, f: number) => [number, number, number];
|
|
48
48
|
export const defaultsigner_aggregateFrost: (a: number, b: any) => any;
|
|
49
|
+
export const defaultsigner_decryptEcies: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
49
50
|
export const defaultsigner_derivePublicKey: (a: number, b: number, c: number) => any;
|
|
50
|
-
export const
|
|
51
|
-
export const defaultsigner_eciesEncrypt: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
51
|
+
export const defaultsigner_encryptEcies: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
52
52
|
export const defaultsigner_encryptPrivateKeyForReceiver: (a: number, b: any, c: any) => any;
|
|
53
|
-
export const
|
|
54
|
-
export const
|
|
53
|
+
export const defaultsigner_generateRandomSecret: (a: number) => any;
|
|
54
|
+
export const defaultsigner_generateRandomSigningCommitment: (a: number) => any;
|
|
55
55
|
export const defaultsigner_getPublicKeyForNode: (a: number, b: any) => any;
|
|
56
|
-
export const defaultsigner_getPublicKeyFromSecretSource: (a: number, b: any) => any;
|
|
57
|
-
export const defaultsigner_getStaticDepositPrivateKey: (a: number, b: number) => any;
|
|
58
|
-
export const defaultsigner_getStaticDepositPublicKey: (a: number, b: number) => any;
|
|
59
|
-
export const defaultsigner_getStaticDepositSecretSource: (a: number, b: number) => any;
|
|
60
56
|
export const defaultsigner_hmacSha256: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
61
57
|
export const defaultsigner_identityPublicKey: (a: number) => [number, number, number];
|
|
58
|
+
export const defaultsigner_publicKeyFromSecret: (a: number, b: any) => any;
|
|
62
59
|
export const defaultsigner_signEcdsa: (a: number, b: any, c: number, d: number) => any;
|
|
63
60
|
export const defaultsigner_signEcdsaRecoverable: (a: number, b: any, c: number, d: number) => any;
|
|
64
61
|
export const defaultsigner_signFrost: (a: number, b: any) => any;
|
|
65
62
|
export const defaultsigner_signHashSchnorr: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
66
63
|
export const defaultsigner_splitSecretWithProofs: (a: number, b: any, c: number, d: number) => any;
|
|
67
|
-
export const
|
|
64
|
+
export const defaultsigner_staticDepositSecret: (a: number, b: number) => any;
|
|
65
|
+
export const defaultsigner_staticDepositSecretEncrypted: (a: number, b: number) => any;
|
|
66
|
+
export const defaultsigner_staticDepositSigningKey: (a: number, b: number) => any;
|
|
67
|
+
export const defaultsigner_subtractSecrets: (a: number, b: any, c: any) => any;
|
|
68
68
|
export const initLogging: (a: any, b: number, c: number) => any;
|
|
69
69
|
export const sdkbuilder_build: (a: number) => any;
|
|
70
70
|
export const sdkbuilder_new: (a: any, b: any) => number;
|