mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 19:41:05 +00:00
* Cherry pick all crypto related changes from pull-request #13311 applied to master's head * Import some stuff just if 'full_crypto' is on * Remove copyright year * Cleanup * First generic BLS draft * Finalize generic implementation * Restore tests * Fix rust docs * Fix after master merge * Fix after master merge * Use double bls with G1 as signature group and verify individual signatures using DLEQ proof. * Fix inclusions and types used within substrate * Remove unused cruft * Restore usage of upstream crates * Fix test * Reduce the diff by aligning Cargo.lock to master * Application-crypto provides bls381 * Implement bls381 for local keystore * Use new generic keystore features * import DoublePublickey[Scheme] from the bls-like root to be less confusing. * fix compilation * Apply suggestions from code review Co-authored-by: Robert Hambrock <roberthambrock@gmail.com> * Clean leftovers * - update bls test vector after applying spec change recommendation. - send message as ref. * Different hard junction ids for different bls12 types * update to new bls-like * bls-like → w3f-bls * Make clippy happy * update test vector after replacing hash and crop with hash to field. * cargo fmt * account for #13972 * hide BLS behind "bls_non_production" feature flag * Remove Cargo.lock entries duplicated in merge * add bls377 to primitives/keystore and client/keystore add bls377 to primitives/application-crypto/ add bls_non_production to primitives/keystore and client/keystore bump up w3f-bls version * rename feature `bls_non_production` to `bls-experimental` --------- Co-authored-by: Davide Galassi <davxy@datawok.net> Co-authored-by: André Silva <andrerfosilva@gmail.com> Co-authored-by: Robert Hambrock <roberthambrock@gmail.com>
This commit is contained in:
@@ -52,6 +52,8 @@ secp256k1 = { version = "0.24.0", default-features = false, features = ["recover
|
||||
ss58-registry = { version = "1.34.0", default-features = false }
|
||||
sp-core-hashing = { version = "5.0.0", path = "./hashing", default-features = false, optional = true }
|
||||
sp-runtime-interface = { version = "7.0.0", default-features = false, path = "../runtime-interface" }
|
||||
# bls crypto
|
||||
w3f-bls = { version = "0.1.3", default-features = false, optional = true}
|
||||
|
||||
[dev-dependencies]
|
||||
sp-serializer = { version = "4.0.0-dev", path = "../serializer" }
|
||||
@@ -59,6 +61,7 @@ rand = "0.8.5"
|
||||
criterion = "0.4.0"
|
||||
serde_json = "1.0"
|
||||
sp-core-hashing-proc-macro = { version = "5.0.0", path = "./hashing/proc-macro" }
|
||||
hex-literal = "0.3.4"
|
||||
|
||||
[[bench]]
|
||||
name = "bench"
|
||||
@@ -125,3 +128,7 @@ full_crypto = [
|
||||
"sp-core-hashing",
|
||||
"sp-runtime-interface/disable_target_static_assertions",
|
||||
]
|
||||
|
||||
# This feature adds BLS crypto primitives. It should not be used in production since
|
||||
# the BLS implementation and interface may still be subject to significant change.
|
||||
bls-experimental = ["w3f-bls"]
|
||||
|
||||
Reference in New Issue
Block a user