Type Alias OwnedSigningKeyId Copy item path Source pub type OwnedSigningKeyId<K> = OwnedKeyId <SigningKeyAlgorithm , K>;Expand description Algorithm + key name for signing keys.
pub struct OwnedSigningKeyId<K> { }Extracts a string slice from this KeyId.
Extracts a byte slice from this KeyId.
Returns key algorithm of the key ID - the part that comes before the colon.
§ Example
use ruma_common::{DeviceKeyAlgorithm, DeviceKeyId};
let k = DeviceKeyId::parse("ed25519:1" ).unwrap();
assert_eq! (k.algorithm(), DeviceKeyAlgorithm::Ed25519);Returns the key name of the key ID - the part that comes after the colon.
§ Example
use ruma_common::DeviceKeyId;
let k = DeviceKeyId::parse("ed25519:DEV1" ).unwrap();
assert_eq! (k.key_name(), "DEV1" );