Skip to content

v2.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 13 Nov 19:55
· 1 commit to main since this release
Immutable release. Only release title and notes can be modified.
c996eda

nexus-sdk

Added

  • TransactionSigner trait with NexusClientBuilder::with_signer and WalletClient::connect_with_signer, so a wallet can sign with a key held outside the process; with_private_key is unchanged.
  • GcpKmsSigner, a TransactionSigner backed by a Google Cloud KMS Ed25519 or P-256 key version, authenticated through Application Default Credentials, lives in the new nexus-gcp-kms crate (nexus_gcp_kms::GcpKmsSigner); the SDK has no gcp-kms feature. GcpKmsSigner::new installs rustls' ring provider as the process default when none is installed.
  • RemoteSigner (feature remote-signer) signs transactions through any HTTP signing service implementing a two-call JSON protocol (GET /v1/public-key, POST /v1/sign); every signature is verified locally against the caller-pinned address, and connect proves the service holds that key with a fresh random challenge. Its HTTP client always uses rustls with the bundled Mozilla roots plus extra_root_ca_pem, whatever TLS backend other crates in the build select.

Changed

  • Breaking: WalletClient::sign_transaction is now async; local-key signatures are unchanged.
  • Updated the advisory policy for upstream-constrained zstd/zstd-safe versions and upgraded locked zstd-sys to 2.1.2; exception reasons record scope, review date, and removal criteria.
  • Signed HTTP v3.1: Requests now carry a separate Ed25519 signature over the receiving Tool FQN, invocation nonce, and Unix-millisecond timestamp while preserving existing v3 input and result signature bytes. This protocol revision retains the signed_http::v3 API module and X-Nexus-Sig-V: 3 wire header. See the v3.1 migration guide.
  • Breaking: RecoveryReader::new now accepts only the RPC URL. RecoveryReader::read invokes its callback once within a 30 second deadline and returns failures to the caller, which owns continuation policy.
  • Breaking: EventIngestor::start reports a connection failure once and closes the receiver. Callers own reconnection, resume from the last delivered checkpoint inclusively, and deduplicate replayed events.
  • Recovery discovery now returns failed reads, invalid responses, and incomplete coverage as errors. Individual requests and stalled response bodies have deadlines, while healthy pagination can continue as its cursor advances.

Fixed

  • Updated the locked libz-sys to 1.1.31 to address RUSTSEC-2026-0418 (build script printed the full environment).
  • Updated the locked rustls dependency to 0.23.46 to address four TLS security advisories.
  • Expired walk inspection now considers committed Tool results preserved behind an earlier insufficient settlement marker. Current simulation determines whether funding permits settlement after a refill.
  • NexusError preserves wrapped error sources so callers can identify typed RPC failures and choose the appropriate recovery policy.
  • DAG validation rejects entry ports on a vertex that is not a member of any entry group. Publishing only records entry ports for group members, so these ports were dropped silently and the published DAG could not supply them at run time.
  • DAG validation rejects edges, default values and outputs that name an undeclared vertex, and a second default value for the same input port. These DAGs passed validation and then aborted on chain during publishing.
  • Local DAG validation now uses reachability and memoized traversal to avoid enumerating repeated paths while preserving validation rules.

Removed

  • Removed the recovery module's ListConfig and ListEvent reexports and the poller_stream_reconnections metric. Recovery continuation and event reconnection belong to the caller.
  • Breaking: Removed the unused public signed HTTP v2 SDK module.

nexus-cli

Added

  • Opt-in Cloud KMS signing (through nexus-gcp-kms): set SUI_KMS_KEY_VERSION or nexus conf set --sui.kms-key-version to a pinned .../cryptoKeyVersions/N resource to sign with a Google Cloud KMS key through Application Default Credentials (roles/cloudkms.signerVerifier); an empty value counts as unset. Configuring it together with SUI_PK/sui.pk is an error; without it the CLI behaves as before.
  • Local signing accepts the Ed25519 suiprivkey format produced by sui keytool export, as well as legacy Base64 keys. Configure it using SUI_SK or --sui.sk; existing SUI_PK, --sui.pk, and saved sui.pk settings remain supported. The CLI warns when SUI_PK is used or conflicts with SUI_SK.

Fixed

  • TAP scaffolds use brace bodies for the extension and test module in the generated test file so nexus tap test compiles successfully.
  • tap requirements and tap vault balance read public state without requiring agent ownership or a private key. tool cashier access also works without a key when a beneficiary is supplied explicitly.
  • walrus upload --estimate quotes storage without loading a signing wallet. Estimates report payer as null and use the same encoding and price calculation as uploads.
  • Walrus commands decode Sui objects from their requested BCS bytes, preserving ownership and type checks without requiring omitted response fields.
  • Fixed CLI argument validation incorrectly rejecting valid combinations of occurrence start, deadline, and priority fee options.
  • conf set, tap agent save/remove, and Tool registration no longer replace an existing configuration with defaults when conf.toml cannot be read or parsed. The command now fails and leaves the file untouched; only a missing file starts from the default configuration.

nexus-toolkit

Changed

  • Signed HTTP v3.1: Required mode verifies the allowlisted Leader Tool-context signature and freshness before replay-cache access, with a configurable inclusive timestamp window defaulting to 30,000 ms. Older v3 requests without context headers are rejected even though the wire version remains 3.
  • Toolkit metadata always advertises HTTPS and ignores X-Forwarded-Proto; the listener supports optional Leader client certificates. Per-Tool require_client_certificate defaults to false; enabling it requires the TLS peer key to match the allowlisted Leader key before replay-cache access or execution.

Fixed

  • Toolkit serves plain HTTP again when no TLS credentials are configured, for hosts that terminate HTTPS externally (e.g. Cloud Run). TLS remains required for require_client_certificate.
  • Unsigned /invoke requests now decode the Leader's ports envelope into Tool inputs, matching signed mode; plain input objects remain unsupported.