pub struct IdentifyResponse {
    pub gateway_identity: String,
    pub sphere_identity: String,
    pub signature: String,
    pub proof: String,
}
Expand description

The response from the “identify” API route; this is a signed response that allows the client to verify the authority of the API host

Fields

gateway_identity: String

The DID of the API host

sphere_identity: String

The DID of the “counterpart” sphere

signature: String

The signature of the API host over this payload, as base64-encoded bytes

proof: String

The proof that the API host was authorized by the “counterpart” sphere in the form of a UCAN JWT

Implementations

Verifies that the signature scheme on the payload. The signature is made by signing the bytes of the gateway’s key DID plus the bytes of the sphere DID that the gateway claims to manage. Remember: this sphere is not the user’s sphere, but rather the “counterpart” sphere created and modified by the gateway. Additionally, a proof is given that the gateway has been authorized to modify its own sphere.

This verification is intended to check two things:

  1. The gateway has control of the key that it represents with its DID
  2. The gateway is authorized to modify the sphere it claims to manage

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Scrape the references from an impl Read. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more