sdk: add is_interactive() method Signer trait (#18407)

(cherry picked from commit 2af5ec4f57)

Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
mergify[bot]
2021-07-03 09:09:39 +00:00
committed by GitHub
parent eefca613ad
commit 30fa9cbee7
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());