Commit Graph

1172 Commits

Author SHA1 Message Date
Jack Grigg 573510115d
Clean up remainder of MMR code 2019-12-05 11:11:32 +00:00
Jack Grigg 8ad33e50a6
Use explicit sizes for pointers to arrays in FFI 2019-12-05 11:09:55 +00:00
Jack Grigg fb8c73c950
Use iterators in construct_mmr_tree 2019-12-05 11:06:26 +00:00
Nikolay Volf 9ea0427678 MMR trees API (#118)
The main design goals of this mmr implementation were

1. Avoid database callbacks. As it is implemented, calling side must just smartly pre-load MMR nodes from the database (about log2(tree length) for append, twice as much for deletion).

2. Reuse as much code/logic between rust and c++ clients.

3. Close to zero memory consumption.
2019-12-04 21:24:26 +00:00
ebfull dd112813a1
Merge pull request #174 from str4d/152-nu-awareness
Network upgrade awareness
2019-12-04 10:42:16 -07:00
str4d 0907adf608
Merge pull request #176 from str4d/156-scan_transaction
zcash_client_backend::decrypt_transaction
2019-12-03 23:15:17 +00:00
Nikolay Volf e2c131fdc3
Merge pull request #5 from NikVolf/review-fixes
Review and other fixes
2019-11-29 01:10:27 -08:00
NikVolf 9059f53873 fix review notes and other issues 2019-11-28 15:36:39 +03:00
NikVolf 26be46573e add hash of the node method 2019-11-28 10:31:16 +03:00
str4d 7820548ea3
Merge pull request #173 from gregdhill/bvk-to-cv_sum
rename bvk to cv_sum
2019-11-27 20:42:54 +00:00
Jack Grigg d5ed684701
zcash_client_backend::decrypt_transaction 2019-11-27 15:45:13 +00:00
Jack Grigg e6a8630b35
impl TryFrom<u32> for BranchId 2019-11-27 13:18:31 +00:00
Jack Grigg cd326f2b6a
Consensus parameters for network upgrades 2019-11-27 13:18:30 +00:00
Jack Grigg c24024b8e1
Create a consensus::BranchId enum for type safety
Includes all currently-known consensus branch IDs for the Zcash network.
2019-11-25 21:04:20 +00:00
Gregory Hill 7eb4a6d1d9
rename bvk to cv_sum
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
2019-11-25 14:28:19 +00:00
str4d 141821d3c1
Merge pull request #157 from adityapk00/transparent_compile_fix
Compile Fix: Add missing sighash declaration
2019-11-14 19:03:59 +00:00
Aditya Kulkarni 219391ac92 Add missing sighash declaration 2019-11-14 09:54:07 -08:00
str4d 67d700feab
Merge pull request #107 from str4d/transaction-builder-transparent-inputs
Add P2PKH transparent input support to transaction::Builder
2019-11-13 22:15:55 +00:00
str4d ac983b7612
Merge pull request #149 from str4d/ffi-cleanup
FFI cleanup
2019-11-13 19:24:22 +00:00
Jack Grigg 8d6f882510
Renames after moves 2019-11-13 19:21:47 +00:00
Jack Grigg 8d967c8609
Move transparent input pushing onto TransparentInputs 2019-11-13 19:20:09 +00:00
Jack Grigg d9d50b98ab
Move transparent signing onto TransparentInputs 2019-11-13 19:12:55 +00:00
str4d 88e02329eb
Merge pull request #129 from adityapk00/regtest_constants
Add regtest constants
2019-11-13 13:54:55 +00:00
Jack Grigg 60eac4e8b7
Escape non-link square brackets in comments 2019-11-11 10:29:36 +00:00
Jack Grigg 4ae238ea1f
librustzcash crate doc 2019-11-11 10:21:38 +00:00
str4d 8d7f27ffb9
Merge pull request #154 from zcash/codecov-action
Move code coverage from Travis CI to Actions
2019-11-07 22:01:15 +00:00
str4d 2ecdbc2036
Merge pull request #153 from str4d/doc-link-fixes
Doc link fixes
2019-11-07 21:57:35 +00:00
Jack Grigg bb39037798
Move code coverage from Travis CI to Actions 2019-11-07 18:16:27 +00:00
Jack Grigg 7be66ad8f8
Rename Actions workflow 2019-11-07 17:40:41 +00:00
Jack Grigg 7fda177da8
Doc link fixes 2019-11-07 17:33:22 +00:00
Jack Grigg d1bc61800c
Move Sprout proof logic into zcash_proofs 2019-11-06 08:58:42 +00:00
Jack Grigg de5943aea4
Ignore clippy::not_unsafe_ptr_arg_deref lint 2019-11-06 07:51:46 +00:00
Jack Grigg 8651bb41ce
Clean up librustzcash imports 2019-11-06 07:51:45 +00:00
Jack Grigg 9cb8c0b3c4
Pull librustzcash.h documentation into crate 2019-11-06 07:51:44 +00:00
Jack Grigg 7181d603be
Explicitly pass [u8; 32] into read_fr and read_fs 2019-11-06 07:51:43 +00:00
Jack Grigg 5d03619466
Rename read_le to read_fr to match read_fs 2019-11-06 07:51:42 +00:00
Jack Grigg 7722b1a50b
Inline write_le 2019-11-06 07:51:41 +00:00
Jack Grigg 0028048800
Use C calling convention for librustzcash
The Rust-to-C++ interface speaks the C ABI. The "system" ABI happens to
be equivalent to the C ABI on the platforms we currently target (in
particular, we don't target win32 with an x86 architecture, which would
use the stdcall ABI).
2019-11-06 07:51:40 +00:00
str4d 720ee6476f
Merge pull request #144 from str4d/warning-fix
Fix rand_os warning in tests
2019-11-04 23:03:07 +00:00
str4d 5823a695e2
Merge pull request #139 from adityapk00/tx_compare
Implement sorting for TxIDs
2019-11-04 16:29:59 +00:00
Jack Grigg bc35a62e10
Remove rand_os dependency 2019-10-31 18:57:52 +00:00
str4d 40d22ea2cc
Merge pull request #135 from NikVolf/extern-purge
Remove unneeded "extern crate"
2019-10-31 17:12:26 +00:00
Jack Grigg ac4acfa26e
Fix rand_os warning in tests 2019-10-31 16:36:54 +00:00
Aditya Kulkarni 4d290e7a32 Add regtest constants 2019-10-14 22:20:58 -07:00
Aditya Kulkarni b479981689
Implement clone for some structs 2019-10-15 17:47:53 +13:00
Aditya Kulkarni 885e09a82f
Create OutPoint from hash and n 2019-10-15 17:47:23 +13:00
Aditya Kulkarni fab9160b26
transparent inputs should use serialize_der() 2019-10-15 17:46:33 +13:00
Aditya Kulkarni 5a177eea27
Make mod serialize public 2019-10-15 17:42:49 +13:00
Jack Grigg 3425eabda2
transaction::Builder::add_transparent_input() 2019-10-15 17:42:46 +13:00
Jack Grigg 70857b0eed
Pass Script to signature_hash by reference 2019-10-15 17:32:34 +13:00