/// Create and sign a new Witness Signature. Used for unit-testing.
Create and sign a new Witness Signature. Used for unit-testing.
Create and sign a new Witness Signature . Used for unit - testing .
pub fn new_signature(from: &KeyPair, tx_sig: Signature) -> Self {
        let sig = Signature::clone_from_slice(from.sign(&tx_sig).as_ref());
        Event::Signature {
            from: from.pubkey(),
            tx_sig,
            sig,
        }
    }
pub fn new_signature ( from : & KeyPair , tx_sig : Signature ) -> Self { let sig = Signature :: clone_from_slice ( from . sign ( & tx_sig ) . as_ref ( ) ) ; Event :: Signature { from : from . pubkey ( ) , tx_sig , sig , } }
Create and sign a new Witness Signature.
Create and sign a new Witness Signature .
from
&KeyPair
tx_sig
Signature