Skip to content

Commit

Permalink
fix: taproot on-chain verification (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
shekohex authored Apr 4, 2024
1 parent 103bd9f commit 169c3c3
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 107 deletions.
2 changes: 1 addition & 1 deletion pallets/dkg/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ impl<T: Config> Pallet<T> {
| DigitalSignatureScheme::SchnorrP256
| DigitalSignatureScheme::SchnorrP384
| DigitalSignatureScheme::SchnorrSecp256k1
| DigitalSignatureScheme::SchnorrTaproot
| DigitalSignatureScheme::SchnorrRistretto255 => verify_dkg_signature_schnorr_frost::<T>(
data.signature_scheme,
&data.data,
&data.signature,
&data.verifying_key,
),
_ => Err(Error::<T>::InvalidSignature.into()),
}
}

Expand Down
3 changes: 0 additions & 3 deletions primitives/src/jobs/tss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,6 @@ pub enum DigitalSignatureScheme {
/// Schnorr signature scheme over the Ristretto255 curve / sr25519.
SchnorrRistretto255,

/// Schnorr signature scheme over the JubJub curve.
SchnorrRedJubJub,

/// Schnorr signature scheme over the Ed25519 curve.
SchnorrEd25519,

Expand Down
1 change: 1 addition & 0 deletions primitives/src/roles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ impl TryFrom<u16> for RoleType {
0x0025 => Ok(RoleType::Tss(ThresholdSignatureRoleType::ZcashFrostEd25519)),
0x0026 => Ok(RoleType::Tss(ThresholdSignatureRoleType::ZcashFrostEd448)),
0x0031 => Ok(RoleType::Tss(ThresholdSignatureRoleType::GennaroDKGBls381)),
0x0032 => Ok(RoleType::Tss(ThresholdSignatureRoleType::WstsV2)),
0x0041 => Ok(RoleType::ZkSaaS(ZeroKnowledgeRoleType::ZkSaaSGroth16)),
0x0042 => Ok(RoleType::ZkSaaS(ZeroKnowledgeRoleType::ZkSaaSMarlin)),
0x0100 => Ok(RoleType::LightClientRelaying),
Expand Down
Binary file modified tangle-subxt/metadata/tangle-testnet-runtime.scale
Binary file not shown.
Loading

0 comments on commit 169c3c3

Please sign in to comment.