p2panda-auth 0.7.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
16
17
// SPDX-License-Identifier: MIT OR Apache-2.0

//! Extension arguments required for constructing groups `GroupsOperation`.
use p2panda_core::{Hash, VerifyingKey};
#[cfg(any(test, feature = "serde"))]
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)]
#[cfg_attr(any(test, feature = "serde"), derive(Deserialize, Serialize))]
pub struct GroupsExtensionArgs<C = ()> {
    pub group_id: VerifyingKey,
    pub action: GroupAction<VerifyingKey, C>,
    pub dependencies: Vec<Hash>,
}