pub type Public = CryptoBytes<sp_core::::sr25519::Public::{constant#0}, Sr25519PublicTag>;Expand description
An Schnorrkel/Ristretto x25519 (“sr25519”) public key.
Aliased Type§
#[repr(transparent)]pub struct Public(pub [u8; 32], _);Tuple Fields§
§0: [u8; 32]Trait Implementations§
Source§impl RuntimePublic for Public
impl RuntimePublic for Public
Source§type Signature = CryptoBytes<sp_core::::sr25519::Signature::{constant#0}, (SignatureTag, Sr25519Tag)>
type Signature = CryptoBytes<sp_core::::sr25519::Signature::{constant#0}, (SignatureTag, Sr25519Tag)>
The signature that will be generated when signing with the corresponding private key.
Source§fn all(key_type: KeyTypeId) -> Vec<Self>
fn all(key_type: KeyTypeId) -> Vec<Self>
Returns all public keys for the given key type in the keystore.
Source§fn generate_pair(key_type: KeyTypeId, seed: Option<Vec<u8>>) -> Self
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 moreSource§fn sign<M: AsRef<[u8]>>(
&self,
key_type: KeyTypeId,
msg: &M,
) -> Option<Self::Signature>
fn sign<M: AsRef<[u8]>>( &self, key_type: KeyTypeId, msg: &M, ) -> Option<Self::Signature>
Sign the given message with the corresponding private key of this public key. Read more