p2panda-auth 0.6.0

Decentralised group management with fine-grained, per-member permissions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: MIT OR Apache-2.0

//! Arguments required for constructing groups `GroupsOperation`.
use p2panda_core::{Hash, VerifyingKey};
use serde::{Deserialize, Serialize};

use crate::group::GroupAction;

/// Additional arguments which can be attached to a p2panda operation in their extensions.
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
pub struct GroupsArgs<C = ()> {
    pub group_id: VerifyingKey,
    pub action: GroupAction<VerifyingKey, C>,
    pub dependencies: Vec<Hash>,
}