Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
drewstone committed Dec 4, 2023
1 parent a338851 commit 09acb28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ members = [
"standalone/runtime",
"standalone/runtime/evm_tracer",
"pallets/*",
"pallets/roles",
"pallets/roles",
"pallets/jobs/rpc",
"pallets/jobs/rpc/runtime-api",
"precompiles/utils",
Expand Down Expand Up @@ -68,6 +68,7 @@ syn = { version = "1.0" }
hex = { version = "0.4.3", default-features = false }
paste = "1.0.6"
slices = "0.2.0"
schnorrkel = { verison = "11.4", default-features = false }

# DKG Substrate Dependencies
dkg-runtime-primitives = { git = "https://github.com/webb-tools/dkg-substrate.git", tag = "v0.4.7", default-features = false }
Expand Down Expand Up @@ -309,7 +310,5 @@ rpc-trace = { path = "client/rpc/trace" }
rpc-txpool = { path = "client/rpc/txpool" }
evm-tracer = { path = "standalone/runtime/evm_tracer", default-features = false }

schnorrkel = { verison = "11.4", default-features = false }

[profile.release]
panic = "unwind"
2 changes: 2 additions & 0 deletions pallets/claims/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,9 @@ impl<T: Config> Pallet<T> {
MultiAddress::EVM(_) => return None,
MultiAddress::Native(a) => PublicKey::from_bytes(&a.encode()).ok()?,
};
println!("pk: {:?}", pk);
let signature: Signature = Signature::from_bytes(&s.0.encode()).ok()?;
println!("signature: {:?}", signature);
const SIGNING_CTX: &'static [u8] = b"substrate";
match pk.verify_simple(SIGNING_CTX, &msg, &signature) {
Ok(_) => Some(addr),
Expand Down

0 comments on commit 09acb28

Please sign in to comment.