#[cfg(feature = "suite-xwing")]
use ml_dsa::MlDsa65;
#[cfg(feature = "suite-max")]
use ml_dsa::MlDsa87;
use ml_dsa::{EncodedVerifyingKey, MlDsaParams, SigningKey as MlSigningKey, VerifyingKey as MlVerifyingKey};
#[cfg(feature = "suite-max")]
use p384::ecdsa::signature::{Signer as _, Verifier as _};
use sha2::Sha512;
use sha3::{Digest, Sha3_256};
#[cfg(feature = "paranoid")]
use slh_dsa::Shake256s;
use zeroize::{ZeroizeOnDrop, Zeroizing};
use crate::format::{self, Kind, VERSION_2, fields};
use crate::{Error, Result, Rng, Suite, SuitePolicy};
pub const PREFIX: &[u8] = b"CompositeAlgorithmSignatures2025";
pub const CONTEXT: &[u8] = b"pqbox/v1/sig";
#[cfg(feature = "suite-xwing")]
const MLDSA65_PK: usize = 1952;
#[cfg(feature = "suite-xwing")]
const MLDSA65_SIG: usize = 3309;
#[cfg(feature = "suite-max")]
const MLDSA87_PK: usize = 2592;
#[cfg(feature = "suite-max")]
const MLDSA87_SIG: usize = 4627;
const MLDSA_SEED: usize = 32;
#[cfg(feature = "paranoid")]
const SLH_PK: usize = 64;
#[cfg(feature = "paranoid")]
const SLH_SK: usize = 128;
#[cfg(feature = "paranoid")]
const SLH_SIG: usize = 29792;
#[cfg(feature = "suite-xwing")]
const ED_PK: usize = 32;
#[cfg(feature = "suite-xwing")]
const ED_SK: usize = 32;
#[cfg(feature = "suite-xwing")]
const ED_SIG: usize = 64;
#[cfg(feature = "suite-max")]
const P384_PK: usize = 97;
#[cfg(feature = "suite-max")]
const P384_SK: usize = 48;
#[cfg(feature = "suite-max")]
const P384_SIG: usize = 96;
#[must_use]
pub fn label(suite: Suite) -> &'static [u8] {
match suite {
#[cfg(feature = "suite-xwing")]
Suite::XWing => b"COMPSIG-MLDSA65-Ed25519-SHA512",
#[cfg(feature = "suite-max")]
Suite::Max => b"COMPSIG-MLDSA87-ECDSA-P384-SHA512",
#[cfg(feature = "paranoid")]
Suite::Paranoid => b"pqbox/v1/COMPSIG-MLDSA87-SLHDSA-SHAKE256s-ECDSA-P384-SHA512",
}
}
fn pk_lens(suite: Suite) -> [usize; 3] {
match suite {
#[cfg(feature = "suite-xwing")]
Suite::XWing => [MLDSA65_PK, 0, ED_PK],
#[cfg(feature = "suite-max")]
Suite::Max => [MLDSA87_PK, 0, P384_PK],
#[cfg(feature = "paranoid")]
Suite::Paranoid => [MLDSA87_PK, SLH_PK, P384_PK],
}
}
fn sk_lens(suite: Suite) -> [usize; 3] {
match suite {
#[cfg(feature = "suite-xwing")]
Suite::XWing => [MLDSA_SEED, 0, ED_SK],
#[cfg(feature = "suite-max")]
Suite::Max => [MLDSA_SEED, 0, P384_SK],
#[cfg(feature = "paranoid")]
Suite::Paranoid => [MLDSA_SEED, SLH_SK, P384_SK],
}
}
fn sig_lens(suite: Suite) -> [usize; 3] {
match suite {
#[cfg(feature = "suite-xwing")]
Suite::XWing => [MLDSA65_SIG, 0, ED_SIG],
#[cfg(feature = "suite-max")]
Suite::Max => [MLDSA87_SIG, 0, P384_SIG],
#[cfg(feature = "paranoid")]
Suite::Paranoid => [MLDSA87_SIG, SLH_SIG, P384_SIG],
}
}
#[must_use]
pub fn public_key_len(suite: Suite) -> usize {
pk_lens(suite).iter().sum()
}
#[must_use]
pub fn secret_key_len(suite: Suite) -> usize {
sk_lens(suite).iter().sum()
}
#[must_use]
pub fn signature_len(suite: Suite) -> usize {
sig_lens(suite).iter().sum()
}
#[derive(Clone)]
enum MlVk {
#[cfg(feature = "suite-xwing")]
L65(Box<MlVerifyingKey<MlDsa65>>),
#[cfg(feature = "suite-max")]
L87(Box<MlVerifyingKey<MlDsa87>>),
}
#[derive(Clone)]
enum TradVk {
#[cfg(feature = "suite-xwing")]
Ed25519([u8; ED_PK]),
#[cfg(feature = "suite-max")]
P384(p384::ecdsa::VerifyingKey),
}
#[derive(Clone)]
pub struct PublicKey {
suite: Suite,
ml: MlVk,
#[cfg(feature = "paranoid")]
slh: Option<Box<slh_dsa::VerifyingKey<Shake256s>>>,
trad: TradVk,
raw: Vec<u8>,
fingerprint: [u8; 32],
}
impl PartialEq for PublicKey {
fn eq(&self, other: &Self) -> bool {
self.suite == other.suite && self.raw == other.raw
}
}
impl Eq for PublicKey {}
impl core::fmt::Debug for PublicKey {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
let fp = self.fingerprint.iter().take(8).fold(String::new(), |mut acc, b| {
let _ = core::fmt::Write::write_fmt(&mut acc, format_args!("{b:02x}"));
acc
});
write!(f, "sign::PublicKey({}, {fp}..)", self.suite)
}
}
#[cfg(feature = "suite-max")]
pub(crate) fn p384_vk(raw: &[u8]) -> Result<p384::ecdsa::VerifyingKey> {
if raw.len() != P384_PK || raw.first() != Some(&0x04) {
return Err(Error::InvalidKey);
}
p384::ecdsa::VerifyingKey::from_sec1_bytes(raw).map_err(|_| Error::InvalidKey)
}
#[cfg(feature = "suite-xwing")]
fn xwing_vk(ml_raw: &[u8], trad_raw: &[u8]) -> Result<(MlVk, TradVk)> {
let ml = MlVk::L65(Box::new(MlVerifyingKey::decode(
&EncodedVerifyingKey::<MlDsa65>::try_from(ml_raw).map_err(|_| Error::InvalidKey)?,
)));
let pk: [u8; ED_PK] = trad_raw.try_into().map_err(|_| Error::InvalidKey)?;
let vk = ed25519_dalek::VerifyingKey::from_bytes(&pk).map_err(|_| Error::InvalidKey)?;
if vk.is_weak() {
return Err(Error::InvalidKey);
}
Ok((ml, TradVk::Ed25519(pk)))
}
#[cfg(feature = "suite-max")]
fn p384_suite_vk(ml_raw: &[u8], trad_raw: &[u8]) -> Result<(MlVk, TradVk)> {
let ml = MlVk::L87(Box::new(MlVerifyingKey::decode(
&EncodedVerifyingKey::<MlDsa87>::try_from(ml_raw).map_err(|_| Error::InvalidKey)?,
)));
Ok((ml, TradVk::P384(p384_vk(trad_raw)?)))
}
impl PublicKey {
pub fn from_raw(suite: Suite, raw: &[u8]) -> Result<Self> {
let [ml_raw, slh_raw, trad_raw] = fields(raw, pk_lens(suite), "signing public key")?;
let (ml, trad) = match suite {
#[cfg(feature = "suite-xwing")]
Suite::XWing => xwing_vk(ml_raw, trad_raw)?,
#[cfg(feature = "suite-max")]
Suite::Max => p384_suite_vk(ml_raw, trad_raw)?,
#[cfg(feature = "paranoid")]
Suite::Paranoid => p384_suite_vk(ml_raw, trad_raw)?,
};
#[cfg(feature = "paranoid")]
let slh = if suite == Suite::Paranoid {
Some(Box::new(
slh_dsa::VerifyingKey::<Shake256s>::try_from(slh_raw).map_err(|_| Error::InvalidKey)?,
))
} else {
None
};
#[cfg(not(feature = "paranoid"))]
let _ = slh_raw;
let header = format::Header::current(Kind::SignPublicKey, suite.id()).to_bytes();
let fingerprint = Sha3_256::new().chain_update(header).chain_update(raw).finalize().into();
Ok(Self {
suite,
ml,
#[cfg(feature = "paranoid")]
slh,
trad,
raw: raw.to_vec(),
fingerprint,
})
}
#[must_use]
pub fn suite(&self) -> Suite {
self.suite
}
#[must_use]
pub fn as_raw(&self) -> &[u8] {
&self.raw
}
#[must_use]
pub fn fingerprint(&self) -> &[u8; 32] {
&self.fingerprint
}
#[must_use]
pub fn to_bytes(&self) -> Vec<u8> {
format::encode(Kind::SignPublicKey, self.suite.id(), &[&self.raw])
}
pub fn from_bytes(data: &[u8]) -> Result<Self> {
Self::from_bytes_with_policy(data, SuitePolicy::DEFAULT)
}
pub fn from_bytes_with_policy(data: &[u8], policy: SuitePolicy) -> Result<Self> {
match format::expect(data, Kind::SignPublicKey)? {
(h, body) if h.version == VERSION_2 => Self::from_raw(policy.suite_from_id(h.suite)?, body),
(h, _) => Err(Error::UnsupportedVersion(h.version)),
}
}
pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<()> {
if signature.suite != self.suite {
return Err(Error::SuiteMismatch {
expected: self.suite.name(),
found: signature.suite.name(),
});
}
let [ml_sig, slh_sig, trad_sig] = fields(&signature.raw, sig_lens(self.suite), "signature")?;
let lbl = label(self.suite);
let m = message_representative(self.suite, &self.fingerprint, message);
let ml_ok = match &self.ml {
#[cfg(feature = "suite-xwing")]
MlVk::L65(vk) => mldsa_verify(vk, &m, lbl, ml_sig),
#[cfg(feature = "suite-max")]
MlVk::L87(vk) => mldsa_verify(vk, &m, lbl, ml_sig),
};
#[cfg(feature = "paranoid")]
let slh_ok = match &self.slh {
Some(vk) => slh_dsa::Signature::<Shake256s>::try_from(slh_sig)
.is_ok_and(|s| vk.try_verify_with_context(&m, lbl, &s).is_ok()),
None => true,
};
#[cfg(not(feature = "paranoid"))]
let slh_ok = slh_sig.is_empty();
let trad_ok = match &self.trad {
#[cfg(feature = "suite-xwing")]
TradVk::Ed25519(pk) => {
<[u8; ED_SIG]>::try_from(trad_sig).is_ok_and(|s| crate::hazmat::ed25519_verify(pk, &m, &s))
}
#[cfg(feature = "suite-max")]
TradVk::P384(vk) => ecdsa_p384_verify(vk, &m, trad_sig),
};
if ml_ok & slh_ok & trad_ok {
Ok(())
} else {
Err(Error::BadSignature)
}
}
}
pub(crate) fn mldsa_sign<P: MlDsaParams, R: Rng + ?Sized>(
sk: &MlSigningKey<P>,
message: &[u8],
ctx: &[u8],
rng: &mut R,
) -> Result<Vec<u8>> {
Ok(sk
.expanded_key()
.sign_randomized(message, ctx, rng)
.map_err(|_| Error::InvalidParams("ML-DSA signing failed"))?
.encode()
.to_vec())
}
pub(crate) fn mldsa_verify<P: MlDsaParams>(
vk: &MlVerifyingKey<P>,
message: &[u8],
ctx: &[u8],
signature: &[u8],
) -> bool {
ml_dsa::Signature::<P>::try_from(signature).is_ok_and(|s| vk.verify_with_context(message, ctx, &s))
}
pub(crate) fn mldsa_public_key<P: MlDsaParams>(sk: &MlSigningKey<P>) -> Vec<u8> {
sk.expanded_key().verifying_key().encode().to_vec()
}
#[cfg(feature = "suite-max")]
pub(crate) fn ecdsa_p384_verify(vk: &p384::ecdsa::VerifyingKey, message: &[u8], signature: &[u8]) -> bool {
p384::ecdsa::Signature::from_slice(signature).is_ok_and(|s| s.normalize_s() == s && vk.verify(message, &s).is_ok())
}
fn message_representative(suite: Suite, fingerprint: &[u8; 32], message: &[u8]) -> Vec<u8> {
let lbl = label(suite);
let ph = Sha512::digest(message);
let mut m = Vec::with_capacity(PREFIX.len() + lbl.len() + 1 + CONTEXT.len() + 32 + ph.len());
m.extend_from_slice(PREFIX);
m.extend_from_slice(lbl);
m.push(44);
m.extend_from_slice(CONTEXT);
m.extend_from_slice(fingerprint);
m.extend_from_slice(&ph);
m
}
#[derive(Clone, PartialEq, Eq)]
pub struct Signature {
suite: Suite,
raw: Vec<u8>,
}
impl core::fmt::Debug for Signature {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "sign::Signature({}, {} bytes)", self.suite, self.raw.len())
}
}
impl Signature {
pub fn from_raw(suite: Suite, raw: &[u8]) -> Result<Self> {
if raw.len() != signature_len(suite) {
return Err(Error::InvalidLength("signature"));
}
Ok(Self {
suite,
raw: raw.to_vec(),
})
}
#[must_use]
pub fn suite(&self) -> Suite {
self.suite
}
#[must_use]
pub fn as_raw(&self) -> &[u8] {
&self.raw
}
#[must_use]
pub fn to_bytes(&self) -> Vec<u8> {
format::encode(Kind::Signature, self.suite.id(), &[&self.raw])
}
pub fn from_bytes(data: &[u8]) -> Result<Self> {
Self::from_bytes_with_policy(data, SuitePolicy::DEFAULT)
}
pub fn from_bytes_with_policy(data: &[u8], policy: SuitePolicy) -> Result<Self> {
match format::expect(data, Kind::Signature)? {
(h, body) if h.version == VERSION_2 => Self::from_raw(policy.suite_from_id(h.suite)?, body),
(h, _) => Err(Error::UnsupportedVersion(h.version)),
}
}
}
enum MlSk {
#[cfg(feature = "suite-xwing")]
L65(Box<MlSigningKey<MlDsa65>>),
#[cfg(feature = "suite-max")]
L87(Box<MlSigningKey<MlDsa87>>),
}
enum TradSk {
#[cfg(feature = "suite-xwing")]
Ed25519(Box<ed25519_dalek::SigningKey>),
#[cfg(feature = "suite-max")]
P384(Box<p384::ecdsa::SigningKey>),
}
#[cfg(feature = "suite-xwing")]
fn xwing_sk(xi: &ml_dsa::B32, trad_raw: &[u8]) -> Result<(MlSk, Vec<u8>, TradSk, Vec<u8>)> {
let ml = Box::new(MlSigningKey::<MlDsa65>::from_seed(xi));
let ml_pk = mldsa_public_key(&ml);
let seed: Zeroizing<[u8; ED_SK]> = Zeroizing::new(
trad_raw
.try_into()
.map_err(|_| Error::InvalidLength("signing secret key"))?,
);
let trad = Box::new(ed25519_dalek::SigningKey::from_bytes(&seed));
let trad_pk = trad.verifying_key().to_bytes().to_vec();
Ok((MlSk::L65(ml), ml_pk, TradSk::Ed25519(trad), trad_pk))
}
#[cfg(feature = "suite-max")]
fn p384_suite_sk(xi: &ml_dsa::B32, trad_raw: &[u8]) -> Result<(MlSk, Vec<u8>, TradSk, Vec<u8>)> {
let ml = Box::new(MlSigningKey::<MlDsa87>::from_seed(xi));
let ml_pk = mldsa_public_key(&ml);
let trad = Box::new(p384::ecdsa::SigningKey::from_slice(trad_raw).map_err(|_| Error::InvalidKey)?);
let trad_pk = p384::elliptic_curve::sec1::ToSec1Point::to_sec1_point(trad.verifying_key().as_affine(), false)
.as_bytes()
.to_vec();
Ok((MlSk::L87(ml), ml_pk, TradSk::P384(trad), trad_pk))
}
#[cfg(feature = "suite-max")]
fn p384_scalar<R: Rng + ?Sized>(rng: &mut R) -> Zeroizing<p384::FieldBytes> {
Zeroizing::new(<p384::SecretKey as p384::elliptic_curve::Generate>::generate_from_rng(rng).to_bytes())
}
pub struct SecretKey {
ml: MlSk,
#[cfg(feature = "paranoid")]
slh: Option<Box<slh_dsa::SigningKey<Shake256s>>>,
trad: TradSk,
secret: Zeroizing<Vec<u8>>,
public: PublicKey,
}
impl ZeroizeOnDrop for SecretKey {}
impl core::fmt::Debug for SecretKey {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "sign::SecretKey({}, <redacted>)", self.public.suite)
}
}
impl SecretKey {
pub fn generate<R: Rng + ?Sized>(suite: Suite, rng: &mut R) -> Result<Self> {
let mut raw = Zeroizing::new(Vec::with_capacity(secret_key_len(suite)));
raw.extend_from_slice(&*Zeroizing::new(crate::random::<MLDSA_SEED, R>(rng)));
#[cfg(feature = "paranoid")]
if suite == Suite::Paranoid {
let slh = slh_dsa::SigningKey::<Shake256s>::new(rng);
raw.extend_from_slice(&Zeroizing::new(slh.to_bytes())[..]);
}
match suite {
#[cfg(feature = "suite-xwing")]
Suite::XWing => raw.extend_from_slice(&*Zeroizing::new(crate::random::<ED_SK, R>(rng))),
#[cfg(feature = "suite-max")]
Suite::Max => raw.extend_from_slice(&p384_scalar(rng)[..]),
#[cfg(feature = "paranoid")]
Suite::Paranoid => raw.extend_from_slice(&p384_scalar(rng)[..]),
}
Self::from_raw(suite, &raw)
}
pub fn from_raw(suite: Suite, raw: &[u8]) -> Result<Self> {
let [ml_raw, slh_raw, trad_raw] = fields(raw, sk_lens(suite), "signing secret key")?;
let xi = Zeroizing::new(ml_dsa::B32::try_from(ml_raw).map_err(|_| Error::InvalidLength("signing secret key"))?);
#[cfg(feature = "paranoid")]
let (slh, slh_pk) = if suite == Suite::Paranoid {
let sk = Box::new(slh_dsa::SigningKey::<Shake256s>::try_from(slh_raw).map_err(|_| Error::InvalidKey)?);
let pk = AsRef::<slh_dsa::VerifyingKey<Shake256s>>::as_ref(&*sk)
.to_bytes()
.to_vec();
(Some(sk), pk)
} else {
(None, Vec::new())
};
#[cfg(not(feature = "paranoid"))]
let slh_pk = {
let _ = slh_raw;
Vec::new()
};
let (ml, ml_pk, trad, trad_pk) = match suite {
#[cfg(feature = "suite-xwing")]
Suite::XWing => xwing_sk(&xi, trad_raw)?,
#[cfg(feature = "suite-max")]
Suite::Max => p384_suite_sk(&xi, trad_raw)?,
#[cfg(feature = "paranoid")]
Suite::Paranoid => p384_suite_sk(&xi, trad_raw)?,
};
let public = PublicKey::from_raw(suite, &[ml_pk, slh_pk, trad_pk].concat())?;
Ok(Self {
ml,
#[cfg(feature = "paranoid")]
slh,
trad,
secret: Zeroizing::new(raw.to_vec()),
public,
})
}
#[must_use]
pub fn suite(&self) -> Suite {
self.public.suite
}
#[must_use]
pub fn public_key(&self) -> &PublicKey {
&self.public
}
#[must_use]
pub fn as_raw(&self) -> &[u8] {
&self.secret
}
#[must_use]
pub fn to_bytes(&self) -> Zeroizing<Vec<u8>> {
Zeroizing::new(format::encode(Kind::SignSecretKey, self.suite().id(), &[&self.secret]))
}
pub fn from_bytes(data: &[u8]) -> Result<Self> {
Self::from_bytes_with_policy(data, SuitePolicy::DEFAULT)
}
pub fn from_bytes_with_policy(data: &[u8], policy: SuitePolicy) -> Result<Self> {
match format::expect(data, Kind::SignSecretKey)? {
(h, body) if h.version == VERSION_2 => Self::from_raw(policy.suite_from_id(h.suite)?, body),
(h, _) => Err(Error::UnsupportedVersion(h.version)),
}
}
pub fn sign<R: Rng + ?Sized>(&self, message: &[u8], rng: &mut R) -> Result<Signature> {
let suite = self.suite();
let lbl = label(suite);
let m = message_representative(suite, &self.public.fingerprint, message);
let mut raw = Vec::with_capacity(signature_len(suite));
raw.extend_from_slice(&match &self.ml {
#[cfg(feature = "suite-xwing")]
MlSk::L65(sk) => mldsa_sign(sk, &m, lbl, rng)?,
#[cfg(feature = "suite-max")]
MlSk::L87(sk) => mldsa_sign(sk, &m, lbl, rng)?,
});
#[cfg(feature = "paranoid")]
if let Some(sk) = &self.slh {
let opt_rand: [u8; 32] = crate::random(rng);
let sig = sk
.try_sign_with_context(&m, lbl, Some(&opt_rand))
.map_err(|_| Error::InvalidParams("SLH-DSA signing failed"))?;
raw.extend_from_slice(&sig.to_bytes());
}
match &self.trad {
#[cfg(feature = "suite-xwing")]
TradSk::Ed25519(sk) => raw.extend_from_slice(&ed25519_dalek::Signer::sign(&**sk, &m).to_bytes()),
#[cfg(feature = "suite-max")]
TradSk::P384(sk) => {
let sig: p384::ecdsa::Signature = sk.sign(&m);
raw.extend_from_slice(&sig.normalize_s().to_bytes());
}
}
Signature::from_raw(suite, &raw)
}
}
#[cfg(test)]
mod tests {
use super::*;
use crate::test_util::rng;
#[test]
fn round_trip_every_suite() {
let mut rng = rng();
for suite in Suite::ALL {
let sk = SecretKey::generate(suite, &mut rng).unwrap();
assert_eq!(sk.as_raw().len(), secret_key_len(suite));
assert_eq!(sk.public_key().as_raw().len(), public_key_len(suite));
let sig = sk.sign(b"hello", &mut rng).unwrap();
assert_eq!(sig.as_raw().len(), signature_len(suite));
sk.public_key().verify(b"hello", &sig).unwrap();
assert_eq!(sk.public_key().verify(b"hellO", &sig), Err(Error::BadSignature));
let all = SuitePolicy::ALL;
let pk = PublicKey::from_bytes_with_policy(&sk.public_key().to_bytes(), all).unwrap();
pk.verify(
b"hello",
&Signature::from_bytes_with_policy(&sig.to_bytes(), all).unwrap(),
)
.unwrap();
let sk2 = SecretKey::from_bytes_with_policy(&sk.to_bytes(), all).unwrap();
assert_eq!(sk2.public_key(), sk.public_key());
if suite.id() != 0x02 {
let refused = Error::SuiteNotAllowed(suite.name());
assert_eq!(PublicKey::from_bytes(&sk.public_key().to_bytes()), Err(refused));
assert_eq!(Signature::from_bytes(&sig.to_bytes()), Err(refused));
assert!(matches!(
SecretKey::from_bytes(&sk.to_bytes()),
Err(Error::SuiteNotAllowed(_))
));
}
}
}
#[test]
fn debug_redacts_secrets() {
let mut rng = rng();
let sk = SecretKey::generate(Suite::ALL[0], &mut rng).unwrap();
let dbg = format!("{sk:?}");
assert!(dbg.contains("redacted"));
let hex = crate::test_util::to_hex(&sk.as_raw()[..8]);
assert!(!dbg.contains(&hex));
}
#[test]
fn secret_types_zeroize_on_drop() {
fn assert_zod<T: ZeroizeOnDrop>() {}
assert_zod::<SecretKey>();
#[cfg(feature = "suite-xwing")]
assert_zod::<MlSigningKey<MlDsa65>>();
#[cfg(feature = "suite-max")]
assert_zod::<MlSigningKey<MlDsa87>>();
#[cfg(feature = "paranoid")]
assert_zod::<slh_dsa::SigningKey<Shake256s>>();
#[cfg(feature = "suite-max")]
assert_zod::<p384::ecdsa::SigningKey>();
#[cfg(feature = "suite-xwing")]
assert_zod::<ed25519_dalek::SigningKey>();
}
}