Skip to main content

polyester/models/
guard_signer.rs

1//! Guard signer models (Go `models/guard_signer.go` thin parity).
2
3#[derive(Debug, Clone, PartialEq, Eq)]
4pub struct GuardSignerStatus {
5    pub signer_wallet: String,
6    pub status: String,
7}
8
9#[derive(Debug, Clone, PartialEq, Eq)]
10pub struct GuardApproval {
11    pub approval_id: String,
12    pub signature: String,
13}
14
15#[derive(Debug, Clone, PartialEq, Eq)]
16pub struct CreateGuardSignerWalletResult {
17    pub signer_wallet: String,
18}
19
20#[derive(Debug, Clone, PartialEq, Eq)]
21pub struct ExportGuardSignerWalletResult {
22    pub encrypted_private_key: String,
23}
24
25#[derive(Debug, Clone, PartialEq, Eq)]
26pub struct RotateGuardSignerWalletResult {
27    pub signer_wallet: String,
28}
29
30#[derive(Debug, Clone, PartialEq, Eq)]
31pub struct BatchSignProtectedActionsResult {
32    pub approvals: Vec<GuardApproval>,
33}