Skip to main content

Crate aeo_protocol

Crate aeo_protocol 

Source
Expand description

Rust SDK for the AEO Protocol v0.1.

Parse, build, validate, and fetch AEO declaration documents.

Specification: https://github.com/mizcausevic-dev/aeo-protocol-spec

§Example

use aeo_protocol::{Document, fetch_well_known};

let doc = fetch_well_known("https://mizcausevic-dev.github.io")?;
println!("{}", doc.entity.name);

Structs§

AnswerConstraints
Soft constraints for answer engines synthesizing about this entity.
Audit
Audit configuration for the declaration.
Authority
Authority information for the entity.
CitationPreferences
Citation preferences for the entity.
Claim
An asserted fact about the entity.
Document
A complete AEO Protocol v0.1 declaration document.
Entity
The entity the declaration is about.
Verification
A proof of ownership or control over an identifier.

Enums§

AeoError
Errors returned by the AEO SDK.
AuditMode
Audit mode for a declaration document.
Confidence
Confidence level for a claim.
EntityType
The five entity types defined by AEO Protocol v0.1.
VerificationType
The six verification types defined by AEO Protocol v0.1.

Constants§

PROTOCOL_VERSION
The AEO Protocol version supported by this SDK.
SDK_VERSION
The version of this SDK crate.

Functions§

fetch_well_known
Fetch and parse the AEO declaration at origin’s well-known URL.
well_known_url
Build the canonical well-known URL for an origin.