pub struct PublicKey { /* private fields */ }
Implementations§
source§impl PublicKey
impl PublicKey
pub fn validate(&self) -> Result<(), BLST_ERROR>
pub fn key_validate(key: &[u8]) -> Result<Self, BLST_ERROR>
pub fn from_aggregate(agg_pk: &AggregatePublicKey) -> Self
pub fn compress(&self) -> [u8; 48]
pub fn serialize(&self) -> [u8; 96]
pub fn uncompress(pk_comp: &[u8]) -> Result<Self, BLST_ERROR>
pub fn deserialize(pk_in: &[u8]) -> Result<Self, BLST_ERROR>
pub fn from_bytes(pk_in: &[u8]) -> Result<Self, BLST_ERROR>
pub fn to_bytes(&self) -> [u8; 48]
Trait Implementations§
source§impl PartialEq for PublicKey
impl PartialEq for PublicKey
impl Copy for PublicKey
impl Eq for PublicKey
Auto Trait Implementations§
impl Freeze for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
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: 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
)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
)