time_primitives

Type Alias PublicKey

Source
pub type PublicKey = MultiSigner;
Expand description

General Public Key used across the protocol

Aliased Type§

enum PublicKey {
    Ed25519(CryptoBytes<32, (PublicTag, Ed25519Tag)>),
    Sr25519(CryptoBytes<32, Sr25519PublicTag>),
    Ecdsa(CryptoBytes<33, (PublicTag, EcdsaTag)>),
}

Variants§

§

Ed25519(CryptoBytes<32, (PublicTag, Ed25519Tag)>)

An Ed25519 identity.

§

Sr25519(CryptoBytes<32, Sr25519PublicTag>)

An Sr25519 identity.

§

Ecdsa(CryptoBytes<33, (PublicTag, EcdsaTag)>)

An SECP256k1/ECDSA identity (actually, the Blake2 hash of the compressed pub key).