PublicKeyExt

Trait PublicKeyExt 

Source
pub trait PublicKeyExt: Sized {
Show 13 methods // Required methods fn infinity() -> Result<Self>; fn aggregate(public_keys: Vec<Self>) -> Result<Self>; fn aggregate_verify( public_keys: Vec<Self>, messages: Vec<Bytes>, signature: Signature, ) -> Result<bool>; fn from_bytes(bytes: Bytes48) -> Result<Self>; fn to_bytes(&self) -> Result<Bytes48>; fn verify(&self, message: Bytes, signature: Signature) -> Result<bool>; fn fingerprint(&self) -> Result<u32>; fn is_infinity(&self) -> Result<bool>; fn is_valid(&self) -> Result<bool>; fn derive_unhardened(&self, index: u32) -> Result<Self>; fn derive_unhardened_path(&self, path: Vec<u32>) -> Result<Self>; fn derive_synthetic(&self) -> Result<Self>; fn derive_synthetic_hidden( &self, hidden_puzzle_hash: Bytes32, ) -> Result<Self>;
}

Required Methods§

Source

fn infinity() -> Result<Self>

Source

fn aggregate(public_keys: Vec<Self>) -> Result<Self>

Source

fn aggregate_verify( public_keys: Vec<Self>, messages: Vec<Bytes>, signature: Signature, ) -> Result<bool>

Source

fn from_bytes(bytes: Bytes48) -> Result<Self>

Source

fn to_bytes(&self) -> Result<Bytes48>

Source

fn verify(&self, message: Bytes, signature: Signature) -> Result<bool>

Source

fn fingerprint(&self) -> Result<u32>

Source

fn is_infinity(&self) -> Result<bool>

Source

fn is_valid(&self) -> Result<bool>

Source

fn derive_unhardened(&self, index: u32) -> Result<Self>

Source

fn derive_unhardened_path(&self, path: Vec<u32>) -> Result<Self>

Source

fn derive_synthetic(&self) -> Result<Self>

Source

fn derive_synthetic_hidden(&self, hidden_puzzle_hash: Bytes32) -> Result<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§