Skip to main content

Module remote

Module remote 

Source
Expand description

Purpose-scoped remote controller recognition, whole-source disclosure policy, RecipientRecord reuse, decision-ticket codec, and R2 issuance/current grant. B2 wrap_for / private M decode / PacketProtection delivery remain separate.

Re-exports§

pub use crate::crypto::network::object_stream::RecipientRecord;
pub use crate::crypto::network::object_stream::RECIPIENT_BYTES;
pub use crate::crypto::network::object_stream::RECIPIENT_PURPOSE;

Structs§

AllowedOps
Allowed ticket actions for one enrollment. Unknown bits refuse.
ClosureBudget
Already-counted closure occupancy. Policy bytes/nodes charge this budget.
ControllerRecognition
Fixed eight-slot table. Default deny; no implicit eviction; no key material.
DecisionTicketFields
DisclosureDecision
Current remote decision. Fields are private; no public constructor exists.
DisclosurePolicyFields
DisclosurePolicyView
IndependentAdmission
Independent admission facts. Check A against these, never against A itself.
InstallRequest
Inputs for verifier install. Controller library/pins/owner must be a different mutex. 'owner is the only lifetime retained by RemoteDisclosureGrant.
IssueBuffers
Caller-owned output. Envelope slots must fit cose::MAX_ENVELOPE_BYTES.
IssueRequest
Exact issuance inputs. Challenge is verifier-issued via fresh_challenge.
IssuedLengths
ManagedSigners
Host-authenticated managed signing identity. Not a second KeyManager.
RecognitionAdmin
Crate-local admin token analogous to LocalBootstrap. Not a wire role flag.
RecognitionEnrollment
Trusted host enrollment. Exact source/policy; no wildcard or delegation chain.
RecognitionHandle
Process-local selection of an enrolled controller row.
RecognizedController
Snapshot of a currently recognized controller. Not a disclosure grant.
RemoteDisclosureGrant
Private current grant. No public constructor and no ExecutionPermit escape.
SourceCoverage
Whole-source coverage bits. This profile admits only the complete set.
VerifierChallengeSlot
Capacity-1 outstanding challenge. Not a serialized ticket; restart needs a new slot.

Enums§

DisclosureAction
Ticket action. Metadata release and payload use are distinct effects.

Constants§

DECISION_TICKET_BYTES
DISCLOSURE_DECISION_PURPOSE
Paired control-message purpose. Defined here; object_stream/types.rs stays frozen.
MAX_CLOSURE_LABELS
MAX_DECISION_LEASE_SECS
MAX_DISCLOSURE_POLICY_BYTES
MAX_RECOGNIZED
MAX_TICKET_PACKAGE_BYTES
REMOTE_AUTHORIZATION_BYTES

Functions§

bind_policy_to_closure
Policy original must already be a counted closure node inside existing limits.
check_recipient_against_independent
decode_decision_ticket
decode_disclosure_policy
encode_decision_ticket_into
encode_disclosure_policy_into
fresh_challenge
OS-CSPRNG challenge. All-zero is refused here and again in the ticket codec.
install_remote_disclosure
Verify A + ticket against independent facts, consume the challenge, install the grant.
issue_disclosure
Issue A and the disclosure ticket from THIS recognition table only.
refuse_all_subjects_consented_flag
Do not accept an all-subjects-consented boolean as co-consent evidence.
refuse_bool_authority
A bool trait is not remote authority.
refuse_consent_ledger_as_pq_source_auth
ConsentLedger is classical health-category consent, not PQ source authority.
refuse_delegation_chain
SignedControllerChain-style delegation is unsupported in this profile.
refuse_policy_outcome
PolicyOutcome::Allow is not a remote disclosure decision.
refuse_signed_sensing_scope_as_whole_source
SignedSensingScope is a source-specific Ed25519 profile, not whole-source disclosure.
refuse_verified_label_as_issuer
VerifiedLabel checks encoding/digest, not recognized issuer authority.
refuse_wire_role_install
Wire role flags never install recognition. Local admin is instance-bound.
ticket_package_len
Ticket plus paired envelope must stay inside the 8192 private-package bound.