-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor error handling and introduce SignerConfig for transact…
…ion signing
- Loading branch information
1 parent
db9e6a5
commit 4eb731b
Showing
4 changed files
with
67 additions
and
88 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,31 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Serialize, Deserialize, Debug, Clone)] | ||
#[serde(tag = "type")] | ||
#[serde(rename_all = "snake_case")] | ||
pub enum SignerConfig { | ||
PrivateKey(String), | ||
Mnemonic(String), | ||
KeyStore { | ||
path: String, | ||
password: String, | ||
}, | ||
AzureKeyVault { | ||
key: String, | ||
secret: String, | ||
}, | ||
AwsKms { | ||
key: String, | ||
}, | ||
GoogleKms { | ||
project_id: String, | ||
location: String, | ||
key_ring: String, | ||
key: String, | ||
version: u64, | ||
}, | ||
AlicloudKms { | ||
key: String, | ||
secret: String, | ||
}, | ||
} |
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