/// Returns a transaction to change the keys for the given account.
Returns a transaction to change the keys for the given account.
Returns a transaction to change the keys for the given account .
pub fn rotate_key_txn(sender: &Account, new_key_hash: Vec<u8>, seq_num: u64) -> SignedTransaction {
    let args = vec![TransactionArgument::U8Vector(new_key_hash)];
    sender.create_signed_txn_with_args(
        StdlibScript::RotateAuthenticationKey
            .compiled_bytes()
            .into_vec(),
        vec![],
        args,
        seq_num,
        gas_costs::TXN_RESERVED,
        0,
        LBR_NAME.to_owned(),
    )
}
pub fn rotate_key_txn ( sender : & Account , new_key_hash : Vec < u8 > , seq_num : u64 ) -> SignedTransaction { let args = vec ! [ TransactionArgument U8Vector ( new_key_hash ) ] ; sender . create_signed_txn_with_args ( StdlibScript :: RotateAuthenticationKey . compiled_bytes ( ) . into_vec ( ) , vec ! [ ] , args , seq_num , gas_costs :: TXN_RESERVED , 0 , LBR_NAME . to_owned ( ) , ) }
Returns a transaction to change the keys for the given account.
Returns a transaction to change the keys for the given account .
sender
&Account
new_key_hash
Vec<u8>
seq_num
u64