sdk: add is_interactive() method Signer trait

(cherry picked from commit 2af5ec4f57)
This commit is contained in:
Trent Nelson
2021-07-02 23:08:10 -06:00
committed by Michael Vines
parent 57b69b5804
commit 6859516126
7 changed files with 33 additions and 0 deletions

View File

@@ -2446,6 +2446,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());