iop_morpheus_proto/data/
process.rs

1use serde::{Deserialize, Serialize};
2
3use crate::crypto::{hash::Content, sign::Signable};
4use crate::data::schema::MorpheusSchema;
5
6pub type ProcessId = String; // TODO use something like a ContentId here
7
8#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, PartialOrd, Serialize)]
9pub struct Process {
10    // TODO do we need a separate 'id' field here?
11    name: String,
12    version: u32,
13    description: String,
14    evidence_schema: MorpheusSchema,
15    constraints_schema: MorpheusSchema,
16    claim_schema: MorpheusSchema,
17}
18
19impl Content for Process {}
20impl Signable for Process {}