pub fn sign(keypair: &Keypair, tx_hash: &[u8; 32]) -> Signature
Expand description

Sign transaction hash created with hash_transaction().

hash_and_sign() helper function exists that combines this method with hash_transaction().