Remove ovk from transaction creation

This commit is contained in:
Rene Vergara 2024-05-02 12:48:30 -05:00
parent 2d14ef6b22
commit c7f2bca2c4
Signed by: pitmutt
GPG Key ID: 65122AD495A7F5B2
1 changed files with 7 additions and 6 deletions

View File

@ -1779,12 +1779,13 @@ pub extern "C" fn rust_wrapper_create_transaction(
}
},
4 => {
let sk = SpendingKey::from_bytes(output.ovk[0..32].try_into().unwrap()).unwrap();
let ovk = if output.chg {
Some(FullViewingKey::from(&sk).to_ovk(Scope::Internal))
}else {
Some(FullViewingKey::from(&sk).to_ovk(Scope::External))
};
//let sk = SpendingKey::from_bytes(output.ovk[0..32].try_into().unwrap()).unwrap();
//let ovk = if output.chg {
//Some(FullViewingKey::from(&sk).to_ovk(Scope::Internal))
//} else {
//Some(FullViewingKey::from(&sk).to_ovk(Scope::External))
//};
let ovk = None;
let recipient = OrchardAddress::from_raw_address_bytes(&to_array(output.to)).unwrap();
let val = output.amt;
let memo = MemoBytes::from_bytes(&output.memo).unwrap();