lighthouse/eth2/utils
blacktemplar 01054ecf2f Use SignatureBytes and PublicKeyBytes for deposits (#472)
* Replace deposit signatures with SignatureBytes, a struct which lazyly parsers signatures only on demand.

* check byte length when parsing SignatureBytes

* add comment to struct

* distinguish BadSignature and BadSignatureBytes in verify_deposit_signature

* add test for valid signature

* Implements TryInto<Signature> for &SignatureBytes and From<Signature> for &SignatureBytes

* add and use PublicKeyBytes + fix formatting

* fix compiler warning + docs for macro generated structs

* adds tests to ensure correct byte lengths

* small style improvement as suggested by michaelsproul
2019-08-06 13:49:11 +10:00
..
bls Use SignatureBytes and PublicKeyBytes for deposits (#472) 2019-08-06 13:49:11 +10:00
cached_tree_hash Remove old benches (#465) 2019-07-30 17:19:03 +10:00
compare_fields Add extra level of comparisons to CompareFields 2019-05-24 14:08:19 +10:00
compare_fields_derive Add extra level of comparisons to CompareFields 2019-05-24 14:08:19 +10:00
eth2_config Update to frozen spec ❄️ (v0.8.1) (#444) 2019-07-30 12:44:51 +10:00
eth2_interop_keypairs Interop chain start strategies (#479) 2019-08-06 13:29:27 +10:00
hashing Remove unused dependencies (#456) 2019-07-29 09:55:57 +10:00
int_to_bytes Rename eth2_bytes to int_to_bytes 2019-02-15 11:19:25 +11:00
logging Add cargo fmt to .travis.yml (#474) 2019-07-31 14:45:09 +10:00
merkle_proof Add deposit processing, fix clippy lints 2019-03-07 16:15:38 +11:00
serde_hex Merge ssz little endian branch 2019-03-26 15:44:01 +11:00
slot_clock Add new beacon chain test harness 2019-06-24 09:34:52 +10:00
ssz Update to frozen spec ❄️ (v0.8.1) (#444) 2019-07-30 12:44:51 +10:00
ssz_derive Update ssz_derive for publishing to crates.io 2019-07-04 13:22:33 +10:00
ssz_types Disallow extra bytes in Bitfield from_bytes (#488) 2019-08-06 11:05:35 +10:00
swap_or_not_shuffle shuffling: delete old yaml test 2019-06-12 16:56:33 +10:00
test_random_derive Implement new BeaconStateTypes trait in types 2019-05-08 13:08:37 +10:00
tree_hash Tree hash benches (#486) 2019-08-05 18:06:50 +10:00
tree_hash_derive Update to frozen spec ❄️ (v0.8.1) (#444) 2019-07-30 12:44:51 +10:00