@bitgo/wasm-mps 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,28 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
 
4
- export class MsgShare {
4
+ export class MsgDerivation {
5
5
  private constructor();
6
6
  free(): void;
7
7
  [Symbol.dispose](): void;
8
+ readonly ask: Uint8Array | undefined;
9
+ readonly done: boolean;
10
+ readonly external_ivk: Uint8Array | undefined;
11
+ readonly internal_ivk: Uint8Array | undefined;
8
12
  readonly msg: Uint8Array;
9
- readonly share: Share;
13
+ readonly nk: Uint8Array | undefined;
14
+ readonly rivk: Uint8Array | undefined;
15
+ readonly state: Uint8Array;
16
+ }
17
+
18
+ export class MsgDerivationInit {
19
+ private constructor();
20
+ free(): void;
21
+ [Symbol.dispose](): void;
22
+ readonly msg: Uint8Array;
23
+ readonly pk: Uint8Array;
24
+ readonly share: Uint8Array;
25
+ readonly state: Uint8Array;
10
26
  }
11
27
 
12
28
  export class MsgState {
@@ -17,6 +33,23 @@ export class MsgState {
17
33
  readonly state: Uint8Array;
18
34
  }
19
35
 
36
+ export class RedPallasIvks {
37
+ private constructor();
38
+ free(): void;
39
+ [Symbol.dispose](): void;
40
+ readonly external_ivk: Uint8Array;
41
+ readonly internal_ivk: Uint8Array;
42
+ }
43
+
44
+ export class RedPallasSignature {
45
+ private constructor();
46
+ free(): void;
47
+ [Symbol.dispose](): void;
48
+ readonly alpha: Uint8Array;
49
+ readonly rk: Uint8Array;
50
+ readonly signature: Uint8Array;
51
+ }
52
+
20
53
  export class Share {
21
54
  private constructor();
22
55
  free(): void;
@@ -38,4 +71,24 @@ export function ed25519_dsg_round1_process(round1_message: Uint8Array, state: Ui
38
71
 
39
72
  export function ed25519_dsg_round2_process(round2_message: Uint8Array, state: Uint8Array): MsgState;
40
73
 
41
- export function ed25519_dsg_round3_process(round2_message: Uint8Array, state: Uint8Array): Uint8Array;
74
+ export function ed25519_dsg_round3_process(round3_message: Uint8Array, state: Uint8Array): Uint8Array;
75
+
76
+ export function redpallas_derivation_process(messages: Uint8Array, state: Uint8Array): MsgDerivation;
77
+
78
+ export function redpallas_dkg_round0_process(party_id: number, decryption_key: Uint8Array, encryption_keys: Array<any>, seed: Uint8Array): MsgState;
79
+
80
+ export function redpallas_dkg_round1_process(round1_messages: Array<any>, state: Uint8Array): MsgState;
81
+
82
+ export function redpallas_dkg_round2_process(round2_messages: Array<any>, state: Uint8Array, derivation_seed: Uint8Array): MsgDerivationInit;
83
+
84
+ export function redpallas_dsg_round0_process(share: Uint8Array, message: Uint8Array): MsgState;
85
+
86
+ export function redpallas_dsg_round1_process(round1_message: Uint8Array, state: Uint8Array): MsgState;
87
+
88
+ export function redpallas_dsg_round2_process(round2_message: Uint8Array, state: Uint8Array): MsgState;
89
+
90
+ export function redpallas_dsg_round3_process(round3_message: Uint8Array, state: Uint8Array): RedPallasSignature;
91
+
92
+ export function redpallas_fvk_to_ivks(ask: Uint8Array, nk: Uint8Array, rivk: Uint8Array): RedPallasIvks;
93
+
94
+ export function redpallas_verify(pk: Uint8Array, sig: Uint8Array, msg: Uint8Array): boolean;