@breeztech/breez-sdk-spark 0.7.6 → 0.7.7
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 +11 -11
- package/bundler/breez_sdk_spark_wasm_bg.js +24 -24
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +2 -2
- package/deno/breez_sdk_spark_wasm.d.ts +11 -11
- package/deno/breez_sdk_spark_wasm.js +23 -23
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +2 -2
- package/nodejs/breez_sdk_spark_wasm.d.ts +11 -11
- package/nodejs/breez_sdk_spark_wasm.js +24 -24
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +2 -2
- package/package.json +1 -1
- package/web/breez_sdk_spark_wasm.d.ts +13 -13
- package/web/breez_sdk_spark_wasm.js +23 -23
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +2 -2
package/breez-sdk-spark.tgz
CHANGED
|
Binary file
|
|
@@ -823,14 +823,14 @@ export interface ExternalSigner {
|
|
|
823
823
|
signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
|
|
824
824
|
generateFrostSigningCommitments(): Promise<ExternalFrostCommitments>;
|
|
825
825
|
getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
|
|
826
|
-
generateRandomKey(): Promise<
|
|
827
|
-
|
|
826
|
+
generateRandomKey(): Promise<ExternalSecretKeySource>;
|
|
827
|
+
getStaticDepositSecretKeySource(index: number): Promise<ExternalSecretKeySource>;
|
|
828
828
|
getStaticDepositPrivateKey(index: number): Promise<PrivateKeyBytes>;
|
|
829
829
|
getStaticDepositPublicKey(index: number): Promise<PublicKeyBytes>;
|
|
830
|
-
subtractPrivateKeys(signingKey:
|
|
830
|
+
subtractPrivateKeys(signingKey: ExternalSecretKeySource, newSigningKey: ExternalSecretKeySource): Promise<ExternalSecretKeySource>;
|
|
831
831
|
splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, numShares: number): Promise<ExternalVerifiableSecretShare[]>;
|
|
832
832
|
encryptPrivateKeyForReceiver(privateKey: ExternalEncryptedPrivateKey, receiverPublicKey: PublicKeyBytes): Promise<Uint8Array>;
|
|
833
|
-
|
|
833
|
+
getPublicKeyFromSecretKeySource(privateKey: ExternalSecretKeySource): 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>;
|
|
@@ -902,7 +902,7 @@ export interface ExternalEncryptedPrivateKey {
|
|
|
902
902
|
export interface ExternalSignFrostRequest {
|
|
903
903
|
message: number[];
|
|
904
904
|
publicKey: number[];
|
|
905
|
-
privateKey:
|
|
905
|
+
privateKey: ExternalSecretKeySource;
|
|
906
906
|
verifyingKey: number[];
|
|
907
907
|
selfNonceCommitment: ExternalFrostCommitments;
|
|
908
908
|
statechainCommitments: IdentifierCommitmentPair[];
|
|
@@ -927,9 +927,9 @@ export interface IdentifierCommitmentPair {
|
|
|
927
927
|
commitment: ExternalSigningCommitments;
|
|
928
928
|
}
|
|
929
929
|
|
|
930
|
-
export type
|
|
930
|
+
export type ExternalSecretKeySource = { type: "derived"; nodeId: ExternalTreeNodeId } | { type: "encrypted"; key: ExternalEncryptedPrivateKey };
|
|
931
931
|
|
|
932
|
-
export type ExternalSecretToSplit = { type: "privateKey"; source:
|
|
932
|
+
export type ExternalSecretToSplit = { type: "privateKey"; source: ExternalSecretKeySource } | { type: "preimage"; data: number[] };
|
|
933
933
|
|
|
934
934
|
export interface ExternalFrostSignature {
|
|
935
935
|
bytes: number[];
|
|
@@ -1032,18 +1032,18 @@ export class DefaultSigner {
|
|
|
1032
1032
|
aggregateFrost(request: ExternalAggregateFrostRequest): Promise<ExternalFrostSignature>;
|
|
1033
1033
|
derivePublicKey(path: string): Promise<PublicKeyBytes>;
|
|
1034
1034
|
signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
|
|
1035
|
-
generateRandomKey(): Promise<
|
|
1035
|
+
generateRandomKey(): Promise<ExternalSecretKeySource>;
|
|
1036
1036
|
identityPublicKey(): PublicKeyBytes;
|
|
1037
|
-
subtractPrivateKeys(signing_key:
|
|
1037
|
+
subtractPrivateKeys(signing_key: ExternalSecretKeySource, new_signing_key: ExternalSecretKeySource): Promise<ExternalSecretKeySource>;
|
|
1038
1038
|
signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
|
|
1039
1039
|
getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
|
|
1040
1040
|
splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, num_shares: number): Promise<ExternalVerifiableSecretShare[]>;
|
|
1041
1041
|
getStaticDepositPrivateKey(index: number): Promise<PrivateKeyBytes>;
|
|
1042
1042
|
getStaticDepositPublicKey(index: number): Promise<PublicKeyBytes>;
|
|
1043
1043
|
encryptPrivateKeyForReceiver(private_key: ExternalEncryptedPrivateKey, receiver_public_key: PublicKeyBytes): Promise<Uint8Array>;
|
|
1044
|
+
getPublicKeyFromSecretKeySource(private_key: ExternalSecretKeySource): Promise<PublicKeyBytes>;
|
|
1044
1045
|
generateFrostSigningCommitments(): Promise<ExternalFrostCommitments>;
|
|
1045
|
-
|
|
1046
|
-
getPublicKeyFromPrivateKeySource(private_key: ExternalPrivateKeySource): Promise<PublicKeyBytes>;
|
|
1046
|
+
getStaticDepositSecretKeySource(index: number): Promise<ExternalSecretKeySource>;
|
|
1047
1047
|
}
|
|
1048
1048
|
export class IntoUnderlyingByteSource {
|
|
1049
1049
|
private constructor();
|
|
@@ -754,7 +754,7 @@ export class DefaultSigner {
|
|
|
754
754
|
return ret;
|
|
755
755
|
}
|
|
756
756
|
/**
|
|
757
|
-
* @returns {Promise<
|
|
757
|
+
* @returns {Promise<ExternalSecretKeySource>}
|
|
758
758
|
*/
|
|
759
759
|
generateRandomKey() {
|
|
760
760
|
const ret = wasm.defaultsigner_generateRandomKey(this.__wbg_ptr);
|
|
@@ -771,9 +771,9 @@ export class DefaultSigner {
|
|
|
771
771
|
return takeFromExternrefTable0(ret[0]);
|
|
772
772
|
}
|
|
773
773
|
/**
|
|
774
|
-
* @param {
|
|
775
|
-
* @param {
|
|
776
|
-
* @returns {Promise<
|
|
774
|
+
* @param {ExternalSecretKeySource} signing_key
|
|
775
|
+
* @param {ExternalSecretKeySource} new_signing_key
|
|
776
|
+
* @returns {Promise<ExternalSecretKeySource>}
|
|
777
777
|
*/
|
|
778
778
|
subtractPrivateKeys(signing_key, new_signing_key) {
|
|
779
779
|
const ret = wasm.defaultsigner_subtractPrivateKeys(this.__wbg_ptr, signing_key, new_signing_key);
|
|
@@ -834,26 +834,26 @@ export class DefaultSigner {
|
|
|
834
834
|
return ret;
|
|
835
835
|
}
|
|
836
836
|
/**
|
|
837
|
-
* @
|
|
837
|
+
* @param {ExternalSecretKeySource} private_key
|
|
838
|
+
* @returns {Promise<PublicKeyBytes>}
|
|
838
839
|
*/
|
|
839
|
-
|
|
840
|
-
const ret = wasm.
|
|
840
|
+
getPublicKeyFromSecretKeySource(private_key) {
|
|
841
|
+
const ret = wasm.defaultsigner_getPublicKeyFromSecretKeySource(this.__wbg_ptr, private_key);
|
|
841
842
|
return ret;
|
|
842
843
|
}
|
|
843
844
|
/**
|
|
844
|
-
* @
|
|
845
|
-
* @returns {Promise<ExternalPrivateKeySource>}
|
|
845
|
+
* @returns {Promise<ExternalFrostCommitments>}
|
|
846
846
|
*/
|
|
847
|
-
|
|
848
|
-
const ret = wasm.
|
|
847
|
+
generateFrostSigningCommitments() {
|
|
848
|
+
const ret = wasm.defaultsigner_generateFrostSigningCommitments(this.__wbg_ptr);
|
|
849
849
|
return ret;
|
|
850
850
|
}
|
|
851
851
|
/**
|
|
852
|
-
* @param {
|
|
853
|
-
* @returns {Promise<
|
|
852
|
+
* @param {number} index
|
|
853
|
+
* @returns {Promise<ExternalSecretKeySource>}
|
|
854
854
|
*/
|
|
855
|
-
|
|
856
|
-
const ret = wasm.
|
|
855
|
+
getStaticDepositSecretKeySource(index) {
|
|
856
|
+
const ret = wasm.defaultsigner_getStaticDepositSecretKeySource(this.__wbg_ptr, index);
|
|
857
857
|
return ret;
|
|
858
858
|
}
|
|
859
859
|
}
|
|
@@ -1434,7 +1434,7 @@ export function __wbg_eciesEncrypt_d1c5b3c6a4602a28() { return handleError(funct
|
|
|
1434
1434
|
}
|
|
1435
1435
|
}, arguments) };
|
|
1436
1436
|
|
|
1437
|
-
export function
|
|
1437
|
+
export function __wbg_encryptPrivateKeyForReceiver_5d55fcfcbf8fa773() { return handleError(function (arg0, arg1, arg2) {
|
|
1438
1438
|
const ret = arg0.encryptPrivateKeyForReceiver(arg1, arg2);
|
|
1439
1439
|
return ret;
|
|
1440
1440
|
}, arguments) };
|
|
@@ -1549,8 +1549,8 @@ export function __wbg_getPublicKeyForNode_5ddb3378904e4ad4() { return handleErro
|
|
|
1549
1549
|
return ret;
|
|
1550
1550
|
}, arguments) };
|
|
1551
1551
|
|
|
1552
|
-
export function
|
|
1553
|
-
const ret = arg0.
|
|
1552
|
+
export function __wbg_getPublicKeyFromSecretKeySource_1e7f3651bccc46d6() { return handleError(function (arg0, arg1) {
|
|
1553
|
+
const ret = arg0.getPublicKeyFromSecretKeySource(arg1);
|
|
1554
1554
|
return ret;
|
|
1555
1555
|
}, arguments) };
|
|
1556
1556
|
|
|
@@ -1580,11 +1580,6 @@ export function __wbg_getRequest_4ab87a8cbe18fa22() { return handleError(functio
|
|
|
1580
1580
|
}
|
|
1581
1581
|
}, arguments) };
|
|
1582
1582
|
|
|
1583
|
-
export function __wbg_getStaticDepositPrivateKeySource_7b2991ed6d3d4711() { return handleError(function (arg0, arg1) {
|
|
1584
|
-
const ret = arg0.getStaticDepositPrivateKeySource(arg1 >>> 0);
|
|
1585
|
-
return ret;
|
|
1586
|
-
}, arguments) };
|
|
1587
|
-
|
|
1588
1583
|
export function __wbg_getStaticDepositPrivateKey_a7a4ab43f45f0713() { return handleError(function (arg0, arg1) {
|
|
1589
1584
|
const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
|
|
1590
1585
|
return ret;
|
|
@@ -1595,6 +1590,11 @@ export function __wbg_getStaticDepositPublicKey_4551dec44c20efe6() { return hand
|
|
|
1595
1590
|
return ret;
|
|
1596
1591
|
}, arguments) };
|
|
1597
1592
|
|
|
1593
|
+
export function __wbg_getStaticDepositSecretKeySource_8adcbc926fe6aaba() { return handleError(function (arg0, arg1) {
|
|
1594
|
+
const ret = arg0.getStaticDepositSecretKeySource(arg1 >>> 0);
|
|
1595
|
+
return ret;
|
|
1596
|
+
}, arguments) };
|
|
1597
|
+
|
|
1598
1598
|
export function __wbg_getTransactionHex_973b8d0555c60f99() { return handleError(function (arg0, arg1, arg2) {
|
|
1599
1599
|
let deferred0_0;
|
|
1600
1600
|
let deferred0_1;
|
|
@@ -2218,7 +2218,7 @@ export function __wbg_subarray_aa9065fa9dc5df96(arg0, arg1, arg2) {
|
|
|
2218
2218
|
return ret;
|
|
2219
2219
|
};
|
|
2220
2220
|
|
|
2221
|
-
export function
|
|
2221
|
+
export function __wbg_subtractPrivateKeys_58983b7039732815() { return handleError(function (arg0, arg1, arg2) {
|
|
2222
2222
|
const ret = arg0.subtractPrivateKeys(arg1, arg2);
|
|
2223
2223
|
return ret;
|
|
2224
2224
|
}, arguments) };
|
|
Binary file
|
|
@@ -53,10 +53,10 @@ export const defaultsigner_encryptPrivateKeyForReceiver: (a: number, b: any, c:
|
|
|
53
53
|
export const defaultsigner_generateFrostSigningCommitments: (a: number) => any;
|
|
54
54
|
export const defaultsigner_generateRandomKey: (a: number) => any;
|
|
55
55
|
export const defaultsigner_getPublicKeyForNode: (a: number, b: any) => any;
|
|
56
|
-
export const
|
|
56
|
+
export const defaultsigner_getPublicKeyFromSecretKeySource: (a: number, b: any) => any;
|
|
57
57
|
export const defaultsigner_getStaticDepositPrivateKey: (a: number, b: number) => any;
|
|
58
|
-
export const defaultsigner_getStaticDepositPrivateKeySource: (a: number, b: number) => any;
|
|
59
58
|
export const defaultsigner_getStaticDepositPublicKey: (a: number, b: number) => any;
|
|
59
|
+
export const defaultsigner_getStaticDepositSecretKeySource: (a: number, b: number) => any;
|
|
60
60
|
export const defaultsigner_hmacSha256: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
61
61
|
export const defaultsigner_identityPublicKey: (a: number) => [number, number, number];
|
|
62
62
|
export const defaultsigner_signEcdsa: (a: number, b: any, c: number, d: number) => any;
|
|
@@ -823,14 +823,14 @@ export interface ExternalSigner {
|
|
|
823
823
|
signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
|
|
824
824
|
generateFrostSigningCommitments(): Promise<ExternalFrostCommitments>;
|
|
825
825
|
getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
|
|
826
|
-
generateRandomKey(): Promise<
|
|
827
|
-
|
|
826
|
+
generateRandomKey(): Promise<ExternalSecretKeySource>;
|
|
827
|
+
getStaticDepositSecretKeySource(index: number): Promise<ExternalSecretKeySource>;
|
|
828
828
|
getStaticDepositPrivateKey(index: number): Promise<PrivateKeyBytes>;
|
|
829
829
|
getStaticDepositPublicKey(index: number): Promise<PublicKeyBytes>;
|
|
830
|
-
subtractPrivateKeys(signingKey:
|
|
830
|
+
subtractPrivateKeys(signingKey: ExternalSecretKeySource, newSigningKey: ExternalSecretKeySource): Promise<ExternalSecretKeySource>;
|
|
831
831
|
splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, numShares: number): Promise<ExternalVerifiableSecretShare[]>;
|
|
832
832
|
encryptPrivateKeyForReceiver(privateKey: ExternalEncryptedPrivateKey, receiverPublicKey: PublicKeyBytes): Promise<Uint8Array>;
|
|
833
|
-
|
|
833
|
+
getPublicKeyFromSecretKeySource(privateKey: ExternalSecretKeySource): 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>;
|
|
@@ -902,7 +902,7 @@ export interface ExternalEncryptedPrivateKey {
|
|
|
902
902
|
export interface ExternalSignFrostRequest {
|
|
903
903
|
message: number[];
|
|
904
904
|
publicKey: number[];
|
|
905
|
-
privateKey:
|
|
905
|
+
privateKey: ExternalSecretKeySource;
|
|
906
906
|
verifyingKey: number[];
|
|
907
907
|
selfNonceCommitment: ExternalFrostCommitments;
|
|
908
908
|
statechainCommitments: IdentifierCommitmentPair[];
|
|
@@ -927,9 +927,9 @@ export interface IdentifierCommitmentPair {
|
|
|
927
927
|
commitment: ExternalSigningCommitments;
|
|
928
928
|
}
|
|
929
929
|
|
|
930
|
-
export type
|
|
930
|
+
export type ExternalSecretKeySource = { type: "derived"; nodeId: ExternalTreeNodeId } | { type: "encrypted"; key: ExternalEncryptedPrivateKey };
|
|
931
931
|
|
|
932
|
-
export type ExternalSecretToSplit = { type: "privateKey"; source:
|
|
932
|
+
export type ExternalSecretToSplit = { type: "privateKey"; source: ExternalSecretKeySource } | { type: "preimage"; data: number[] };
|
|
933
933
|
|
|
934
934
|
export interface ExternalFrostSignature {
|
|
935
935
|
bytes: number[];
|
|
@@ -1032,18 +1032,18 @@ export class DefaultSigner {
|
|
|
1032
1032
|
aggregateFrost(request: ExternalAggregateFrostRequest): Promise<ExternalFrostSignature>;
|
|
1033
1033
|
derivePublicKey(path: string): Promise<PublicKeyBytes>;
|
|
1034
1034
|
signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
|
|
1035
|
-
generateRandomKey(): Promise<
|
|
1035
|
+
generateRandomKey(): Promise<ExternalSecretKeySource>;
|
|
1036
1036
|
identityPublicKey(): PublicKeyBytes;
|
|
1037
|
-
subtractPrivateKeys(signing_key:
|
|
1037
|
+
subtractPrivateKeys(signing_key: ExternalSecretKeySource, new_signing_key: ExternalSecretKeySource): Promise<ExternalSecretKeySource>;
|
|
1038
1038
|
signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
|
|
1039
1039
|
getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
|
|
1040
1040
|
splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, num_shares: number): Promise<ExternalVerifiableSecretShare[]>;
|
|
1041
1041
|
getStaticDepositPrivateKey(index: number): Promise<PrivateKeyBytes>;
|
|
1042
1042
|
getStaticDepositPublicKey(index: number): Promise<PublicKeyBytes>;
|
|
1043
1043
|
encryptPrivateKeyForReceiver(private_key: ExternalEncryptedPrivateKey, receiver_public_key: PublicKeyBytes): Promise<Uint8Array>;
|
|
1044
|
+
getPublicKeyFromSecretKeySource(private_key: ExternalSecretKeySource): Promise<PublicKeyBytes>;
|
|
1044
1045
|
generateFrostSigningCommitments(): Promise<ExternalFrostCommitments>;
|
|
1045
|
-
|
|
1046
|
-
getPublicKeyFromPrivateKeySource(private_key: ExternalPrivateKeySource): Promise<PublicKeyBytes>;
|
|
1046
|
+
getStaticDepositSecretKeySource(index: number): Promise<ExternalSecretKeySource>;
|
|
1047
1047
|
}
|
|
1048
1048
|
export class IntoUnderlyingByteSource {
|
|
1049
1049
|
private constructor();
|
|
@@ -737,7 +737,7 @@ export class DefaultSigner {
|
|
|
737
737
|
return ret;
|
|
738
738
|
}
|
|
739
739
|
/**
|
|
740
|
-
* @returns {Promise<
|
|
740
|
+
* @returns {Promise<ExternalSecretKeySource>}
|
|
741
741
|
*/
|
|
742
742
|
generateRandomKey() {
|
|
743
743
|
const ret = wasm.defaultsigner_generateRandomKey(this.__wbg_ptr);
|
|
@@ -754,9 +754,9 @@ export class DefaultSigner {
|
|
|
754
754
|
return takeFromExternrefTable0(ret[0]);
|
|
755
755
|
}
|
|
756
756
|
/**
|
|
757
|
-
* @param {
|
|
758
|
-
* @param {
|
|
759
|
-
* @returns {Promise<
|
|
757
|
+
* @param {ExternalSecretKeySource} signing_key
|
|
758
|
+
* @param {ExternalSecretKeySource} new_signing_key
|
|
759
|
+
* @returns {Promise<ExternalSecretKeySource>}
|
|
760
760
|
*/
|
|
761
761
|
subtractPrivateKeys(signing_key, new_signing_key) {
|
|
762
762
|
const ret = wasm.defaultsigner_subtractPrivateKeys(this.__wbg_ptr, signing_key, new_signing_key);
|
|
@@ -817,26 +817,26 @@ export class DefaultSigner {
|
|
|
817
817
|
return ret;
|
|
818
818
|
}
|
|
819
819
|
/**
|
|
820
|
-
* @
|
|
820
|
+
* @param {ExternalSecretKeySource} private_key
|
|
821
|
+
* @returns {Promise<PublicKeyBytes>}
|
|
821
822
|
*/
|
|
822
|
-
|
|
823
|
-
const ret = wasm.
|
|
823
|
+
getPublicKeyFromSecretKeySource(private_key) {
|
|
824
|
+
const ret = wasm.defaultsigner_getPublicKeyFromSecretKeySource(this.__wbg_ptr, private_key);
|
|
824
825
|
return ret;
|
|
825
826
|
}
|
|
826
827
|
/**
|
|
827
|
-
* @
|
|
828
|
-
* @returns {Promise<ExternalPrivateKeySource>}
|
|
828
|
+
* @returns {Promise<ExternalFrostCommitments>}
|
|
829
829
|
*/
|
|
830
|
-
|
|
831
|
-
const ret = wasm.
|
|
830
|
+
generateFrostSigningCommitments() {
|
|
831
|
+
const ret = wasm.defaultsigner_generateFrostSigningCommitments(this.__wbg_ptr);
|
|
832
832
|
return ret;
|
|
833
833
|
}
|
|
834
834
|
/**
|
|
835
|
-
* @param {
|
|
836
|
-
* @returns {Promise<
|
|
835
|
+
* @param {number} index
|
|
836
|
+
* @returns {Promise<ExternalSecretKeySource>}
|
|
837
837
|
*/
|
|
838
|
-
|
|
839
|
-
const ret = wasm.
|
|
838
|
+
getStaticDepositSecretKeySource(index) {
|
|
839
|
+
const ret = wasm.defaultsigner_getStaticDepositSecretKeySource(this.__wbg_ptr, index);
|
|
840
840
|
return ret;
|
|
841
841
|
}
|
|
842
842
|
}
|
|
@@ -1386,7 +1386,7 @@ const imports = {
|
|
|
1386
1386
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1387
1387
|
}
|
|
1388
1388
|
}, arguments) },
|
|
1389
|
-
|
|
1389
|
+
__wbg_encryptPrivateKeyForReceiver_5d55fcfcbf8fa773: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1390
1390
|
const ret = arg0.encryptPrivateKeyForReceiver(arg1, arg2);
|
|
1391
1391
|
return ret;
|
|
1392
1392
|
}, arguments) },
|
|
@@ -1484,8 +1484,8 @@ const imports = {
|
|
|
1484
1484
|
const ret = arg0.getPublicKeyForNode(arg1);
|
|
1485
1485
|
return ret;
|
|
1486
1486
|
}, arguments) },
|
|
1487
|
-
|
|
1488
|
-
const ret = arg0.
|
|
1487
|
+
__wbg_getPublicKeyFromSecretKeySource_1e7f3651bccc46d6: function() { return handleError(function (arg0, arg1) {
|
|
1488
|
+
const ret = arg0.getPublicKeyFromSecretKeySource(arg1);
|
|
1489
1489
|
return ret;
|
|
1490
1490
|
}, arguments) },
|
|
1491
1491
|
__wbg_getRandomValues_b8f5dbd5f3995a9e: function() { return handleError(function (arg0, arg1) {
|
|
@@ -1510,10 +1510,6 @@ const imports = {
|
|
|
1510
1510
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1511
1511
|
}
|
|
1512
1512
|
}, arguments) },
|
|
1513
|
-
__wbg_getStaticDepositPrivateKeySource_7b2991ed6d3d4711: function() { return handleError(function (arg0, arg1) {
|
|
1514
|
-
const ret = arg0.getStaticDepositPrivateKeySource(arg1 >>> 0);
|
|
1515
|
-
return ret;
|
|
1516
|
-
}, arguments) },
|
|
1517
1513
|
__wbg_getStaticDepositPrivateKey_a7a4ab43f45f0713: function() { return handleError(function (arg0, arg1) {
|
|
1518
1514
|
const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
|
|
1519
1515
|
return ret;
|
|
@@ -1522,6 +1518,10 @@ const imports = {
|
|
|
1522
1518
|
const ret = arg0.getStaticDepositPublicKey(arg1 >>> 0);
|
|
1523
1519
|
return ret;
|
|
1524
1520
|
}, arguments) },
|
|
1521
|
+
__wbg_getStaticDepositSecretKeySource_8adcbc926fe6aaba: function() { return handleError(function (arg0, arg1) {
|
|
1522
|
+
const ret = arg0.getStaticDepositSecretKeySource(arg1 >>> 0);
|
|
1523
|
+
return ret;
|
|
1524
|
+
}, arguments) },
|
|
1525
1525
|
__wbg_getTransactionHex_973b8d0555c60f99: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1526
1526
|
let deferred0_0;
|
|
1527
1527
|
let deferred0_1;
|
|
@@ -2046,7 +2046,7 @@ const imports = {
|
|
|
2046
2046
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
2047
2047
|
return ret;
|
|
2048
2048
|
},
|
|
2049
|
-
|
|
2049
|
+
__wbg_subtractPrivateKeys_58983b7039732815: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2050
2050
|
const ret = arg0.subtractPrivateKeys(arg1, arg2);
|
|
2051
2051
|
return ret;
|
|
2052
2052
|
}, arguments) },
|
|
Binary file
|
|
@@ -53,10 +53,10 @@ export const defaultsigner_encryptPrivateKeyForReceiver: (a: number, b: any, c:
|
|
|
53
53
|
export const defaultsigner_generateFrostSigningCommitments: (a: number) => any;
|
|
54
54
|
export const defaultsigner_generateRandomKey: (a: number) => any;
|
|
55
55
|
export const defaultsigner_getPublicKeyForNode: (a: number, b: any) => any;
|
|
56
|
-
export const
|
|
56
|
+
export const defaultsigner_getPublicKeyFromSecretKeySource: (a: number, b: any) => any;
|
|
57
57
|
export const defaultsigner_getStaticDepositPrivateKey: (a: number, b: number) => any;
|
|
58
|
-
export const defaultsigner_getStaticDepositPrivateKeySource: (a: number, b: number) => any;
|
|
59
58
|
export const defaultsigner_getStaticDepositPublicKey: (a: number, b: number) => any;
|
|
59
|
+
export const defaultsigner_getStaticDepositSecretKeySource: (a: number, b: number) => any;
|
|
60
60
|
export const defaultsigner_hmacSha256: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
61
61
|
export const defaultsigner_identityPublicKey: (a: number) => [number, number, number];
|
|
62
62
|
export const defaultsigner_signEcdsa: (a: number, b: any, c: number, d: number) => any;
|
|
@@ -823,14 +823,14 @@ export interface ExternalSigner {
|
|
|
823
823
|
signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
|
|
824
824
|
generateFrostSigningCommitments(): Promise<ExternalFrostCommitments>;
|
|
825
825
|
getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
|
|
826
|
-
generateRandomKey(): Promise<
|
|
827
|
-
|
|
826
|
+
generateRandomKey(): Promise<ExternalSecretKeySource>;
|
|
827
|
+
getStaticDepositSecretKeySource(index: number): Promise<ExternalSecretKeySource>;
|
|
828
828
|
getStaticDepositPrivateKey(index: number): Promise<PrivateKeyBytes>;
|
|
829
829
|
getStaticDepositPublicKey(index: number): Promise<PublicKeyBytes>;
|
|
830
|
-
subtractPrivateKeys(signingKey:
|
|
830
|
+
subtractPrivateKeys(signingKey: ExternalSecretKeySource, newSigningKey: ExternalSecretKeySource): Promise<ExternalSecretKeySource>;
|
|
831
831
|
splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, numShares: number): Promise<ExternalVerifiableSecretShare[]>;
|
|
832
832
|
encryptPrivateKeyForReceiver(privateKey: ExternalEncryptedPrivateKey, receiverPublicKey: PublicKeyBytes): Promise<Uint8Array>;
|
|
833
|
-
|
|
833
|
+
getPublicKeyFromSecretKeySource(privateKey: ExternalSecretKeySource): 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>;
|
|
@@ -902,7 +902,7 @@ export interface ExternalEncryptedPrivateKey {
|
|
|
902
902
|
export interface ExternalSignFrostRequest {
|
|
903
903
|
message: number[];
|
|
904
904
|
publicKey: number[];
|
|
905
|
-
privateKey:
|
|
905
|
+
privateKey: ExternalSecretKeySource;
|
|
906
906
|
verifyingKey: number[];
|
|
907
907
|
selfNonceCommitment: ExternalFrostCommitments;
|
|
908
908
|
statechainCommitments: IdentifierCommitmentPair[];
|
|
@@ -927,9 +927,9 @@ export interface IdentifierCommitmentPair {
|
|
|
927
927
|
commitment: ExternalSigningCommitments;
|
|
928
928
|
}
|
|
929
929
|
|
|
930
|
-
export type
|
|
930
|
+
export type ExternalSecretKeySource = { type: "derived"; nodeId: ExternalTreeNodeId } | { type: "encrypted"; key: ExternalEncryptedPrivateKey };
|
|
931
931
|
|
|
932
|
-
export type ExternalSecretToSplit = { type: "privateKey"; source:
|
|
932
|
+
export type ExternalSecretToSplit = { type: "privateKey"; source: ExternalSecretKeySource } | { type: "preimage"; data: number[] };
|
|
933
933
|
|
|
934
934
|
export interface ExternalFrostSignature {
|
|
935
935
|
bytes: number[];
|
|
@@ -1032,18 +1032,18 @@ export class DefaultSigner {
|
|
|
1032
1032
|
aggregateFrost(request: ExternalAggregateFrostRequest): Promise<ExternalFrostSignature>;
|
|
1033
1033
|
derivePublicKey(path: string): Promise<PublicKeyBytes>;
|
|
1034
1034
|
signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
|
|
1035
|
-
generateRandomKey(): Promise<
|
|
1035
|
+
generateRandomKey(): Promise<ExternalSecretKeySource>;
|
|
1036
1036
|
identityPublicKey(): PublicKeyBytes;
|
|
1037
|
-
subtractPrivateKeys(signing_key:
|
|
1037
|
+
subtractPrivateKeys(signing_key: ExternalSecretKeySource, new_signing_key: ExternalSecretKeySource): Promise<ExternalSecretKeySource>;
|
|
1038
1038
|
signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
|
|
1039
1039
|
getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
|
|
1040
1040
|
splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, num_shares: number): Promise<ExternalVerifiableSecretShare[]>;
|
|
1041
1041
|
getStaticDepositPrivateKey(index: number): Promise<PrivateKeyBytes>;
|
|
1042
1042
|
getStaticDepositPublicKey(index: number): Promise<PublicKeyBytes>;
|
|
1043
1043
|
encryptPrivateKeyForReceiver(private_key: ExternalEncryptedPrivateKey, receiver_public_key: PublicKeyBytes): Promise<Uint8Array>;
|
|
1044
|
+
getPublicKeyFromSecretKeySource(private_key: ExternalSecretKeySource): Promise<PublicKeyBytes>;
|
|
1044
1045
|
generateFrostSigningCommitments(): Promise<ExternalFrostCommitments>;
|
|
1045
|
-
|
|
1046
|
-
getPublicKeyFromPrivateKeySource(private_key: ExternalPrivateKeySource): Promise<PublicKeyBytes>;
|
|
1046
|
+
getStaticDepositSecretKeySource(index: number): Promise<ExternalSecretKeySource>;
|
|
1047
1047
|
}
|
|
1048
1048
|
export class IntoUnderlyingByteSource {
|
|
1049
1049
|
private constructor();
|
|
@@ -751,7 +751,7 @@ class DefaultSigner {
|
|
|
751
751
|
return ret;
|
|
752
752
|
}
|
|
753
753
|
/**
|
|
754
|
-
* @returns {Promise<
|
|
754
|
+
* @returns {Promise<ExternalSecretKeySource>}
|
|
755
755
|
*/
|
|
756
756
|
generateRandomKey() {
|
|
757
757
|
const ret = wasm.defaultsigner_generateRandomKey(this.__wbg_ptr);
|
|
@@ -768,9 +768,9 @@ class DefaultSigner {
|
|
|
768
768
|
return takeFromExternrefTable0(ret[0]);
|
|
769
769
|
}
|
|
770
770
|
/**
|
|
771
|
-
* @param {
|
|
772
|
-
* @param {
|
|
773
|
-
* @returns {Promise<
|
|
771
|
+
* @param {ExternalSecretKeySource} signing_key
|
|
772
|
+
* @param {ExternalSecretKeySource} new_signing_key
|
|
773
|
+
* @returns {Promise<ExternalSecretKeySource>}
|
|
774
774
|
*/
|
|
775
775
|
subtractPrivateKeys(signing_key, new_signing_key) {
|
|
776
776
|
const ret = wasm.defaultsigner_subtractPrivateKeys(this.__wbg_ptr, signing_key, new_signing_key);
|
|
@@ -831,26 +831,26 @@ class DefaultSigner {
|
|
|
831
831
|
return ret;
|
|
832
832
|
}
|
|
833
833
|
/**
|
|
834
|
-
* @
|
|
834
|
+
* @param {ExternalSecretKeySource} private_key
|
|
835
|
+
* @returns {Promise<PublicKeyBytes>}
|
|
835
836
|
*/
|
|
836
|
-
|
|
837
|
-
const ret = wasm.
|
|
837
|
+
getPublicKeyFromSecretKeySource(private_key) {
|
|
838
|
+
const ret = wasm.defaultsigner_getPublicKeyFromSecretKeySource(this.__wbg_ptr, private_key);
|
|
838
839
|
return ret;
|
|
839
840
|
}
|
|
840
841
|
/**
|
|
841
|
-
* @
|
|
842
|
-
* @returns {Promise<ExternalPrivateKeySource>}
|
|
842
|
+
* @returns {Promise<ExternalFrostCommitments>}
|
|
843
843
|
*/
|
|
844
|
-
|
|
845
|
-
const ret = wasm.
|
|
844
|
+
generateFrostSigningCommitments() {
|
|
845
|
+
const ret = wasm.defaultsigner_generateFrostSigningCommitments(this.__wbg_ptr);
|
|
846
846
|
return ret;
|
|
847
847
|
}
|
|
848
848
|
/**
|
|
849
|
-
* @param {
|
|
850
|
-
* @returns {Promise<
|
|
849
|
+
* @param {number} index
|
|
850
|
+
* @returns {Promise<ExternalSecretKeySource>}
|
|
851
851
|
*/
|
|
852
|
-
|
|
853
|
-
const ret = wasm.
|
|
852
|
+
getStaticDepositSecretKeySource(index) {
|
|
853
|
+
const ret = wasm.defaultsigner_getStaticDepositSecretKeySource(this.__wbg_ptr, index);
|
|
854
854
|
return ret;
|
|
855
855
|
}
|
|
856
856
|
}
|
|
@@ -1437,7 +1437,7 @@ module.exports.__wbg_eciesEncrypt_d1c5b3c6a4602a28 = function() { return handleE
|
|
|
1437
1437
|
}
|
|
1438
1438
|
}, arguments) };
|
|
1439
1439
|
|
|
1440
|
-
module.exports.
|
|
1440
|
+
module.exports.__wbg_encryptPrivateKeyForReceiver_5d55fcfcbf8fa773 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1441
1441
|
const ret = arg0.encryptPrivateKeyForReceiver(arg1, arg2);
|
|
1442
1442
|
return ret;
|
|
1443
1443
|
}, arguments) };
|
|
@@ -1552,8 +1552,8 @@ module.exports.__wbg_getPublicKeyForNode_5ddb3378904e4ad4 = function() { return
|
|
|
1552
1552
|
return ret;
|
|
1553
1553
|
}, arguments) };
|
|
1554
1554
|
|
|
1555
|
-
module.exports.
|
|
1556
|
-
const ret = arg0.
|
|
1555
|
+
module.exports.__wbg_getPublicKeyFromSecretKeySource_1e7f3651bccc46d6 = function() { return handleError(function (arg0, arg1) {
|
|
1556
|
+
const ret = arg0.getPublicKeyFromSecretKeySource(arg1);
|
|
1557
1557
|
return ret;
|
|
1558
1558
|
}, arguments) };
|
|
1559
1559
|
|
|
@@ -1583,11 +1583,6 @@ module.exports.__wbg_getRequest_4ab87a8cbe18fa22 = function() { return handleErr
|
|
|
1583
1583
|
}
|
|
1584
1584
|
}, arguments) };
|
|
1585
1585
|
|
|
1586
|
-
module.exports.__wbg_getStaticDepositPrivateKeySource_7b2991ed6d3d4711 = function() { return handleError(function (arg0, arg1) {
|
|
1587
|
-
const ret = arg0.getStaticDepositPrivateKeySource(arg1 >>> 0);
|
|
1588
|
-
return ret;
|
|
1589
|
-
}, arguments) };
|
|
1590
|
-
|
|
1591
1586
|
module.exports.__wbg_getStaticDepositPrivateKey_a7a4ab43f45f0713 = function() { return handleError(function (arg0, arg1) {
|
|
1592
1587
|
const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
|
|
1593
1588
|
return ret;
|
|
@@ -1598,6 +1593,11 @@ module.exports.__wbg_getStaticDepositPublicKey_4551dec44c20efe6 = function() { r
|
|
|
1598
1593
|
return ret;
|
|
1599
1594
|
}, arguments) };
|
|
1600
1595
|
|
|
1596
|
+
module.exports.__wbg_getStaticDepositSecretKeySource_8adcbc926fe6aaba = function() { return handleError(function (arg0, arg1) {
|
|
1597
|
+
const ret = arg0.getStaticDepositSecretKeySource(arg1 >>> 0);
|
|
1598
|
+
return ret;
|
|
1599
|
+
}, arguments) };
|
|
1600
|
+
|
|
1601
1601
|
module.exports.__wbg_getTransactionHex_973b8d0555c60f99 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1602
1602
|
let deferred0_0;
|
|
1603
1603
|
let deferred0_1;
|
|
@@ -2221,7 +2221,7 @@ module.exports.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
|
|
|
2221
2221
|
return ret;
|
|
2222
2222
|
};
|
|
2223
2223
|
|
|
2224
|
-
module.exports.
|
|
2224
|
+
module.exports.__wbg_subtractPrivateKeys_58983b7039732815 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2225
2225
|
const ret = arg0.subtractPrivateKeys(arg1, arg2);
|
|
2226
2226
|
return ret;
|
|
2227
2227
|
}, arguments) };
|
|
Binary file
|
|
@@ -53,10 +53,10 @@ export const defaultsigner_encryptPrivateKeyForReceiver: (a: number, b: any, c:
|
|
|
53
53
|
export const defaultsigner_generateFrostSigningCommitments: (a: number) => any;
|
|
54
54
|
export const defaultsigner_generateRandomKey: (a: number) => any;
|
|
55
55
|
export const defaultsigner_getPublicKeyForNode: (a: number, b: any) => any;
|
|
56
|
-
export const
|
|
56
|
+
export const defaultsigner_getPublicKeyFromSecretKeySource: (a: number, b: any) => any;
|
|
57
57
|
export const defaultsigner_getStaticDepositPrivateKey: (a: number, b: number) => any;
|
|
58
|
-
export const defaultsigner_getStaticDepositPrivateKeySource: (a: number, b: number) => any;
|
|
59
58
|
export const defaultsigner_getStaticDepositPublicKey: (a: number, b: number) => any;
|
|
59
|
+
export const defaultsigner_getStaticDepositSecretKeySource: (a: number, b: number) => any;
|
|
60
60
|
export const defaultsigner_hmacSha256: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
61
61
|
export const defaultsigner_identityPublicKey: (a: number) => [number, number, number];
|
|
62
62
|
export const defaultsigner_signEcdsa: (a: number, b: any, c: number, d: number) => any;
|
package/package.json
CHANGED
|
@@ -823,14 +823,14 @@ export interface ExternalSigner {
|
|
|
823
823
|
signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
|
|
824
824
|
generateFrostSigningCommitments(): Promise<ExternalFrostCommitments>;
|
|
825
825
|
getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
|
|
826
|
-
generateRandomKey(): Promise<
|
|
827
|
-
|
|
826
|
+
generateRandomKey(): Promise<ExternalSecretKeySource>;
|
|
827
|
+
getStaticDepositSecretKeySource(index: number): Promise<ExternalSecretKeySource>;
|
|
828
828
|
getStaticDepositPrivateKey(index: number): Promise<PrivateKeyBytes>;
|
|
829
829
|
getStaticDepositPublicKey(index: number): Promise<PublicKeyBytes>;
|
|
830
|
-
subtractPrivateKeys(signingKey:
|
|
830
|
+
subtractPrivateKeys(signingKey: ExternalSecretKeySource, newSigningKey: ExternalSecretKeySource): Promise<ExternalSecretKeySource>;
|
|
831
831
|
splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, numShares: number): Promise<ExternalVerifiableSecretShare[]>;
|
|
832
832
|
encryptPrivateKeyForReceiver(privateKey: ExternalEncryptedPrivateKey, receiverPublicKey: PublicKeyBytes): Promise<Uint8Array>;
|
|
833
|
-
|
|
833
|
+
getPublicKeyFromSecretKeySource(privateKey: ExternalSecretKeySource): 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>;
|
|
@@ -902,7 +902,7 @@ export interface ExternalEncryptedPrivateKey {
|
|
|
902
902
|
export interface ExternalSignFrostRequest {
|
|
903
903
|
message: number[];
|
|
904
904
|
publicKey: number[];
|
|
905
|
-
privateKey:
|
|
905
|
+
privateKey: ExternalSecretKeySource;
|
|
906
906
|
verifyingKey: number[];
|
|
907
907
|
selfNonceCommitment: ExternalFrostCommitments;
|
|
908
908
|
statechainCommitments: IdentifierCommitmentPair[];
|
|
@@ -927,9 +927,9 @@ export interface IdentifierCommitmentPair {
|
|
|
927
927
|
commitment: ExternalSigningCommitments;
|
|
928
928
|
}
|
|
929
929
|
|
|
930
|
-
export type
|
|
930
|
+
export type ExternalSecretKeySource = { type: "derived"; nodeId: ExternalTreeNodeId } | { type: "encrypted"; key: ExternalEncryptedPrivateKey };
|
|
931
931
|
|
|
932
|
-
export type ExternalSecretToSplit = { type: "privateKey"; source:
|
|
932
|
+
export type ExternalSecretToSplit = { type: "privateKey"; source: ExternalSecretKeySource } | { type: "preimage"; data: number[] };
|
|
933
933
|
|
|
934
934
|
export interface ExternalFrostSignature {
|
|
935
935
|
bytes: number[];
|
|
@@ -1032,18 +1032,18 @@ export class DefaultSigner {
|
|
|
1032
1032
|
aggregateFrost(request: ExternalAggregateFrostRequest): Promise<ExternalFrostSignature>;
|
|
1033
1033
|
derivePublicKey(path: string): Promise<PublicKeyBytes>;
|
|
1034
1034
|
signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
|
|
1035
|
-
generateRandomKey(): Promise<
|
|
1035
|
+
generateRandomKey(): Promise<ExternalSecretKeySource>;
|
|
1036
1036
|
identityPublicKey(): PublicKeyBytes;
|
|
1037
|
-
subtractPrivateKeys(signing_key:
|
|
1037
|
+
subtractPrivateKeys(signing_key: ExternalSecretKeySource, new_signing_key: ExternalSecretKeySource): Promise<ExternalSecretKeySource>;
|
|
1038
1038
|
signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
|
|
1039
1039
|
getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
|
|
1040
1040
|
splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, num_shares: number): Promise<ExternalVerifiableSecretShare[]>;
|
|
1041
1041
|
getStaticDepositPrivateKey(index: number): Promise<PrivateKeyBytes>;
|
|
1042
1042
|
getStaticDepositPublicKey(index: number): Promise<PublicKeyBytes>;
|
|
1043
1043
|
encryptPrivateKeyForReceiver(private_key: ExternalEncryptedPrivateKey, receiver_public_key: PublicKeyBytes): Promise<Uint8Array>;
|
|
1044
|
+
getPublicKeyFromSecretKeySource(private_key: ExternalSecretKeySource): Promise<PublicKeyBytes>;
|
|
1044
1045
|
generateFrostSigningCommitments(): Promise<ExternalFrostCommitments>;
|
|
1045
|
-
|
|
1046
|
-
getPublicKeyFromPrivateKeySource(private_key: ExternalPrivateKeySource): Promise<PublicKeyBytes>;
|
|
1046
|
+
getStaticDepositSecretKeySource(index: number): Promise<ExternalSecretKeySource>;
|
|
1047
1047
|
}
|
|
1048
1048
|
export class IntoUnderlyingByteSource {
|
|
1049
1049
|
private constructor();
|
|
@@ -1150,10 +1150,10 @@ export interface InitOutput {
|
|
|
1150
1150
|
readonly defaultsigner_generateFrostSigningCommitments: (a: number) => any;
|
|
1151
1151
|
readonly defaultsigner_generateRandomKey: (a: number) => any;
|
|
1152
1152
|
readonly defaultsigner_getPublicKeyForNode: (a: number, b: any) => any;
|
|
1153
|
-
readonly
|
|
1153
|
+
readonly defaultsigner_getPublicKeyFromSecretKeySource: (a: number, b: any) => any;
|
|
1154
1154
|
readonly defaultsigner_getStaticDepositPrivateKey: (a: number, b: number) => any;
|
|
1155
|
-
readonly defaultsigner_getStaticDepositPrivateKeySource: (a: number, b: number) => any;
|
|
1156
1155
|
readonly defaultsigner_getStaticDepositPublicKey: (a: number, b: number) => any;
|
|
1156
|
+
readonly defaultsigner_getStaticDepositSecretKeySource: (a: number, b: number) => any;
|
|
1157
1157
|
readonly defaultsigner_hmacSha256: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
1158
1158
|
readonly defaultsigner_identityPublicKey: (a: number) => [number, number, number];
|
|
1159
1159
|
readonly defaultsigner_signEcdsa: (a: number, b: any, c: number, d: number) => any;
|
|
@@ -746,7 +746,7 @@ export class DefaultSigner {
|
|
|
746
746
|
return ret;
|
|
747
747
|
}
|
|
748
748
|
/**
|
|
749
|
-
* @returns {Promise<
|
|
749
|
+
* @returns {Promise<ExternalSecretKeySource>}
|
|
750
750
|
*/
|
|
751
751
|
generateRandomKey() {
|
|
752
752
|
const ret = wasm.defaultsigner_generateRandomKey(this.__wbg_ptr);
|
|
@@ -763,9 +763,9 @@ export class DefaultSigner {
|
|
|
763
763
|
return takeFromExternrefTable0(ret[0]);
|
|
764
764
|
}
|
|
765
765
|
/**
|
|
766
|
-
* @param {
|
|
767
|
-
* @param {
|
|
768
|
-
* @returns {Promise<
|
|
766
|
+
* @param {ExternalSecretKeySource} signing_key
|
|
767
|
+
* @param {ExternalSecretKeySource} new_signing_key
|
|
768
|
+
* @returns {Promise<ExternalSecretKeySource>}
|
|
769
769
|
*/
|
|
770
770
|
subtractPrivateKeys(signing_key, new_signing_key) {
|
|
771
771
|
const ret = wasm.defaultsigner_subtractPrivateKeys(this.__wbg_ptr, signing_key, new_signing_key);
|
|
@@ -826,26 +826,26 @@ export class DefaultSigner {
|
|
|
826
826
|
return ret;
|
|
827
827
|
}
|
|
828
828
|
/**
|
|
829
|
-
* @
|
|
829
|
+
* @param {ExternalSecretKeySource} private_key
|
|
830
|
+
* @returns {Promise<PublicKeyBytes>}
|
|
830
831
|
*/
|
|
831
|
-
|
|
832
|
-
const ret = wasm.
|
|
832
|
+
getPublicKeyFromSecretKeySource(private_key) {
|
|
833
|
+
const ret = wasm.defaultsigner_getPublicKeyFromSecretKeySource(this.__wbg_ptr, private_key);
|
|
833
834
|
return ret;
|
|
834
835
|
}
|
|
835
836
|
/**
|
|
836
|
-
* @
|
|
837
|
-
* @returns {Promise<ExternalPrivateKeySource>}
|
|
837
|
+
* @returns {Promise<ExternalFrostCommitments>}
|
|
838
838
|
*/
|
|
839
|
-
|
|
840
|
-
const ret = wasm.
|
|
839
|
+
generateFrostSigningCommitments() {
|
|
840
|
+
const ret = wasm.defaultsigner_generateFrostSigningCommitments(this.__wbg_ptr);
|
|
841
841
|
return ret;
|
|
842
842
|
}
|
|
843
843
|
/**
|
|
844
|
-
* @param {
|
|
845
|
-
* @returns {Promise<
|
|
844
|
+
* @param {number} index
|
|
845
|
+
* @returns {Promise<ExternalSecretKeySource>}
|
|
846
846
|
*/
|
|
847
|
-
|
|
848
|
-
const ret = wasm.
|
|
847
|
+
getStaticDepositSecretKeySource(index) {
|
|
848
|
+
const ret = wasm.defaultsigner_getStaticDepositSecretKeySource(this.__wbg_ptr, index);
|
|
849
849
|
return ret;
|
|
850
850
|
}
|
|
851
851
|
}
|
|
@@ -1427,7 +1427,7 @@ function __wbg_get_imports() {
|
|
|
1427
1427
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1428
1428
|
}
|
|
1429
1429
|
}, arguments) };
|
|
1430
|
-
imports.wbg.
|
|
1430
|
+
imports.wbg.__wbg_encryptPrivateKeyForReceiver_5d55fcfcbf8fa773 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1431
1431
|
const ret = arg0.encryptPrivateKeyForReceiver(arg1, arg2);
|
|
1432
1432
|
return ret;
|
|
1433
1433
|
}, arguments) };
|
|
@@ -1525,8 +1525,8 @@ function __wbg_get_imports() {
|
|
|
1525
1525
|
const ret = arg0.getPublicKeyForNode(arg1);
|
|
1526
1526
|
return ret;
|
|
1527
1527
|
}, arguments) };
|
|
1528
|
-
imports.wbg.
|
|
1529
|
-
const ret = arg0.
|
|
1528
|
+
imports.wbg.__wbg_getPublicKeyFromSecretKeySource_1e7f3651bccc46d6 = function() { return handleError(function (arg0, arg1) {
|
|
1529
|
+
const ret = arg0.getPublicKeyFromSecretKeySource(arg1);
|
|
1530
1530
|
return ret;
|
|
1531
1531
|
}, arguments) };
|
|
1532
1532
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
@@ -1551,10 +1551,6 @@ function __wbg_get_imports() {
|
|
|
1551
1551
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1552
1552
|
}
|
|
1553
1553
|
}, arguments) };
|
|
1554
|
-
imports.wbg.__wbg_getStaticDepositPrivateKeySource_7b2991ed6d3d4711 = function() { return handleError(function (arg0, arg1) {
|
|
1555
|
-
const ret = arg0.getStaticDepositPrivateKeySource(arg1 >>> 0);
|
|
1556
|
-
return ret;
|
|
1557
|
-
}, arguments) };
|
|
1558
1554
|
imports.wbg.__wbg_getStaticDepositPrivateKey_a7a4ab43f45f0713 = function() { return handleError(function (arg0, arg1) {
|
|
1559
1555
|
const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
|
|
1560
1556
|
return ret;
|
|
@@ -1563,6 +1559,10 @@ function __wbg_get_imports() {
|
|
|
1563
1559
|
const ret = arg0.getStaticDepositPublicKey(arg1 >>> 0);
|
|
1564
1560
|
return ret;
|
|
1565
1561
|
}, arguments) };
|
|
1562
|
+
imports.wbg.__wbg_getStaticDepositSecretKeySource_8adcbc926fe6aaba = function() { return handleError(function (arg0, arg1) {
|
|
1563
|
+
const ret = arg0.getStaticDepositSecretKeySource(arg1 >>> 0);
|
|
1564
|
+
return ret;
|
|
1565
|
+
}, arguments) };
|
|
1566
1566
|
imports.wbg.__wbg_getTransactionHex_973b8d0555c60f99 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1567
1567
|
let deferred0_0;
|
|
1568
1568
|
let deferred0_1;
|
|
@@ -2087,7 +2087,7 @@ function __wbg_get_imports() {
|
|
|
2087
2087
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
2088
2088
|
return ret;
|
|
2089
2089
|
};
|
|
2090
|
-
imports.wbg.
|
|
2090
|
+
imports.wbg.__wbg_subtractPrivateKeys_58983b7039732815 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2091
2091
|
const ret = arg0.subtractPrivateKeys(arg1, arg2);
|
|
2092
2092
|
return ret;
|
|
2093
2093
|
}, arguments) };
|
|
Binary file
|
|
@@ -53,10 +53,10 @@ export const defaultsigner_encryptPrivateKeyForReceiver: (a: number, b: any, c:
|
|
|
53
53
|
export const defaultsigner_generateFrostSigningCommitments: (a: number) => any;
|
|
54
54
|
export const defaultsigner_generateRandomKey: (a: number) => any;
|
|
55
55
|
export const defaultsigner_getPublicKeyForNode: (a: number, b: any) => any;
|
|
56
|
-
export const
|
|
56
|
+
export const defaultsigner_getPublicKeyFromSecretKeySource: (a: number, b: any) => any;
|
|
57
57
|
export const defaultsigner_getStaticDepositPrivateKey: (a: number, b: number) => any;
|
|
58
|
-
export const defaultsigner_getStaticDepositPrivateKeySource: (a: number, b: number) => any;
|
|
59
58
|
export const defaultsigner_getStaticDepositPublicKey: (a: number, b: number) => any;
|
|
59
|
+
export const defaultsigner_getStaticDepositSecretKeySource: (a: number, b: number) => any;
|
|
60
60
|
export const defaultsigner_hmacSha256: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
61
61
|
export const defaultsigner_identityPublicKey: (a: number) => [number, number, number];
|
|
62
62
|
export const defaultsigner_signEcdsa: (a: number, b: any, c: number, d: number) => any;
|