Skip to main content

REST_SERVICE_TYPES

Constant REST_SERVICE_TYPES 

Source
pub const REST_SERVICE_TYPES: [&str; 2];
Expand description

Every service type that denotes a REST endpoint, in match order.

Matching a set rather than one string is what lets a consumer discover both kinds of peer without either having to claim the other’s identity.

TRUST_REGISTRY_SERVICE_TYPE is deliberately absent. It is not a transport: in a VTC’s document it carries a DID, and admitting it here would land that DID in ServiceCapabilities::https, where select would hand an HTTPS transport a did:webvh: string to POST to.