Define constants for special roles

This commit is contained in:
NicolasCantu 2025-03-26 12:27:18 +01:00
parent f246b5f039
commit f762fb903c

View File

@ -23,6 +23,13 @@ pub mod silentpayments;
pub const MAX_PRD_PAYLOAD_SIZE: usize = u16::MAX as usize; // 64KiB sounds reasonable for now
const DEMIURGE: &str = "demiurge";
const PAIRING: &str = "pairing";
const APOPHIS: &str = "apophis";
const MEMBERPUBLICNAME: &str = "memberPublicName";
const PAIREDADDRESSES: &str = "pairedAddresses";
#[derive(Debug, PartialEq, Eq)]
pub enum SpecialRoles {
DEMIURGE, // Only valid for the first state of a process