Commit Graph

13 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 750579597b changed max number of headers in the headers message 2019-03-20 14:03:25 +03:00
Svyatoslav Nikolsky d696dcfdaf sync_v2 2016-12-23 16:13:18 +03:00
Svyatoslav Nikolsky 78cae830cc headers-first sync 2016-11-10 14:50:00 +03:00
debris 54e2ae2a4b avoid redundant clone on header serialize 2016-11-07 12:38:52 +01:00
Svyatoslav Nikolsky 22bd2427bf adder txn_count (always zero) to headers message 2016-11-07 13:20:01 +03:00
debris e2245097d4 reader is generic over io::Read 2016-10-31 01:05:21 +01:00
Svyatoslav Nikolsky 49628a3d2c all fields of bitcoin messages -> public 2016-10-21 16:08:46 +03:00
debris f283197a8d renamed PayloadType -> Payload, added common reexports in messages 2016-10-14 11:44:51 +02:00
debris ffc300f85a message cleanup in progress 2016-10-10 18:08:22 +02:00
debris 4d71c801f3 few more message types 2016-10-04 00:47:18 +02:00
debris e8de78bc0b few more message types 2016-10-03 23:36:22 +02:00