Type Alias sp_core::ecdsa::Public

source ·
pub type Public = PublicBytes<PUBLIC_KEY_SERIALIZED_SIZE, EcdsaTag>;
Expand description

The ECDSA compressed public key.

Aliased Type§

struct Public(pub [u8; 33], _);

Fields§

§0: [u8; 33]

Implementations§

source§

impl Public

source

pub fn from_full(full: &[u8]) -> Result<Self, ()>

Create a new instance from the given full public key.

This will convert the full public key into the compressed format.

Trait Implementations§

source§

impl CryptoType for Public

§

type Pair = Pair

The pair key type of this crypto.
source§

impl From<Pair> for Public

source§

fn from(x: Pair) -> Self

Converts to this type from the input type.
source§

impl From<PublicKey> for Public

source§

fn from(pubkey: PublicKey) -> Self

Converts to this type from the input type.