[][src]Struct uckb_jsonrpc_core::secp256k1::Pubkey

pub struct Pubkey { /* fields omitted */ }

TODO(doc): @zhangsoledad

Implementations

impl Pubkey[src]

pub fn verify(&self, message: &H256, signature: &Signature) -> Result<(), Error>[src]

Checks that signature is a valid ECDSA signature for message using the public key pubkey

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

TODO(doc): @zhangsoledad

pub fn from_slice(data: &[u8]) -> Result<Pubkey, Error>[src]

TODO(doc): @zhangsoledad

Methods from Deref<Target = H512>

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

Converts Self to a byte slice.

Trait Implementations

impl Clone for Pubkey[src]

impl Debug for Pubkey[src]

impl Deref for Pubkey[src]

type Target = H512

The resulting type after dereferencing.

impl Display for Pubkey[src]

impl Eq for Pubkey[src]

impl From<[u8; 64]> for Pubkey[src]

impl From<H512> for Pubkey[src]

impl From<PublicKey> for Pubkey[src]

impl Hash for Pubkey[src]

impl Into<H512> for Pubkey[src]

impl PartialEq<Pubkey> for Pubkey[src]

impl StructuralEq for Pubkey[src]

impl StructuralPartialEq for Pubkey[src]

Auto Trait Implementations

impl RefUnwindSafe for Pubkey

impl Send for Pubkey

impl Sync for Pubkey

impl Unpin for Pubkey

impl UnwindSafe for Pubkey

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,