[][src]Struct bls_eth_rust::PublicKey

#[repr(C)]
pub struct PublicKey { /* fields omitted */ }

public key type

Methods

impl PublicKey[src]

pub fn zero() -> PublicKey[src]

return zero instance

pub unsafe fn uninit() -> PublicKey[src]

return uninitialized instance

impl PublicKey[src]

pub fn deserialize(&mut self, buf: &[u8]) -> bool[src]

return true if buf is deserialized successfully

  • buf - serialized data by serialize

pub fn from_serialized(buf: &[u8]) -> Result<PublicKey, BlsError>[src]

return deserialized buf

pub fn serialize(&self) -> Vec<u8>[src]

return serialized byte array

pub fn as_bytes(&self) -> Vec<u8>[src]

alias of serialize

impl PublicKey[src]

pub fn add_assign(&mut self, x: *const PublicKey)[src]

add x to self

  • x - signature to be added

pub fn is_valid_order(&self) -> bool[src]

return true if self has the valid order

Trait Implementations

impl Clone for PublicKey[src]

impl Copy for PublicKey[src]

impl Debug for PublicKey[src]

impl Default for PublicKey[src]

impl Eq for PublicKey[src]

impl PartialEq<PublicKey> for PublicKey[src]

fn eq(&self, rhs: &Self) -> bool[src]

return true if self is equal to rhs

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.