pub fn sign(t: &Transaction, key: &Ed25519KeyPair) -> Signature {
    let mut bytes = t.Input.clone();
    bytes.push_str(t.Output.as_str());
    key.sign(bytes.as_bytes())
}
/// Create digital signature of a transaction
Create digital signature of a transaction
Create digital signature of a transaction
pub fn sign(t: &Transaction, key: &Ed25519KeyPair) -> Signature {
    let mut bytes = t.Input.clone();
    bytes.push_str(t.Output.as_str());
    key.sign(bytes.as_bytes())
}
pub fn sign ( t : & Transaction , key : & Ed25519KeyPair ) -> Signature { let mut bytes = t . Input . clone ( ) ; bytes . push_str ( t . Output . as_str ( ) ) ; key . sign ( bytes . as_bytes ( ) ) }
Create digital signature of a transaction
Create digital signature of a transaction
t
&Transaction
key
&Ed25519KeyPair
t
&Transaction
key
&Ed25519KeyPair