Struct bindle::invoice::signature::SecretKeyEntry
source · pub struct SecretKeyEntry {
pub label: String,
pub keypair: String,
pub roles: Vec<SignatureRole>,
}Fields§
§label: StringA label for this key.
This is intended for human consumption
keypair: StringBase64-encoded Ed25519 key
roles: Vec<SignatureRole>The roles this key should be used for. The default should be SignatureRole::Creator
Implementations§
source§impl SecretKeyEntry
impl SecretKeyEntry
pub fn new(label: &str, roles: Vec<SignatureRole>) -> Self
Trait Implementations§
source§impl Clone for SecretKeyEntry
impl Clone for SecretKeyEntry
source§fn clone(&self) -> SecretKeyEntry
fn clone(&self) -> SecretKeyEntry
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SecretKeyEntry
impl Debug for SecretKeyEntry
source§impl<'de> Deserialize<'de> for SecretKeyEntry
impl<'de> Deserialize<'de> for SecretKeyEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for SecretKeyEntry
impl Serialize for SecretKeyEntry
source§impl TryFrom<&SecretKeyEntry> for KeyEntry
impl TryFrom<&SecretKeyEntry> for KeyEntry
§type Error = SignatureError
type Error = SignatureError
The type returned in the event of a conversion error.
source§fn try_from(secret: &SecretKeyEntry) -> Result<Self, SignatureError>
fn try_from(secret: &SecretKeyEntry) -> Result<Self, SignatureError>
Performs the conversion.
source§impl TryFrom<SecretKeyEntry> for KeyEntry
impl TryFrom<SecretKeyEntry> for KeyEntry
Convert a secret key to a public key.
§type Error = SignatureError
type Error = SignatureError
The type returned in the event of a conversion error.
source§fn try_from(secret: SecretKeyEntry) -> Result<Self, SignatureError>
fn try_from(secret: SecretKeyEntry) -> Result<Self, SignatureError>
Performs the conversion.