ToPublic

Trait ToPublic 

Source
pub trait ToPublic {
    // Required method
    fn to_public(&self) -> Self;
}
Expand description

A trait for converting a key to its public counterpart.

Required Methods§

Source

fn to_public(&self) -> Self

Converts the key to its public counterpart.

This method returns a new instance of the key with any private information removed. The returned key contains only the public key components.

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§