Commit Graph

42 Commits

Author SHA1 Message Date
Henry de Valence 22c3bdeb61 Prefix workspace crates with zebra- (#70)
* Update license and author metadata in workspace crates.

- ensure that the license field is set to GPL-3 for all GPL-3 licensed crates;
- ensure that the author field is set to "Zcash Foundation", responsible for maintenance;
- preserve the original authorship info in AUTHORS.md for human-readable history.

Updating the author field ensures that all of the machine systems that read
crate metadata list the ZF organization, not any single individual, as the
maintainer of the crate.

* Prefix all internal crate names with zebra-.

This does not move the directories containing these crates to also have zebra-
prefixes (for instance, zebra-chain instead of chain).  I think that this would
be preferable, but because it's a `git mv`, it will be simple to do later and
leaving it out of this change makes it easier to see the renaming of all of the
internal modules.

* Remove git dependency from eth-secp256k1

* Avoid an error seemingly related to Deref coercions.

This code caused an overflow while evaluating type constraints.  As best as I
can determine, the cause of the problem was something like so: the Rust
implementation of the Bitcoin-specific hash function used in the Bloom filter
doesn't operate on byte slices, but only on a `&mut R where R: Read`, so to
hash a byte slice, you need to create a mutable copy of the input slice which
can be consumed as a `Read` implementation by the hash function; the previous
version of this code created a slice copy using a `Deref` coercion instead of
`.clone()`, and when a tokio update added new trait impls, the type inference
for the `Deref` coercion exploded (somehow -- I'm not sure about the last
part?).

This commit avoids the problem by manually cloning the input slice.
2019-07-02 15:07:06 -04:00
Henry de Valence 891226069a Run cargo fmt 2019-06-28 15:26:18 -07:00
Svyatoslav Nikolsky 961993e0a8 minimize hashing #2 2019-03-25 14:41:44 +03:00
Dimitris Apostolou cbf4c99d8b
Fix typos 2019-02-03 00:35:00 +02:00
Svyatoslav Nikolsky 0d2f648c4b sapling verifying keys + tests 2018-12-20 15:55:41 +03:00
Svyatoslav Nikolsky 6eae4aa75d sighash update 2018-12-07 12:10:57 +03:00
Svyatoslav Nikolsky 3a1cf6dc15 TransactionSaplingValid 2018-11-27 11:09:11 +03:00
Svyatoslav Nikolsky 43b3484929 use ZCash tx in example 2018-11-19 14:27:05 +03:00
Svyatoslav Nikolsky 2156527c42 Duplicate inputs && nullifiers 2018-11-19 13:54:55 +03:00
Svyatoslav Nikolsky c5e91d033c + another rename 2018-11-19 10:35:03 +03:00
Svyatoslav Nikolsky 106a93fb2e JointSplit -> JoinSplit 2018-11-19 10:12:11 +03:00
Svyatoslav Nikolsky afb52268bb overwinter + sapling transactions (start) 2018-11-19 09:59:17 +03:00
Svyatoslav Nikolsky 3a1e6c9aa6 cleaning up 2018-11-13 14:20:25 +03:00
Svyatoslav Nikolsky c9132eb99d Merge branch 'master' into zcash_init 2018-11-12 12:31:14 +03:00
Jean Pierre Dudey 334e2c154c Remove `rustc-serialize` and use the `rustc-hex` crate.
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2018-08-10 09:06:52 -04:00
Svyatoslav Nikolsky d62342f3f1 fixed ser/de 2018-05-18 13:43:13 +03:00
Svyatoslav Nikolsky da0c55db7a zcash serialization 2018-05-17 15:09:03 +03:00
Svyatoslav Nikolsky a32a223395 initial commit for Zcash support 2018-05-16 12:13:04 +03:00
Svyatoslav Nikolsky 1b1cebdaac segwit: test_witness_hash_differs 2017-08-23 13:16:52 +03:00
Svyatoslav Nikolsky 5fb35020f6 segwit: basic serialization tests 2017-08-23 13:14:19 +03:00
Svyatoslav Nikolsky 4c432858cf segwit: cleaned up duplicate structs 2017-08-22 14:40:04 +03:00
Svyatoslav Nikolsky d4a191aec1 segwit: initial flush 2017-08-22 14:39:10 +03:00
debris 2646059c47 chain uses serialization_derive 2017-07-22 02:53:02 +02:00
debris f1f68f497b P2shCoinbaseTransactionBuilder && Magic::Unitest && removed skip_pow from chain_verification 2016-12-15 14:27:36 +01:00
NikVolf d21721d47e maxing out transaction total spend 2016-12-14 15:01:06 +01:00
Svyatoslav Nikolsky f54b7691c4 Merge branch 'master' into fix_319 2016-12-14 00:17:47 +03:00
Svyatoslav Nikolsky 945c19a8eb replace non-final transactions in mempool 2016-12-14 00:14:07 +03:00
debris 7baaa47b8c import is hashing blocks when reading, added --skip-verification flag 2016-12-13 20:49:41 +01:00
debris b17e466af8 ChainVerifier refactor in progress 2016-12-11 16:03:16 +01:00
debris f1475696c8 ChainVerifier refactor in progress 2016-12-11 04:01:48 +01:00
debris f5b1d95d2d block assembler in progress 2016-12-08 16:45:37 +01:00
Svyatoslav Nikolsky 563997e935 no double-spend transactions in mempool 2016-12-02 14:45:14 +03:00
debris 42ce57e6a8 fixed bip30 tests, tx finality reg tests passing 2016-11-27 15:05:49 +01:00
debris 9b535155bc fixing style 2016-11-18 00:42:31 +01:00
NikVolf 1a553e2caf some verifications 2016-11-10 19:19:47 +03:00
debris 8d580471fa updated chain module to use new reader 2016-10-31 00:28:50 +01:00
Nikolay Volf fa4cd03713 Basic chain verifier (#28)
* redundant spaces

* chain verifier stub

* test storage stub

* test storage -a

* iteration test layout

* flush work

* nbits check

* age & coinbase

* utils mod

* fix warnings

* transaction verification

* merkle root

* first tx test

* use all

* test storage to db
2016-10-24 17:58:38 +03:00
Svyatoslav Nikolsky e03cf06a16 test_data::ChainBuilder for generating transactions for tests 2016-10-20 17:21:28 +03:00
Svyatoslav Nikolsky efdd30da17 implemented HeapSizeOf for MemoryPool 2016-10-19 13:07:11 +03:00
debris d87626884d Serializable trair extended with serialized_size function 2016-10-17 11:17:00 +02:00
debris e8de78bc0b few more message types 2016-10-03 23:36:22 +02:00
debris e1a9f70429 chain structures separated from core 2016-09-19 15:23:37 +02:00