pub enum ExecuteMsg {
SubmitClaims {
claims: Binary,
format: Option<RdfDatasetFormat>,
},
RevokeClaims {
identifier: String,
},
}Expand description
ExecuteMsg defines the set of possible actions that can be performed on the dataverse.
This enum provides variants for registering services, datasets, and other operations related to the dataverse.
Variants§
SubmitClaims
§SubmitClaims
Submits new claims about a resource to the dataverse.
The SubmitClaims message is a pivotal component in the dataverse, enabling entities to contribute new claims about various resources. A claim represents a statement made by an entity, referred to as the issuer, which could be a person, organization, or service. These claims pertain to a diverse range of resources, including digital resources, services, zones, or individuals, and are asserted as factual by the issuer.
§Format
Claims are injected into the dataverse through Verifiable Credentials (VCs).
Primarily, the claims leverage the AXONE ontology, which facilitates articulating assertions about widely acknowledged resources in the dataverse, including digital services, digital resources, zones, governance, and more.
Additionally, other schemas may also be employed to supplement and enhance the validated knowledge contributed to these resources.
§Preconditions
To maintain integrity and coherence in the dataverse, several preconditions are set for the submission of claims:
-
Format Requirement: Claims must be encapsulated within Verifiable Credentials (VCs).
-
Unique Identifier Mandate: Each Verifiable Credential within the dataverse must possess a unique identifier.
-
Issuer Verification: Claims are accepted if they either:
- Bear a verifiable issuer’s signature to ensure authenticity.
- Originate from the transaction sender, in which case the transaction signature serves as proof of authenticity.
-
Content: The actual implementation supports the submission of a single Verifiable Credential, containing a single claim.
§Supported cryptographic proofs
-
Ed25519Signature2018 -
Ed25519Signature2020 -
EcdsaSecp256k1Signature2019 -
DataIntegritywith the following cryptosuites:eddsa-2022,eddsa-rdfc-2022.
Fields
claims: BinaryThe Verifiable Credential containing the claims.
The claims must be serialized in the format specified by the format field.
format: Option<RdfDatasetFormat>RDF dataset serialization format for the claims. If not provided, the default format is N-Quads format.
RevokeClaims
Trait Implementations§
Source§impl Clone for ExecuteMsg
impl Clone for ExecuteMsg
Source§fn clone(&self) -> ExecuteMsg
fn clone(&self) -> ExecuteMsg
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExecuteMsg
impl Debug for ExecuteMsg
Source§impl<'de> Deserialize<'de> for ExecuteMsg
impl<'de> Deserialize<'de> for ExecuteMsg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for ExecuteMsg
impl JsonSchema for ExecuteMsg
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl PartialEq for ExecuteMsg
impl PartialEq for ExecuteMsg
Source§impl Serialize for ExecuteMsg
impl Serialize for ExecuteMsg
impl StructuralPartialEq for ExecuteMsg
Auto Trait Implementations§
impl Freeze for ExecuteMsg
impl RefUnwindSafe for ExecuteMsg
impl Send for ExecuteMsg
impl Sync for ExecuteMsg
impl Unpin for ExecuteMsg
impl UnwindSafe for ExecuteMsg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more