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 release v2.1.0 commit 45d397aafcfbeeeaf5032d5fb9fa5d99b3f36205; the generated inventory is preserved and 2.1.0 client helpers are source-verified.

NexusClient::network_auth provides the action facade, and NetworkAuthReader is its read-only counterpart. An on-chain Tool key has an ID, but signed-HTTP v3 sends no Tool KID header: request headers use signature version, leader ID, leader key ID, input hash, leader signature, and nonce; response headers use 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. Signed HTTP v3 carries leader/key and signature metadata, while a Tool KID is not added as a request header.

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

SignedHttpError

HEADER_SIGNATURE_VERSION

HEADER_LEADER_ID

HEADER_LEADER_KEY_ID

HEADER_INPUT_HASH

HEADER_LEADER_SIGNATURE

HEADER_NONCE

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

AllowedLeaders

AllowedLeaders::from_path

AllowedLeaders::source_path

AllowedLeadersFileV1

AllowedLeaderFileV1

AllowedLeaderKeyFileV1

Last updated