🔐authorization
Struct ProvenValue
Value that can be trusted to have been created by a UID. Optionally, the value can also be locked to be received only by a given recipient.
Struct CloneableProvenValue
Proven value material that can be copied by authorized holder code.
Struct Grant
Copyable authorization grant backed by proven value material.
Constants
Function wrap
Proves that the value was wrapped by the given UID. Anyone can unwrap the value.
Function wrap_for_recipient
Proves that the value was wrapped by the given UID. Only the recipient UID can unwrap the value.
Function wrap_cloneable
Proves that the value was wrapped by the given UID, as copyable material. Anyone can unwrap the value.
Function wrap_cloneable_for_recipient
Proves that the value was wrapped by the given UID, as copyable material. Only the recipient UID can unwrap the value.
Function grant
Wraps the value into a copyable authorization grant unwrappable by anyone.
Function grant_for_recipient
Wraps the value into a copyable authorization grant for a specific recipient.
Function unwrap
Unwraps an unrestricted proven value, discarding the proof metadata. Recipient-bound values abort with ENotRecipient; use unwrap_as_recipient with the matching UID.
Function unwrap_as_recipient
Unwraps the proven value on behalf of its recipient. Aborts if the value is locked to a recipient other than the given UID.
Function unwrap_cloneable
Unwraps unrestricted copyable proven material, discarding the proof metadata. Recipient-bound material aborts with ENotRecipient and must first become a ProvenValue.
Function cloneable_into_proven_value
Converts copyable proven material into a non-copyable proven value, preserving the wrapper UID and recipient.
Function grant_into_proven_value
Converts an authorization grant into a non-copyable proven value.
Function drop
Discards a proven value whose inner type can be dropped.
Function by
Who wrapped the value.
Function recipient
Who is the recipient of the value, if any.
Function cloneable_value
The copyable proven material's inner value.
Function cloneable_by
The UID that wrapped the copyable proven material.
Function cloneable_recipient
The recipient the copyable proven material is locked to, if any.
Function grant_value
The grant's inner value.
Function grant_by
The UID that issued the grant.
Function grant_recipient
The recipient the grant is locked to, if any.
Last updated

