Skip to content

Commit

Permalink
feat: update subxt + fix operator preferences ecdsa key (#850)
Browse files Browse the repository at this point in the history
* feat: bump subxt

* feat: update tangle-subxt

* chore: fix up evm tests use 65 byte public key

* chore: downgrade to 37

* chore: downgrade to 37

* chore: fix test/benchmark

* chore: remove frost local

* chore: spelling

* feat: fix up frost situation

* chore: fmt

* chore: update subxt

* chore: clippy

* chore: fix clippy

* chore: clippy

* chore: fix tests and serialization
  • Loading branch information
drewstone authored Dec 19, 2024
1 parent b31a5f4 commit 590e2e3
Show file tree
Hide file tree
Showing 60 changed files with 5,863 additions and 4,446 deletions.
2,551 changes: 1,575 additions & 976 deletions Cargo.lock

Large diffs are not rendered by default.

28 changes: 9 additions & 19 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ members = [
"pallets/services/rpc",
"pallets/services/rpc/runtime-api",
"pallets/tangle-lst/benchmarking",
"frost",
"frost/frost-*",
"precompiles/pallet-democracy",
"precompiles/batch",
"precompiles/call-permit",
Expand Down Expand Up @@ -129,14 +127,16 @@ p256 = { version = "0.13.2", default-features = false }
ecdsa-core = { package = "ecdsa", version = "0.16.9", default-features = false }
starknet-crypto = { version = "0.7.1", default-features = false, features = ["signature-display", "alloc"] }

frost-core = { path = "frost", default-features = false }
frost-ed25519 = { path = "frost/frost-ed25519", default-features = false }
frost-ed448 = { path = "frost/frost-ed448", default-features = false }
frost-ristretto255 = { path = "frost/frost-ristretto255", default-features = false }
frost-secp256k1 = { path = "frost/frost-secp256k1", default-features = false }
frost-p256 = { path = "frost/frost-p256", default-features = false }
frost-core = { version = "2.0.0", default-features = false }
frost-ed25519 = { version = "2.0.0", default-features = false }
frost-ristretto255 = { version = "2.0.0", default-features = false }
frost-secp256k1 = { version = "2.0.0", default-features = false }
frost-p256 = { version = "2.0.0", default-features = false }

tg-frost-core = { path = "frost", default-features = false }
frost-p384 = { path = "frost/frost-p384", default-features = false }
frost-taproot = { path = "frost/frost-taproot", default-features = false }
frost-ed448 = { path = "frost/frost-ed448", default-features = false }
frost-secp256k1-tr = { path = "frost/frost-secp256k1-tr", default-features = false }

# Substrate dependencies
sp-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2407", default-features = false }
Expand Down Expand Up @@ -373,15 +373,5 @@ subxt = { version = "0.37.0", default-features = false }
subxt-core = { version = "0.37.0", default-features = false }
subxt-signer = { version = "0.37.0", default-features = false }

# Sygma
# sygma-access-segregator = { git = "https://github.com/sygmaprotocol/sygma-substrate-pallets", branch = "stable2407", default-features = false }
# sygma-basic-feehandler = { git = "https://github.com/sygmaprotocol/sygma-substrate-pallets", branch = "stable2407", default-features = false }
# sygma-traits = { git = "https://github.com/sygmaprotocol/sygma-substrate-pallets", branch = "stable2407", default-features = false }
# sygma-fee-handler-router = { git = "https://github.com/sygmaprotocol/sygma-substrate-pallets", branch = "stable2407", default-features = false }
# sygma-percentage-feehandler = { git = "https://github.com/sygmaprotocol/sygma-substrate-pallets", branch = "stable2407", default-features = false }
# sygma-bridge = { git = "https://github.com/sygmaprotocol/sygma-substrate-pallets", branch = "stable2407", default-features = false }
# sygma-runtime-api = { git = "https://github.com/sygmaprotocol/sygma-substrate-pallets", branch = "stable2407", default-features = false }
# sygma-rpc = { git = "https://github.com/sygmaprotocol/sygma-substrate-pallets", branch = "stable2407", default-features = false }

[profile.release]
panic = "unwind"
51 changes: 41 additions & 10 deletions frost/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "frost-core"
name = "tg-frost-core"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
Expand All @@ -8,23 +8,54 @@ license = { workspace = true }
repository = { workspace = true }

[dependencies]
zeroize = { version = "1.8.1", default-features = false, features = ["derive"] }
byteorder = { workspace = true }
byteorder = { version = "1.4", default-features = false }
const-crc32 = { version = "1.2.0", package = "const-crc32-nostd" }
document-features = "0.2.7"
debugless-unwrap = "0.0.4"
derive-getters = "0.5.0"
hex = { workspace = true, features = ["alloc"] }
itertools = { version = "0.13.0", default-features = false }
parity-scale-codec = { workspace = true }
serde = { workspace = true }
serdect = { workspace = true, features = ["alloc"] }
postcard = { version = "1.0.0", default-features = false, features = ["alloc"], optional = true }
rand_core = { workspace = true }
serde = { workspace = true, optional = true }
serdect = { workspace = true, features = ["alloc"], optional = true }
sp-std = { workspace = true }
subtle = { workspace = true }
postcard = { version = "1.0.10", default-features = false, features = ["alloc"] }
hex = { workspace = true, features = ["alloc"] }
rand_core = { workspace = true, optional = true }
debugless-unwrap = "0.0.4"
thiserror = { version = "2.0.3", default-features = false, optional = true }
thiserror-nostd-notrait = { version = "1.0.29", default-features = false }
visibility = "0.1.0"
zeroize = { version = "1.8.1", default-features = false, features = ["derive"] }

# Test dependencies used with the test-impl feature
proptest = { version = "1.0", optional = true }
serde_json = { version = "1.0", optional = true }
criterion = { version = "0.5", optional = true }

[dev-dependencies]
criterion = { version = "0.5" }
lazy_static = "1.4"
proptest = "1.0"
rand = "0.8"
rand_chacha = "0.3"
serde_json = "1.0"

[features]
default = ["std"]
default = ["serialization", "cheater-detection", "std"]
std = [
"byteorder/std",
"rand_core/std",
"hex/std",
"sp-std/std",
"dep:thiserror",

]
## Expose internal types, which do not have SemVer guarantees. This is an advanced
## feature which can be useful if you need to build a modified version of FROST.
## The docs won't list them, you will need to check the source code.
internals = []
# Exposes ciphersuite-generic tests for other crates to use
test-impl = ["dep:proptest", "dep:serde_json", "dep:criterion"]
serialization = ["serde", "dep:postcard"]
serde = ["dep:serde", "dep:serdect"]
cheater-detection = []
34 changes: 0 additions & 34 deletions frost/frost-ed25519/Cargo.toml

This file was deleted.

223 changes: 0 additions & 223 deletions frost/frost-ed25519/src/lib.rs

This file was deleted.

Loading

0 comments on commit 590e2e3

Please sign in to comment.