-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { type PublicKey } from '@aztec/circuits.js'; | ||
|
||
/** | ||
* Represents a secure storage for managing keys. | ||
*/ | ||
export interface NewKeyStore { | ||
/** | ||
* Retrieves the master nullifier public key. | ||
* @returns A Promise that resolves to the master nullifier public key. | ||
*/ | ||
getMasterNullifierPublicKey(): Promise<PublicKey>; | ||
|
||
/** | ||
* Retrieves the master incoming viewing key. | ||
* @returns A Promise that resolves to the master incoming viewing key. | ||
*/ | ||
getMasterIncomingViewingPublicKey(): Promise<PublicKey>; | ||
|
||
/** | ||
* Retrieves the master outgoing viewing key. | ||
* @returns A Promise that resolves to the master outgoing viewing key. | ||
*/ | ||
getMasterOutgoingViewingPublicKey(): Promise<PublicKey>; | ||
|
||
/** | ||
* Retrieves the master tagging key. | ||
* @returns A Promise that resolves to the master tagging key. | ||
*/ | ||
getMasterTaggingPublicKey(): Promise<PublicKey>; | ||
|
||
/** | ||
* Retrieves the hash of the public keys. | ||
* @returns A Promise that resolves to the hash of the public keys. | ||
*/ | ||
getPublicKeysHash(): Promise<PublicKey>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters