✅registered_key_verifier
Constants
#[error]
const EInvalidWorksheet: vector<u8> = b"Worksheet does not have the expected leader target";#[error]
const EUnrelatedKeyBinding: vector<u8> = b"Key binding provenance or identity is unrelated";#[error]
const EActiveToolKeyRequired: vector<u8> = b"Tool must have one live Ed25519 active key";Function configure_tool
Configures a Tool's one-time RegisteredKey support after validating its current key binding.
public fun configure_tool(tool_registry: &mut nexus_tool::tool_registry::ToolRegistry, tool: &nexus_tool::tool_registry::Tool, owner_cap: &mut nexus_primitives::owner_cap::CloneableOwnerCap<nexus_tool::tool_authority::OverTool>, network_auth: &nexus_registry::network_auth::NetworkAuth, tool_key_binding: &nexus_registry::network_auth::KeyBinding)Function verify
Verifies the two-signature RegisteredKey protocol and always stamps a structurally valid result. Invalid active keys or signatures produce Reject; malformed protocol objects abort.
public fun verify(worksheet: &mut nexus_primitives::proof_of_uid::ProofOfUID, result: nexus_primitives::tagged_output::TaggedOutput, auxiliary: nexus_interface::verifier::RegisteredKeyAuxiliary, leader_registry: &nexus_registry::leader::LeaderRegistry, leader_cap: &nexus_primitives::owner_cap::CloneableOwnerCap<nexus_registry::leader_cap::OverNetwork>, network_auth: &nexus_registry::network_auth::NetworkAuth, leader_key_binding: &nexus_registry::network_auth::KeyBinding, tool_key_binding: &nexus_registry::network_auth::KeyBinding, tool_id: sui::object::ID): nexus_interface::verifier::VerificationVerdictLast updated

