mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-01-30 23:42:13 +00:00
Merge pull request #17 from bitcartel/remove_xor_fn
Remove redundant functon librustzcash_xor
This commit is contained in:
commit
46e0898f63
@ -4,8 +4,6 @@
|
||||
#include <stdint.h>
|
||||
|
||||
extern "C" {
|
||||
uint64_t librustzcash_xor(uint64_t a, uint64_t b);
|
||||
|
||||
void librustzcash_to_scalar(const unsigned char *input, unsigned char *result);
|
||||
|
||||
void librustzcash_ask_to_ak(const unsigned char *ask, unsigned char *result);
|
||||
|
@ -385,14 +385,6 @@ pub extern "system" fn librustzcash_sapling_compute_cm(
|
||||
true
|
||||
}
|
||||
|
||||
/// XOR two uint64_t values and return the result, used
|
||||
/// as a temporary mechanism for introducing Rust into
|
||||
/// Zcash.
|
||||
#[no_mangle]
|
||||
pub extern "system" fn librustzcash_xor(a: uint64_t, b: uint64_t) -> uint64_t {
|
||||
a ^ b
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "system" fn librustzcash_eh_isvalid(
|
||||
n: uint32_t,
|
||||
@ -413,14 +405,6 @@ pub extern "system" fn librustzcash_eh_isvalid(
|
||||
equihash::is_valid_solution(n, k, rs_input, rs_nonce, rs_soln)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_xor() {
|
||||
assert_eq!(
|
||||
librustzcash_xor(0x0f0f0f0f0f0f0f0f, 0x1111111111111111),
|
||||
0x1e1e1e1e1e1e1e1e
|
||||
);
|
||||
}
|
||||
|
||||
pub struct SaplingVerificationContext {
|
||||
bvk: edwards::Point<Bls12, Unknown>,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user