Move Rust definitions of C functions to their respective files

This commit is contained in:
Luke Parker
2022-05-13 20:26:53 -04:00
parent 3533e66c7f
commit 0aeab04c70
2 changed files with 13 additions and 7 deletions

View File

@@ -24,13 +24,7 @@ pub mod transaction;
#[link(name = "wrapper")]
extern "C" {
pub(crate) fn free(ptr: *const u8);
fn c_hash_to_point(point: *const u8);
pub(crate) fn c_generate_bp(len: u8, amounts: *const u64, masks: *const [u8; 32]) -> *const u8;
pub(crate) fn c_verify_bp(
serialized_len: usize, serialized: *const u8,
commitments_len: u8, commitments: *const [u8; 32]
) -> bool;
}
lazy_static! {