@silencelaboratories/walletprovider-sdk 1.7.0 → 4.0.0-hackaton

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,13 +1,6 @@
1
1
  import { EoaAuthPayload } from './auth/EOAauthentication';
2
2
  import { EphKeyClaim } from './auth/ephemeralAuthentication';
3
- /**
4
- * This tagged value is part of key share extra,
5
- * and never directly part of setup message.
6
- */
7
- export declare enum KeyshareExtraTag {
8
- /** Permissions tag of key share extra. */
9
- TAG_PERMISSIONS = 1
10
- }
3
+ import { Policy } from './policy';
11
4
  /**
12
5
  * This class represents the setup message for DKG protocol.
13
6
  * It contains the setup parameters to run the protocol.
@@ -27,11 +20,13 @@ export declare class KeygenSetupOpts implements EoaAuthPayload {
27
20
  private metadata;
28
21
  /** Signature algorithm chosen for key generation */
29
22
  signAlg: string;
30
- constructor({ t, n, ephClaim, permissions, signAlg, }: {
23
+ /** Optional policy attached to the newly generated key */
24
+ policy: string | undefined;
25
+ constructor({ t, n, ephClaim, policy, signAlg, }: {
31
26
  t: number;
32
27
  n: number;
33
28
  ephClaim: EphKeyClaim | undefined;
34
- permissions: string | undefined;
29
+ policy: Policy | undefined;
35
30
  signAlg: string;
36
31
  });
37
32
  get eoaRequestSchema(): {