Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

🔐Network Authentication Actions

Audience: Nexus SDK integrators (Rust).

Area: Network authentication actions.

Generated from: Nexus SDK network-auth API at annotated tag v2.2.0, peeled commit c996eda4f125989cbec4f1cdc5d5e5235a558167; the generated inventory and 2.2.0 client helpers are source-verified.

NexusClient::network_auth provides the action facade, and NetworkAuthReader is its read-only counterpart. The v3.1 request-context addition retains the signed_http::v3 API and X-Nexus-Sig-V: 3 wire value. Requests add separate nexus-context-sig and nexus-context-timestamp headers: the allowlisted Leader key signs the receiving Tool FQN, invocation nonce, and Unix-millisecond timestamp. The existing input and result signatures keep their v3 meanings. An on-chain Tool key has an ID, but signed HTTP sends no Tool KID header; responses still carry only signature version and Tool signature.

Client and ownership boundary

NetworkAuthActions::from_client derives the network-auth action facade from the configured client. Tool owner capability, ToolCashier administration, and network-auth key/allowlist records answer different authorization questions; preserve the exact capability and object IDs returned by the registration transaction. RegisteredKeyAuxiliary::validate() checks that its input hash and nonce are 32 bytes and its Leader and Tool signatures are 64 bytes; it validates field lengths, not cryptographic signatures.

Source-derived public API inventory

RegisteredToolKey

pub struct RegisteredToolKey {
    /// Transaction digest that performed the registration.
    pub tx_digest: sui::types::Digest,
    /// Stable on chain [`ToolAnchor`] object ID.
    pub tool_id: sui::types::Address,
    /// Registered on-chain key ID; signed-HTTP v3 does not carry it in a header.
    pub tool_kid: u64,
    /// Registered Ed25519 public key bytes.
    pub public_key: [u8; 32],
    /// Deterministic [`KeyBinding`] object ID below [`NetworkAuth`].
    pub binding_object_id: sui::types::Address,
}

ToolKeyEntry

ToolKeyList

ActiveEd25519Key

ResolvedKeyBinding

NetworkAuthActions

NetworkAuthActions::binding_object_id

NetworkAuthActions::register_tool_message_key

NetworkAuthActions::list_tool_keys

NetworkAuthActions::export_allowed_leaders_file_v1

NetworkAuthActions::list_leader_cap_ids_from_network_auth

NetworkAuthActions::export_allowed_leaders_file_v1_for_all_leaders

NetworkAuthReader

NetworkAuthReader::new

from_client

from_rpc_url

NetworkAuthReader::binding_object_id

NetworkAuthReader::try_get_key_binding

NetworkAuthReader::try_get_active_key_binding

NetworkAuthReader::list_leader_cap_ids_from_network_auth

NetworkAuthReader::export_allowed_leaders_file_v1_for_all_leaders

initial_tool_registration

RegisteredKeyAuxiliary::validate

SignedHttpError

HEADER_SIGNATURE_VERSION

HEADER_LEADER_ID

HEADER_LEADER_KEY_ID

HEADER_INPUT_HASH

HEADER_LEADER_SIGNATURE

HEADER_NONCE

HEADER_CONTEXT_SIGNATURE

HEADER_CONTEXT_TIMESTAMP

HEADER_TOOL_SIGNATURE

SIGNATURE_VERSION_V3

CANONICAL_TOOL_RESPONSE_CONTENT_TYPE

EncodedRequestHeaders

EncodedRequestHeaders::to_pairs

EncodedResponseHeaders

EncodedResponseHeaders::to_pairs

RequestHeadersRef

RequestHeadersRef::from_getter

ResponseHeadersRef

ResponseHeadersRef::from_getter

AuthenticatedRequest

LeaderKeyResolver

sign_request

authenticate_request

sign_response

verify_response

tool_signature_message

sha256

context_digest

AllowedLeaders

AllowedLeaders::from_path

AllowedLeaders::source_path

AllowedLeadersFileV1

AllowedLeaderFileV1

AllowedLeaderKeyFileV1

Last updated