Progress on Cancellation path

This commit is contained in:
Franck Royer 2020-11-24 14:42:51 +11:00 committed by rishflab
parent 8e31a3af6a
commit bff83bbe99
3 changed files with 130 additions and 33 deletions

View file

@ -201,6 +201,16 @@ pub trait TransactionBlockHeight {
async fn transaction_block_height(&self, txid: Txid) -> u32;
}
#[async_trait]
pub trait WaitForBlockHeight {
async fn wait_for_block_height(&self, height: u32);
}
#[async_trait]
pub trait GetRawTransaction {
async fn get_raw_transaction(&self, txid: Txid) -> Option<Transaction>;
}
pub fn recover(S: PublicKey, sig: Signature, encsig: EncryptedSignature) -> Result<SecretKey> {
let adaptor = Adaptor::<Sha256, Deterministic<Sha256>>::default();