mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-13 14:39:25 +00:00
thiserror 2.0, cargo update
This commit is contained in:
@@ -10,8 +10,7 @@ use crate::{
|
||||
};
|
||||
|
||||
/// An error while working with a ViewPair.
|
||||
#[derive(Clone, PartialEq, Eq, Debug)]
|
||||
#[cfg_attr(feature = "std", derive(thiserror::Error))]
|
||||
#[derive(Clone, PartialEq, Eq, Debug, thiserror::Error)]
|
||||
pub enum ViewPairError {
|
||||
/// The spend key was torsioned.
|
||||
///
|
||||
@@ -20,7 +19,7 @@ pub enum ViewPairError {
|
||||
// CLSAG seems to support it if the challenge does a torsion clear, FCMP++ should ship with a
|
||||
// torsion clear, yet it's not worth it to modify CLSAG sign to generate challenges until the
|
||||
// torsion clears and ensure spendability (nor can we reasonably guarantee that in the future)
|
||||
#[cfg_attr(feature = "std", error("torsioned spend key"))]
|
||||
#[error("torsioned spend key")]
|
||||
TorsionedSpendKey,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user