oa::Signature

An encoded ML-DSA-65 signature.

StRust public API

Declaration

pub struct Signature(/* private fields */);
Public Rust declaration.

Public Methods

pub const fn as_bytes(&self) -> &[u8; 3309]
pub fn to_bytes(&self) -> [u8; 3309]
pub fn is_zero(&self) -> bool
pub fn to_short_hex(&self) -> String
fn clone(&self) -> Signature
fn fmt(&self, formatter: &mut Formatter<'_>) -> Result
fn eq(&self, other: &Signature) -> bool

Associated Functions

pub fn from_bytes(bytes: &[u8]) -> Result<Self>
fn default() -> Self

Public Method Documentation

pub const fn as_bytes( &self ) -> &[u8; 3309]
No public source comment is attached to this declaration.
pub fn to_bytes( &self ) -> [u8; 3309]
No public source comment is attached to this declaration.
pub fn is_zero( &self ) -> bool
No public source comment is attached to this declaration.
pub fn to_short_hex( &self ) -> String
No public source comment is attached to this declaration.
fn clone( &self ) -> Signature
No public source comment is attached to this declaration.
fn fmt( &self, formatter: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &Signature ) -> bool
No public source comment is attached to this declaration.
pub fn from_bytes( bytes: &[u8] ) -> Result<Self>
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.