lighthouse/eth2/utils/bls/src
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
..
aggregate_public_key.rs bls: fix unused import warning 2019-06-12 16:56:57 +10:00
aggregate_signature.rs Update to frozen spec ❄️ (v0.8.1) (#444) 2019-07-30 12:44:51 +10:00
fake_aggregate_public_key.rs bls: debugging utils and fake sig fix 2019-06-12 15:44:23 +10:00
fake_aggregate_signature.rs Update to frozen spec ❄️ (v0.8.1) (#444) 2019-07-30 12:44:51 +10:00
fake_public_key.rs Update to frozen spec ❄️ (v0.8.1) (#444) 2019-07-30 12:44:51 +10:00
fake_signature.rs Update to frozen spec ❄️ (v0.8.1) (#444) 2019-07-30 12:44:51 +10:00
keypair.rs Fix clippy lints 2019-04-03 16:23:09 +11:00
lib.rs Use SignatureBytes and PublicKeyBytes for deposits (#472) 2019-08-06 13:49:11 +10:00
macros.rs Use SignatureBytes and PublicKeyBytes for deposits (#472) 2019-08-06 13:49:11 +10:00
public_key_bytes.rs Use SignatureBytes and PublicKeyBytes for deposits (#472) 2019-08-06 13:49:11 +10:00
public_key.rs Use SignatureBytes and PublicKeyBytes for deposits (#472) 2019-08-06 13:49:11 +10:00
secret_key.rs Update to frozen spec ❄️ (v0.8.1) (#444) 2019-07-30 12:44:51 +10:00
signature_bytes.rs Use SignatureBytes and PublicKeyBytes for deposits (#472) 2019-08-06 13:49:11 +10:00
signature.rs Use SignatureBytes and PublicKeyBytes for deposits (#472) 2019-08-06 13:49:11 +10:00