Record SSH-signed keychain init ops
This commit is contained in:
parent
91c65e367d
commit
48a83c5a26
12 changed files with 283 additions and 18 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use geth_types::{AgentId, DeviceId, KeyId, NodeId, UnixMillis, UserId};
|
||||
use geth_types::{AgentId, AuthOpId, DeviceId, KeyId, NodeId, UnixMillis, UserId};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::collections::{BTreeMap, BTreeSet};
|
||||
|
||||
|
|
@ -28,6 +28,15 @@ pub struct KeychainOp {
|
|||
pub kind: KeychainOpKind,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct KeychainOpSignature {
|
||||
pub op_id: AuthOpId,
|
||||
pub signer: KeyId,
|
||||
pub namespace: String,
|
||||
pub signature: Vec<u8>,
|
||||
pub created_at: UnixMillis,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[serde(tag = "kind", rename_all = "kebab-case")]
|
||||
pub enum KeychainOpKind {
|
||||
|
|
|
|||
Loading…
Reference in a new issue