pub struct Signature { /* private fields */ }
Implementations§
source§impl Signature
impl Signature
pub fn validate(&self, sig_infcheck: bool) -> Result<(), BLST_ERROR>
pub fn sig_validate(sig: &[u8], sig_infcheck: bool) -> Result<Self, BLST_ERROR>
pub fn verify( &self, sig_groupcheck: bool, msg: &[u8], dst: &[u8], aug: &[u8], pk: &PublicKey, pk_validate: bool, ) -> BLST_ERROR
pub fn aggregate_verify( &self, sig_groupcheck: bool, msgs: &[&[u8]], dst: &[u8], pks: &[&PublicKey], pks_validate: bool, ) -> BLST_ERROR
pub fn fast_aggregate_verify( &self, sig_groupcheck: bool, msg: &[u8], dst: &[u8], pks: &[&PublicKey], ) -> BLST_ERROR
pub fn fast_aggregate_verify_pre_aggregated( &self, sig_groupcheck: bool, msg: &[u8], dst: &[u8], pk: &PublicKey, ) -> BLST_ERROR
pub fn verify_multiple_aggregate_signatures( msgs: &[&[u8]], dst: &[u8], pks: &[&PublicKey], pks_validate: bool, sigs: &[&Signature], sigs_groupcheck: bool, rands: &[blst_scalar], rand_bits: usize, ) -> BLST_ERROR
pub fn from_aggregate(agg_sig: &AggregateSignature) -> Self
pub fn compress(&self) -> [u8; 96]
pub fn serialize(&self) -> [u8; 192]
pub fn uncompress(sig_comp: &[u8]) -> Result<Self, BLST_ERROR>
pub fn deserialize(sig_in: &[u8]) -> Result<Self, BLST_ERROR>
pub fn from_bytes(sig_in: &[u8]) -> Result<Self, BLST_ERROR>
pub fn to_bytes(&self) -> [u8; 96]
pub fn subgroup_check(&self) -> bool
Trait Implementations§
source§impl PartialEq for Signature
impl PartialEq for Signature
impl Copy for Signature
impl Eq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)