SwapScriptCommon

Trait SwapScriptCommon 

Source
pub trait SwapScriptCommon {
    // Required methods
    fn swap_type(&self) -> SwapType;
    fn partial_sign(
        &self,
        keys: &Keypair,
        pub_nonce: &str,
        transaction_hash: &str,
    ) -> Result<(PartialSignature, PublicNonce), Error>;
}
Expand description

Trait for common functionality between Bitcoin and Liquid swap transactions

Required Methods§

Source

fn swap_type(&self) -> SwapType

Source

fn partial_sign( &self, keys: &Keypair, pub_nonce: &str, transaction_hash: &str, ) -> Result<(PartialSignature, PublicNonce), Error>

Implementors§