Type Definition sp_application_crypto::bls377::Public

source ·
pub type Public = Public<TinyBLS<Bls12<Config>, Config>>;
Expand description

BLS12-377 public key.

Trait Implementations§

source§

impl From<Public> for Public

source§

fn from(outer: Public) -> Self

Converts to this type from the input type.
source§

impl RuntimePublic for Public

source§

fn all(_key_type: KeyTypeId) -> Vec<Self>

Dummy implementation. Returns an empty vector.

source§

fn sign<M: AsRef<[u8]>>( &self, _key_type: KeyTypeId, _msg: &M ) -> Option<Self::Signature>

Dummy implementation. Returns None.

source§

fn verify<M: AsRef<[u8]>>(&self, _msg: &M, _signature: &Self::Signature) -> bool

Dummy implementation. Returns false.

§

type Signature = Signature<TinyBLS<Bls12<Config>, Config>>

The signature that will be generated when signing with the corresponding private key.
source§

fn generate_pair(key_type: KeyTypeId, seed: Option<Vec<u8>>) -> Self

Generate a public/private pair for the given key type with an optional seed and store it in the keystore. Read more
source§

fn to_raw_vec(&self) -> Vec<u8>

Returns Self as raw vec.