-
Notifications
You must be signed in to change notification settings - Fork 2.7k
BLS Core Crypto attempt #2 #13618
BLS Core Crypto attempt #2 #13618
Changes from 1 commit
b845210
081ced0
f411d74
ee61ddb
a1e0f13
7023c14
d92186d
409b2f4
7177bb1
9b320cd
58d4122
1e331c0
a630ead
8a34867
5c47d33
fe65fce
b278ba7
3d50a72
994a805
d728537
fbb2f47
bc52143
eb8a7ab
0acdf5c
26d9ce2
9de1515
267538f
e3c2af8
2a0a0ca
de48262
7d709da
a2b7308
478da9b
426c5ae
da36af4
856881a
0c7a5f7
9218d9c
58c2d94
6041fec
f9b0da0
758a169
b11659d
3a9c5ed
0bfbcfd
5a1a9cc
2e48a99
270b32e
35b9167
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,12 +44,8 @@ bitflags = "1.3" | |
| array-bytes = { version = "4.1", optional = true } | ||
| ed25519-zebra = { version = "3.1.0", default-features = false, optional = true } | ||
| blake2 = { version = "0.10.4", default-features = false, optional = true } | ||
| schnorrkel = { version = "0.9.1", features = [ | ||
| "preaudit_deprecated", | ||
| "u64_backend", | ||
| ], default-features = false, optional = true } | ||
| schnorrkel = { version = "0.9.1", features = ["preaudit_deprecated", "u64_backend"], default-features = false, optional = true } | ||
| bls-like = {git = "https://github.com/w3f/bls", default-features = false} | ||
|
||
| sha2 = { version = "0.10.0", default-features = false, optional = true } | ||
| hex = { version = "0.4", default-features = false, optional = true} | ||
| libsecp256k1 = { version = "0.7", default-features = false, features = ["static-context"], optional = true } | ||
| merlin = { version = "2.0", default-features = false, optional = true } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -509,8 +509,7 @@ impl<T: BlsBound> CryptoType for Pair<T> { | |
| mod test { | ||
| use super::*; | ||
| use crate::crypto::DEV_PHRASE; | ||
| use bls377::Pair; | ||
| use bls_like::TinyBLS377; | ||
| use bls377::{Pair, Signature}; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: could duplicate these tests for bls381 |
||
| use hex_literal::hex; | ||
|
|
||
| #[test] | ||
|
|
@@ -666,9 +665,7 @@ mod test { | |
|
|
||
| #[test] | ||
| fn signature_serialization_doesnt_panic() { | ||
| fn deserialize_signature( | ||
| text: &str, | ||
| ) -> Result<Signature<TinyBLS377>, serde_json::error::Error> { | ||
| fn deserialize_signature(text: &str) -> Result<Signature, serde_json::error::Error> { | ||
| serde_json::from_str(text) | ||
| } | ||
| assert!(deserialize_signature("Not valid json.").is_err()); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at some point, we were discussing adding bls(381), but hiding it behind a feature flag (not
full_crypto, but a dedicated one to avoid production use). I may have missed some decisions/discussions in-between - you're now intentionally achieving the same by not implementingRuntimePublic?