Commit Graph

97 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
NikVolf de1e8a9022 groth16 proof struct helper 2019-04-10 16:25:31 +03:00
NikVolf cfc90d3102 merge and fix warnings 2019-04-09 18:45:51 +03:00
NikVolf 79887986a9 half stubbed join split verification 2019-03-28 18:33:18 +03:00
Svyatoslav Nikolsky 961993e0a8 minimize hashing #2 2019-03-25 14:41:44 +03:00
Svyatoslav Nikolsky eb43e22cd3 explicint Indexed*::from_raw calls 2019-03-20 12:29:04 +03:00
Dimitris Apostolou cbf4c99d8b
Fix typos 2019-02-03 00:35:00 +02:00
Svyatoslav Nikolsky 753b69995b getblock RPC 2019-01-14 13:50:41 +03: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 9eb727f0c7 fix comment 2018-11-29 15:15:38 +03:00
Svyatoslav Nikolsky 3a1cf6dc15 TransactionSaplingValid 2018-11-27 11:09:11 +03:00
NikVolf 7c92d247cf fixes for 396 2018-11-21 13:19:23 +03:00
NikVolf a992d84bb2 serialization of joinsplit 2018-11-20 19:54:06 +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 17a7c16447 some more verification rules 2018-11-19 11:46:40 +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 4b541b7138 cleaning up 2018-11-14 09:41:11 +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
robertdurst f6d0569743 Add Chain Crate README 2018-06-15 00:14:47 -07:00
Svyatoslav Nikolsky 787a36549c fixed equihash 2018-05-21 14:16:27 +03:00
Svyatoslav Nikolsky d62342f3f1 fixed ser/de 2018-05-18 13:43:13 +03:00
Svyatoslav Nikolsky 7e47bd3b28 flush 2018-05-18 12:04:36 +03:00
Svyatoslav Nikolsky da0c55db7a zcash serialization 2018-05-17 15:09:03 +03:00
Svyatoslav Nikolsky 4365a54099 equihash 2018-05-16 20:39:30 +03:00
Svyatoslav Nikolsky a32a223395 initial commit for Zcash support 2018-05-16 12:13:04 +03:00
Svyatoslav Nikolsky 1f1e274dd1 fixed grumbles 2017-08-28 09:10:49 +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 db46633ef8 segwit: optimized size_with_witness 2017-08-23 12:49:22 +03:00
Svyatoslav Nikolsky 4c432858cf segwit: cleaned up duplicate structs 2017-08-22 14:40:04 +03:00
Svyatoslav Nikolsky abbffb49bb segwit: commitment check + weight check 2017-08-22 14:39:10 +03:00
Svyatoslav Nikolsky d4a191aec1 segwit: initial flush 2017-08-22 14:39:10 +03:00
Svyatoslav Nikolsky 07f260b600 update dependencies 2017-08-02 11:38:08 +03:00
debris 2646059c47 chain uses serialization_derive 2017-07-22 02:53:02 +02:00
debris f99c369e87 block finality check uses median time past instead of block time after csv is activated (bip113) 2017-05-04 10:32:54 +02:00
debris 2074076c41 simplify verification code 2017-04-07 11:46:20 +07:00
debris dd36a624fa updated dependencies and graph 2017-04-05 17:17:23 +07:00
Marek Kotewicz 77cfd9e8f7 db refactor (#385)
* db refactor in progress, refactored kvdb

* kvdb refactor

* removed unused RwLock

* removed unused RwLock

* BlockChainDatabase

* db refactor in progress

* implemented BlockProvider for newdb

* fixed compiling

* newdb TransactionMeta

* newdb tests

* reopen tests for newdb

* replaced old db with new db

* chain_verifier uses new db

* sync module uses refactored db

* check double spends in verification layer

* added Forkable trait to satisfy resolving recursive types by compiler

* new db regtests in progress

* fixed verification and sync unit tests

* fixed miner and rpc unit tests

* implemented fmt::Debug for few structs

* removed commented out code

* fixed bencher target

* removing commented out code, polishing db_refactor pr
2017-04-05 16:37:58 +07:00
Svyatoslav Nikolsky a0020bbda0 Merge pull request #347 from ethcore/sync_v2
Sync refactoring
2016-12-27 14:33:42 +03:00
NikVolf b9dd932983 align with crate 2016-12-26 16:00:44 +03:00
Svyatoslav Nikolsky 9dad2a3eec Merge branch 'master' into sync_v2 2016-12-23 16:19:07 +03:00
Svyatoslav Nikolsky d696dcfdaf sync_v2 2016-12-23 16:13:18 +03:00
debris f1f68f497b P2shCoinbaseTransactionBuilder && Magic::Unitest && removed skip_pow from chain_verification 2016-12-15 14:27:36 +01:00