[−][src]Struct bls_eth_rust::PublicKey
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 byserialize
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]
Auto Trait Implementations
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,