diff --git a/types/src/hex.rs b/types/src/hex.rs index 621ee03..875e45b 100644 --- a/types/src/hex.rs +++ b/types/src/hex.rs @@ -8,22 +8,28 @@ use cuprate_epee_encoding::{error, macros::bytes, EpeeValue, Marker}; #[cfg(feature = "serde")] use serde::{Deserialize, Serialize}; -/// Generate the `HexBytes` struct for `N` lengths. +/// Generate `HexBytes` struct(s) for `N` lengths. /// -/// This is a macro because [`hex::FromHex`] does not implement for a generic `N`: +/// This is a macro instead of a `` implementation +/// because [`hex::FromHex`] does not implement for a generic `N`: /// macro_rules! generate_hex_array { ($( $array_len:literal ),* $(,)?) => { paste::paste! { $( - #[doc = concat!("Wrapper type that (de)serializes from/to a ", stringify!($array_len), "-byte array.")] + #[doc = concat!( + "Wrapper type for a ", + stringify!($array_len), + "-byte array that (de)serializes from/to hexadecimal strings." + )] #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] #[cfg_attr(feature = "serde", serde(transparent))] #[repr(transparent)] pub struct []( - #[cfg_attr(feature = "serde", serde(with = "hex::serde"))] pub [u8; $array_len], + #[cfg_attr(feature = "serde", serde(with = "hex::serde"))] + pub [u8; $array_len], ); #[cfg(feature = "epee")] diff --git a/types/src/json/tx.rs b/types/src/json/tx.rs index 44f46d0..3cc9746 100644 --- a/types/src/json/tx.rs +++ b/types/src/json/tx.rs @@ -212,22 +212,30 @@ pub enum RctSignatures { #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] #[cfg_attr(feature = "serde", serde(untagged))] pub enum RctSigPrunable { + /// - [`ringct::RctPrunable::AggregateMlsagBorromean`] + /// - [`ringct::RctPrunable::MlsagBorromean`] MlsagBorromean { rangeSigs: Vec, MGs: Vec, }, + + /// - [`ringct::RctPrunable::MlsagBulletproofs`] MlsagBulletproofs { nbp: u64, bp: Vec, MGs: Vec, pseudoOuts: Vec, }, + + /// - [`ringct::RctPrunable::Clsag`] with [`ringct::bulletproofs::Bulletproof::Original`] ClsagBulletproofs { nbp: u64, bp: Vec, CLSAGs: Vec, pseudoOuts: Vec, }, + + /// - [`ringct::RctPrunable::Clsag`] with [`ringct::bulletproofs::Bulletproof::Plus`] ClsagBulletproofsPlus { nbp: u64, bpp: Vec,