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§
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>
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.