Skip to content

Commit

Permalink
Merge pull request #30 from str4d/sapling-api-cleanup
Browse files Browse the repository at this point in the history
Sapling proving and verifying API
  • Loading branch information
ebfull authored Jan 6, 2019
2 parents c038717 + 1a1c775 commit f65c37e
Show file tree
Hide file tree
Showing 12 changed files with 721 additions and 488 deletions.
8 changes: 8 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions librustzcash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ lazy_static = "1"
byteorder = "1"
rand = "0.4"
sapling-crypto = { path = "../sapling-crypto" }
zcash_proofs = { path = "../zcash_proofs" }
zip32 = { path = "../zip32" }

[dependencies.blake2-rfc]
Expand Down
3 changes: 1 addition & 2 deletions librustzcash/src/equihash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ fn expand_array(vin: &[u8], bit_len: usize, byte_pad: usize) -> Vec<u8> {
vout[j + x] = ((
// Big-endian
acc_value >> (acc_bits + (8 * (out_width - x - 1)))
)
& (
) & (
// Apply bit_len_mask across byte boundaries
(bit_len_mask >> (8 * (out_width - x - 1))) & 0xFF
)) as u8;
Expand Down
Loading

0 comments on commit f65c37e

Please sign in to comment.