Make a proper RctType enum

No longer caches RctType in the RctSignatures as well.
This commit is contained in:
Luke Parker
2023-07-04 11:22:53 -04:00
parent 35d7fa5f71
commit 6fe01d1f15
4 changed files with 196 additions and 82 deletions

View File

@@ -14,7 +14,7 @@ use crate::serialize::*;
/// 64 Borromean ring signatures.
///
/// This type keeps the data as raw bytes as Monero has some transactions with unreduced scalars in
/// this field. While we could use `from_bytes_mod_order`, we'd then not be able to encode this
/// this field. While we could use `from_bytes_mod_order`, we'd then not be able to encode this
/// back into it's original form.
///
/// Those scalars also have a custom reduction algorithm...