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; 96]
pub fn serialize(&self) -> [u8; 192]
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; 96]
Trait Implementations§
Source§impl<'a> From<&'a PublicKey> for &'a blst_p2_affine
impl<'a> From<&'a PublicKey> for &'a blst_p2_affine
Source§impl From<PublicKey> for blst_p2_affine
impl From<PublicKey> for blst_p2_affine
Source§impl From<blst_p2_affine> for PublicKey
impl From<blst_p2_affine> for PublicKey
Source§fn from(point: blst_p2_affine) -> Self
fn from(point: blst_p2_affine) -> Self
Converts to this type from the input type.
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