pub struct PublicKey(pub G2);Expand description
The Public Key as a point in G2
Tuple Fields§
§0: G2Implementations§
Source§impl PublicKey
impl PublicKey
Sourcepub fn from_private_key(private_key: &PrivateKey) -> Self
pub fn from_private_key(private_key: &PrivateKey) -> Self
Function to derive the bn254 public key from the PrivateKey.
Sourcepub fn from_compressed<T: AsRef<[u8]>>(bytes: T) -> Result<Self>
pub fn from_compressed<T: AsRef<[u8]>>(bytes: T) -> Result<Self>
Sourcepub fn from_uncompressed<T: AsRef<[u8]>>(bytes: T) -> Result<Self>
pub fn from_uncompressed<T: AsRef<[u8]>>(bytes: T) -> Result<Self>
Trait Implementations§
impl Copy 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