diff --git a/base_layer/wallet_ffi/src/lib.rs b/base_layer/wallet_ffi/src/lib.rs index dacf6c1064..60d1a36530 100644 --- a/base_layer/wallet_ffi/src/lib.rs +++ b/base_layer/wallet_ffi/src/lib.rs @@ -919,7 +919,7 @@ pub unsafe extern "C" fn commitment_signature_create_from_bytes( return ptr::null_mut(); } - let nonce = match Commitment::from_bytes(&(*public_nonce_bytes).0) { + let nonce = match Commitment::from_bytes(&(*public_nonce_bytes).0.clone()) { Ok(nonce) => nonce, Err(e) => { error!( @@ -931,7 +931,7 @@ pub unsafe extern "C" fn commitment_signature_create_from_bytes( return ptr::null_mut(); }, }; - let u = match TariPrivateKey::from_bytes(&(*u_bytes).0) { + let u = match TariPrivateKey::from_bytes(&(*u_bytes).0.clone()) { Ok(u) => u, Err(e) => { error!( @@ -943,7 +943,7 @@ pub unsafe extern "C" fn commitment_signature_create_from_bytes( return ptr::null_mut(); }, }; - let v = match TariPrivateKey::from_bytes(&(*v_bytes).0) { + let v = match TariPrivateKey::from_bytes(&(*v_bytes).0.clone()) { Ok(u) => u, Err(e) => { error!(