sdk: add is_interactive() method Signer trait

This commit is contained in:
Trent Nelson
2021-07-02 23:08:10 -06:00
committed by mergify[bot]
parent d5c2c72360
commit 2af5ec4f57
7 changed files with 33 additions and 0 deletions

View File

@ -2450,6 +2450,10 @@ mod tests {
fn try_sign_message(&self, _message: &[u8]) -> Result<Signature, SignerError> {
Ok(Signature::new(&[1u8; 64]))
}
fn is_interactive(&self) -> bool {
false
}
}
let present: Box<dyn Signer> = Box::new(keypair_from_seed(&[2u8; 32]).unwrap());