mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Correct doc comments re: HTML tags
This commit is contained in:
@@ -191,7 +191,7 @@ impl<G: PrimeGroup> DLEqProof<G> {
|
|||||||
Ok(DLEqProof { c: read_scalar(r)?, s: read_scalar(r)? })
|
Ok(DLEqProof { c: read_scalar(r)?, s: read_scalar(r)? })
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Serialize a DLEq proof to a Vec<u8>.
|
/// Serialize a DLEq proof to a `Vec<u8>`.
|
||||||
#[cfg(feature = "serialize")]
|
#[cfg(feature = "serialize")]
|
||||||
pub fn serialize(&self) -> Vec<u8> {
|
pub fn serialize(&self) -> Vec<u8> {
|
||||||
let mut res = vec![];
|
let mut res = vec![];
|
||||||
@@ -315,7 +315,7 @@ impl<G: PrimeGroup> MultiDLEqProof<G> {
|
|||||||
Ok(MultiDLEqProof { c, s })
|
Ok(MultiDLEqProof { c, s })
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Serialize a multi-DLEq proof to a Vec<u8>.
|
/// Serialize a multi-DLEq proof to a `Vec<u8>`.
|
||||||
#[cfg(feature = "serialize")]
|
#[cfg(feature = "serialize")]
|
||||||
pub fn serialize(&self) -> Vec<u8> {
|
pub fn serialize(&self) -> Vec<u8> {
|
||||||
let mut res = vec![];
|
let mut res = vec![];
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ impl<C: Curve, T: Clone + Debug + Transcript, H: Hram<C>> Schnorr<C, T, H> {
|
|||||||
impl<C: Curve, H: Hram<C>> IetfSchnorr<C, H> {
|
impl<C: Curve, H: Hram<C>> IetfSchnorr<C, H> {
|
||||||
/// Construct a IETF-compatible Schnorr algorithm.
|
/// Construct a IETF-compatible Schnorr algorithm.
|
||||||
///
|
///
|
||||||
/// Please see the IetfSchnorr documentation for the full details of this.
|
/// Please see the `IetfSchnorr` documentation for the full details of this.
|
||||||
pub fn ietf() -> IetfSchnorr<C, H> {
|
pub fn ietf() -> IetfSchnorr<C, H> {
|
||||||
Schnorr::new(IetfTranscript(vec![]))
|
Schnorr::new(IetfTranscript(vec![]))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ impl<C: Ciphersuite> SchnorrAggregate<C> {
|
|||||||
writer.write_all(self.s.to_repr().as_ref())
|
writer.write_all(self.s.to_repr().as_ref())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Serialize a SchnorrAggregate, returning a Vec<u8>.
|
/// Serialize a SchnorrAggregate, returning a `Vec<u8>`.
|
||||||
pub fn serialize(&self) -> Vec<u8> {
|
pub fn serialize(&self) -> Vec<u8> {
|
||||||
let mut buf = vec![];
|
let mut buf = vec![];
|
||||||
self.write(&mut buf).unwrap();
|
self.write(&mut buf).unwrap();
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ impl<C: Ciphersuite> SchnorrSignature<C> {
|
|||||||
writer.write_all(self.s.to_repr().as_ref())
|
writer.write_all(self.s.to_repr().as_ref())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Serialize a SchnorrSignature, returning a Vec<u8>.
|
/// Serialize a SchnorrSignature, returning a `Vec<u8>`.
|
||||||
pub fn serialize(&self) -> Vec<u8> {
|
pub fn serialize(&self) -> Vec<u8> {
|
||||||
let mut buf = vec![];
|
let mut buf = vec![];
|
||||||
self.write(&mut buf).unwrap();
|
self.write(&mut buf).unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user