mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 01:27:56 +00:00
3fef703e30
* Merged BEEFY primitives with generic signature and keyset commitment support from old pull to current code * - Add bls-experimental feature to application-crypto and beefy primitives - Fix remaining crypto -> ecdsa_crypto - code build but not tests * Make beefy primitive tests compile * move bls related beefy primitives code and test behind bls-experimental flag * Make BEEFY clients complies with BEEFY API depending on AuthorityId * - Rename `BeefyAuthoritySet.root` → `BeefyAuthoritySet.keyset_commitment`. - Remove apk proof keyset_commitment from `BeefyAuthoritySet`. - Fix failing signed commitment and signature to witness test. - Make client compatible with BeefyAPI generic on AuthorityId. - `crypto` → `ecdsa_crypto` in BEEFY client and frame. * Commit Cargo lock remove ark-serialize from BEEFY primitives * Use Codec instead of Encode + Decode in primitives/consensus/beefy/src/lib.rs Co-authored-by: Davide Galassi <davxy@datawok.net> * - Make `BeefyApi` generic over Signature type. - Make new `BeeyApi` functinos also generic over AuthorityId and Signature * Unmake BeefyAPI generic over Signature. Recover Signature type from AuthId. * - dont use hex or hex-literal use array-bytes instead in beefy primitives and bls crypto. - CamelCase ECDSA and BLS everywhere. * Move the definition of BEEFY key type from `primitives/beefy` to `crypto.rs` according to new convention. * - Add bls377_generate_new to `sp-io` and `application_crypto::bls`. - Add `bls-experimental` to `sp-io` Does not compile because PassByCodec can not derive PassBy using customly implemented PassByIner. * Implement PassBy for `bls::Public` manually * fix Beefy `KEY_TYPE` in `frame/beefy` tests to come from `sp-core::key_types` enum * specify both generic for `hex2array_unchecked` in `sp-core/bls.rs` * Rename `crypto`→`ecdsa_crypto` in `primitives/consensus/beefy/src/test_utils.rs` docs * remove commented-out code in `primitives/consensus/beefy/src/commitment.rs` Co-authored-by: Davide Galassi <davxy@datawok.net> * Fix inconsistency in panic message in `primitives/io/src/lib.rs` Co-authored-by: Davide Galassi <davxy@datawok.net> * Remove redundant feature activation in `primitives/io/Cargo.toml` Co-authored-by: Davide Galassi <davxy@datawok.net> * - make `w3f-bls` a dev-dependancy only for beefy primitives. - clean up comments. Co-authored-by: Davide Galassi <davxy@datawok.net> * export BEEFY KEY_TYPE from primitives/consensus/beefy make `frame/consensus/beefy` in dependent of sp_crypto_app use consistent naming in the beefy primitive tests. * - implement `BeefyAuthorityId` for `bls_crypto::AuthorityId`. - implement `bls_verify_works` test for BEEFY `bls_crypto`. * Remove BEEFY `ecdsa_n_bls_crypto` for now for later re-introduction * Make commitment and witness BEEFY tests not use Keystore. * put `bls_beefy_verify_works` test under `bls-experimental` flag. * bump up Runtime `BeefyAPI` to version 3 due to introducing generic AuthorityId. * reuse code and encapsulate w3f-bls backend in sp-core as most as possible Co-authored-by: Davide Galassi <davxy@datawok.net> * Make comments in primities BEEFY `commitment.rs` and `witness.rs``tests convention conforming * Use master dep versions * Trivial change. Mostly to trigger CI * Apply suggestions from code review Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com> * Fix Cargo.toml * Trigger CI with cumulus companion * Trigger CI after polkadot companion change --------- Co-authored-by: Davide Galassi <davxy@datawok.net> Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>
101 lines
3.7 KiB
TOML
101 lines
3.7 KiB
TOML
[package]
|
|
name = "sp-io"
|
|
version = "23.0.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2021"
|
|
license = "Apache-2.0"
|
|
homepage = "https://substrate.io"
|
|
repository = "https://github.com/paritytech/substrate/"
|
|
description = "I/O for Substrate runtimes"
|
|
documentation = "https://docs.rs/sp-io"
|
|
readme = "README.md"
|
|
build = "build.rs"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
|
|
[dependencies]
|
|
bytes = { version = "1.1.0", default-features = false }
|
|
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["bytes"] }
|
|
sp-core = { version = "21.0.0", default-features = false, path = "../core" }
|
|
sp-keystore = { version = "0.27.0", default-features = false, optional = true, path = "../keystore" }
|
|
sp-std = { version = "8.0.0", default-features = false, path = "../std" }
|
|
libsecp256k1 = { version = "0.7", optional = true }
|
|
sp-state-machine = { version = "0.28.0", default-features = false, optional = true, path = "../state-machine" }
|
|
sp-runtime-interface = { version = "17.0.0", default-features = false, path = "../runtime-interface" }
|
|
sp-trie = { version = "22.0.0", default-features = false, optional = true, path = "../trie" }
|
|
sp-externalities = { version = "0.19.0", default-features = false, path = "../externalities" }
|
|
sp-tracing = { version = "10.0.0", default-features = false, path = "../tracing" }
|
|
log = { version = "0.4.17", optional = true }
|
|
secp256k1 = { version = "0.24.0", features = ["recovery", "global-context"], optional = true }
|
|
tracing = { version = "0.1.29", default-features = false }
|
|
tracing-core = { version = "0.1.28", default-features = false}
|
|
|
|
# Required for backwards compatibility reason, but only used for verifying when `UseDalekExt` is set.
|
|
ed25519-dalek = { version = "1.0.1", default-features = false, optional = true }
|
|
# Force the usage of ed25519, this is being used in `ed25519-dalek`.
|
|
ed25519 = { version = "1.5.2", optional = true }
|
|
|
|
[build-dependencies]
|
|
rustversion = "1.0.6"
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = [
|
|
"bytes/std",
|
|
"sp-externalities/std",
|
|
"sp-core/std",
|
|
"codec/std",
|
|
"sp-std/std",
|
|
"sp-trie/std",
|
|
"sp-state-machine/std",
|
|
"libsecp256k1",
|
|
"secp256k1",
|
|
"sp-runtime-interface/std",
|
|
"sp-tracing/std",
|
|
"tracing/std",
|
|
"tracing-core/std",
|
|
"log",
|
|
"ed25519-dalek",
|
|
"ed25519",
|
|
"sp-keystore/std"
|
|
]
|
|
|
|
with-tracing = [
|
|
"sp-tracing/with-tracing"
|
|
]
|
|
|
|
# These two features are used for `no_std` builds for the environments which already provides
|
|
# `#[panic_handler]`, `#[alloc_error_handler]` and `#[global_allocator]`.
|
|
#
|
|
# For the regular wasm runtime builds those are not used.
|
|
disable_panic_handler = []
|
|
disable_oom = []
|
|
disable_allocator = []
|
|
|
|
# This feature flag controls the runtime's behavior when encountering
|
|
# a panic or when it runs out of memory, improving the diagnostics.
|
|
#
|
|
# When enabled the runtime will marshal the relevant error message
|
|
# to the host through the `PanicHandler::abort_on_panic` runtime interface.
|
|
# This gives the caller direct programmatic access to the error message.
|
|
#
|
|
# When disabled the error message will only be printed out in the
|
|
# logs, with the caller receving a generic "wasm `unreachable` instruction executed"
|
|
# error message.
|
|
#
|
|
# This has no effect if both `disable_panic_handler` and `disable_oom`
|
|
# are enabled.
|
|
#
|
|
# WARNING: Enabling this feature flag requires the `PanicHandler::abort_on_panic`
|
|
# host function to be supported by the host. Do *not* enable it for your
|
|
# runtime without first upgrading your host client!
|
|
improved_panic_error_reporting = []
|
|
|
|
# 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 = [
|
|
"sp-keystore/bls-experimental",
|
|
]
|