Add a custom signer for hardware wallets

Also add function to get funded wallet with coinbase
This commit is contained in:
wszdexdrf
2022-07-26 00:07:04 +05:30
parent 12507c707f
commit 76034772cb
5 changed files with 110 additions and 0 deletions

View File

@@ -159,6 +159,16 @@ pub enum SignerError {
InvalidSighash,
/// Error while computing the hash to sign
SighashError(sighash::Error),
/// Error while signing using hardware wallets
#[cfg(feature = "hardware-signer")]
HWIError(hwi::error::Error),
}
#[cfg(feature = "hardware-signer")]
impl From<hwi::error::Error> for SignerError {
fn from(e: hwi::error::Error) -> Self {
SignerError::HWIError(e)
}
}
impl From<sighash::Error> for SignerError {