Struct matrix_sdk_crypto::olm::PrivateCrossSigningIdentity [−][src]
pub struct PrivateCrossSigningIdentity { /* fields omitted */ }Expand description
Private cross signing identity.
This object holds the private and public ed25519 key triplet that is used for cross signing.
The object might be completely empty or have only some of the key pairs available.
It can be used to sign devices or other identities.
Implementations
Is the identity empty.
An empty identity doesn’t contain any private keys.
It is usual for the identity not to contain the master key since the master key is only needed to sign the subkeys.
An empty identity indicates that either no identity was created for this use or that another device created it and hasn’t shared it yet with us.
Can we sign our own devices, i.e. do we have a self signing key.
Can we sign other users, i.e. do we have a user signing key.
Do we have the master key.
Get the status of our private cross signing keys, i.e. if we have the master key and the subkeys.
Get the public part of the master key, if we have one.
Get the public part of the self-signing key, if we have one.
Get the public part of the user-signing key, if we have one.
Export the seed of the private cross signing key
The exported seed will be encoded as unpadded base64.
Arguments
secret_name- The type of the cross signing key that should be exported.
Mark the identity as shared.
Has the identity been shared.
A shared identity here means that the public keys of the identity have been uploaded to the server.
pub async fn from_pickle(
pickle: PickledCrossSigningIdentity,
pickle_key: &[u8]
) -> Result<Self, SigningError>
pub async fn from_pickle(
pickle: PickledCrossSigningIdentity,
pickle_key: &[u8]
) -> Result<Self, SigningError>
Restore the private cross signing identity from a pickle.
Panic
Panics if the pickle_key isn’t 32 bytes long.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PrivateCrossSigningIdentity
impl Send for PrivateCrossSigningIdentity
impl Sync for PrivateCrossSigningIdentity
impl Unpin for PrivateCrossSigningIdentity
impl !UnwindSafe for PrivateCrossSigningIdentity
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more