mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-02 06:46:06 -04:00
Progress on Cancellation path
This commit is contained in:
parent
8e31a3af6a
commit
bff83bbe99
3 changed files with 130 additions and 33 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue