Skip to content

Commit 093f1dd

Browse files
committed
refactor(encoding): remove VersionError::NotSupported
VersionError::NotSupported does not apply anymore, as the BIP352 specification uses all the values available for the version word in the Galois field where bech32m: 0-31.
1 parent 217f2d3 commit 093f1dd

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

silentpayments/src/encoding/error.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ pub enum VersionError {
9090
BackwardIncompatibleVersion,
9191
/// The length of the payload doesn't match the version of the code
9292
WrongPayloadLength,
93-
/// The version provided is greater than 31 or is not supported by the current code
94-
NotSupported,
9593
}
9694

9795
impl core::fmt::Display for VersionError {
@@ -103,7 +101,6 @@ impl core::fmt::Display for VersionError {
103101
write!(f, "version 31 codes are not backward compatible")
104102
}
105103
WrongPayloadLength => write!(f, "payload length does not match version spec"),
106-
NotSupported => write!(f, "unsupported version"),
107104
}
108105
}
109106
}

0 commit comments

Comments
 (0)