@gardenfi/core 2.0.7 → 2.0.8
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.
|
@@ -12,7 +12,7 @@ export declare class SecretManager extends EventBroker<SecretManagerEvents> impl
|
|
|
12
12
|
initialize(): Promise<import('@catalogfi/utils').Result<never, string> | import('@catalogfi/utils').Result<string, never>>;
|
|
13
13
|
private derivePrivKeyFromWalletClient;
|
|
14
14
|
getMasterPrivKey(): Promise<import('@catalogfi/utils').Result<never, string> | import('@catalogfi/utils').Result<string, never>>;
|
|
15
|
-
generateSecret(nonce:
|
|
15
|
+
generateSecret(nonce: string): Promise<import('@catalogfi/utils').Result<never, string> | import('@catalogfi/utils').Result<{
|
|
16
16
|
secret: `0x${string}`;
|
|
17
17
|
secretHash: `0x${string}`;
|
|
18
18
|
}, never>>;
|
|
@@ -23,11 +23,12 @@ export interface ISecretManager extends EventBroker<SecretManagerEvents> {
|
|
|
23
23
|
*/
|
|
24
24
|
getMasterPrivKey: () => AsyncResult<string, string>;
|
|
25
25
|
/**
|
|
26
|
-
* Generates secret and secretHash by signing the nonce.
|
|
26
|
+
* Generates secret and secretHash by signing the nonce.
|
|
27
|
+
* Secret is generated by hashing the signature and secretHash is generated by hashing the secret.
|
|
27
28
|
* @param nonce
|
|
28
29
|
* @returns {AsyncResult<Secret, string>} secret,secretHash
|
|
29
30
|
*/
|
|
30
|
-
generateSecret: (nonce:
|
|
31
|
+
generateSecret: (nonce: string) => AsyncResult<Secret, string>;
|
|
31
32
|
/**
|
|
32
33
|
* Checks if the SecretManager is initialized with a private key.
|
|
33
34
|
* @returns boolean
|