generated from PaulRBerg/hardhat-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that snapshotting is fallable and prepare for persistable cont…
…ainer
- Loading branch information
Showing
19 changed files
with
589 additions
and
26 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
mod app_config; | ||
mod yaml; | ||
mod store_keys; | ||
|
||
pub use app_config::*; |
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,53 @@ | ||
use enclave_core::E3id; | ||
|
||
pub struct StoreKeys; | ||
|
||
impl StoreKeys { | ||
pub fn keyshare(e3_id: &E3id) -> String { | ||
format!("//keyshare/{e3_id}") | ||
} | ||
|
||
pub fn plaintext(e3_id: &E3id) -> String { | ||
format!("//plaintext/{e3_id}") | ||
} | ||
|
||
pub fn publickey(e3_id: &E3id) -> String { | ||
format!("//publickey/{e3_id}") | ||
} | ||
|
||
pub fn fhe(e3_id: &E3id) -> String { | ||
format!("//fhe/{e3_id}") | ||
} | ||
|
||
pub fn meta(e3_id: &E3id) -> String { | ||
format!("//meta/{e3_id}") | ||
} | ||
|
||
pub fn context(e3_id: &E3id) -> String { | ||
format!("//context/{e3_id}") | ||
} | ||
|
||
pub fn router() -> String { | ||
String::from("//router") | ||
} | ||
|
||
pub fn sortition() -> String { | ||
String::from("//sortition") | ||
} | ||
|
||
pub fn eth_private_key() -> String { | ||
String::from("//eth_private_key") | ||
} | ||
|
||
pub fn libp2p_keypair() -> String { | ||
String::from("//libp2p/keypair") | ||
} | ||
|
||
pub fn enclave_sol_reader(chain_id: u64) -> String { | ||
format!("//evm_readers/enclave/{chain_id}") | ||
} | ||
|
||
pub fn ciphernode_registry_reader(chain_id: u64) -> String { | ||
format!("//evm_readers/ciphernode_registry/{chain_id}") | ||
} | ||
} |
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
Oops, something went wrong.