referrerpolicy=no-referrer-when-downgrade
sp_core::ecdsa

Type Alias 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

Source§

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.