Assetara
Premium Asset Management Experience

Nonce Reuse and API Signing Security

9 min read

Nonce Reuse and API Signing Security

Cryptographic nonce reuse happens when signing software uses the same one-time value, called a nonce, in more than one digital signature. In signature schemes that depend on nonce uniqueness, that single mistake can let an observer derive the private signing key from public signatures alone. A private key is secret data that authorizes actions; a digital signature is public mathematical proof that a message was authorized by that key.

This explainer walks through the mechanism, where it shows up in signed API workflows, what was reported in the Lighter incident, and why it matters for any product that relies on external signing tools.

Scope note: this is a general explanation of nonce reuse in request or transaction signing. It does not assess any specific Assetara product, and it does not explain how to recover keys or exploit signatures.

Table of Contents

  • What cryptographic nonce reuse means
  • How signed API requests work
  • How the reported Lighter incident unfolded
  • Where signed requests are used in practice
  • Limits, costs, and failure modes
  • What this means for Assetara users
  • FAQ

What Cryptographic Nonce Reuse Means

A nonce is a value meant to be used once. In many digital-signature schemes, the signer combines the private key, the message, and a nonce to produce a signature. Anyone else can then verify that signature using the public key, without ever learning the private key.

That design only holds if the nonce rules are followed. In schemes that require a fresh nonce for every message, reusing the same nonce across two different messages creates a mathematical relationship between the two signatures. With the relevant public information, an observer may be able to calculate the private key from that relationship. The observer does not need to break the underlying cryptography — the implementation mistake removes a protection the scheme depends on.

Nonce reuse is not the same thing as sending the same request twice. A platform may reject duplicate requests through timestamps, request IDs, or replay protection. The nonce problem described here happens earlier, during signature creation, when the signer uses the same cryptographic one-time value for different messages.

How Signed API Requests Work

Signed API requests let software prove it is authorized to submit an instruction without a person manually approving every action in a wallet interface. The exact format varies by platform, but the sequence tends to follow the same pattern.

  • A client holds or can access a private signing key. The key may be stored locally, in a wallet, or by a key-management system.
  • The client prepares a message, such as an order, cancellation, or transaction instruction.
  • The client generates a fresh nonce if the signature scheme requires one, then uses it with the private key to create a signature.
  • The client sends the message, signature, and any required public identifier or API credential to the platform.
  • The platform verifies the signature against the corresponding public key and checks permissions, timing rules, balances, and account restrictions.
  • If the checks pass, the platform accepts the request; if not, it rejects it.

The failure path begins before the platform ever receives the request. Unsafe external signing software signs one message with a nonce, then later signs a different message with that same nonce. The resulting signatures are public to anyone who can observe the requests. In a susceptible scheme, that relationship can make private-key recovery possible.

A simple way to picture it is a one-time seal on an envelope: the recipient can verify the seal, but reusing the secret part of the sealing process can reveal information that was never meant to be shared.

The division of responsibility matters here. The platform verifies what it receives — a message and a valid signature. The signing client is responsible for protecting the private key and generating signatures correctly, including nonce handling. Platform-side controls can limit what a compromised key is able to do, but they do not restore secrecy once a key is exposed.

How the Reported Lighter Incident Unfolded

Lighter said affected accounts used unsafe signing code outside its official SDKs. It said the signing code reused nonces and that private keys became recoverable from public signatures as a result. Lighter also said its official SDKs were not affected.

CoinDesk reported on November 16, 2026, that Lighter suspended withdrawals after blockchain investigators traced about $10.4 million in USDC, and that the company said a trader's API key had been leaked. Crypto Briefing reported on November 17 that withdrawals resumed after about $5 million in USDC was recovered, and described a postmortem that attributed the issue to nonce reuse in external signing software.

Those figures should not be treated as one final loss total. The reports describe different measurements — funds traced versus funds recovered — and none of them establish a final reconciled loss amount or a complete recovery status.

The narrower point that holds across the reporting is this: Lighter attributed the incident to unofficial signing code rather than to a protocol or smart-contract vulnerability, and it paused withdrawals temporarily as a containment step.

Where Signed Requests Are Used in Practice

Signed requests are common in automated workflows where software needs to submit permitted actions repeatedly without a person signing each one by hand. Examples include automated trading, order management, account operations, and transaction-related workflows.

The benefit is speed and automation. The trade-off is that the software handling credentials and signatures becomes part of the account's security boundary.

The reported Lighter case is a concrete example of that boundary. According to Lighter and the reporting above, affected accounts used signing code outside Lighter's official SDKs, and that code reused signing nonces. This does not mean every custom integration is unsafe, or that every official tool is safe in every situation. It means custom code has to meet the same cryptographic requirements that a supported tool is designed to handle.

A connection can also carry narrower or broader permissions. Depending on platform design, it may be able to read account data, submit orders, cancel orders, or perform other actions. If a signing key or API credential is compromised, the practical impact depends on those permissions as well as platform-side restrictions.

Limits, Costs, and Failure Modes

Correct cryptography is necessary but not sufficient. A sound protocol does not prevent harm if client software exposes a private signing key or signs the wrong action. A valid signature shows that the system accepted authorization from the relevant key — it does not prove the user consciously intended that action at that moment.

  • Nonce-generation failures: reusing a nonce in a scheme that requires uniqueness can make the signing private key recoverable from public signatures.
  • Credential-handling failures: a private key, API key, backup, or token can be copied, logged, sent to an untrusted service, or otherwise exposed.
  • Permission failures: broad permissions can increase the effect of a compromised credential or signing key.
  • Integration failures: external developers may implement message formatting, key storage, nonce generation, or access controls incorrectly.
  • Operational disruption: a platform may pause withdrawals or restrict functions while investigating a suspected compromise — that can contain risk, but it can also block normal account activity.
  • Control limitations: IP whitelisting can reduce access from unapproved network locations, but it does not protect a key that is already exposed, secure an infected device, or correct unsafe signature generation.

Odaily reported on November 18 that Lighter described wallet-signature controls, IP whitelisting, permissions, and nonce monitoring as measures taken after the incident. Those layers can reduce risk, but they are not guarantees. Monitoring may flag suspicious patterns, and permissions or network restrictions may limit some misuse, but none of them replaces correct signing software and protected credentials.

There's also a limit to any simple rule here. A nonce is not always a random number — some schemes use deterministically derived nonces that still must be unique per message and key. What matters is compliance with the exact signature scheme and library in use. Reviewed cryptographic libraries are safer than signing logic written from scratch.

What This Means for Assetara Users

The supplied sources do not establish whether Assetara offers APIs, automated-trading connections, external-wallet signing, SDKs, IP whitelisting, or any specific custody or permission model. It would be inaccurate to claim that the reported Lighter incident applies to a specific Assetara feature, or that Assetara provides a specific control.

The general lesson is relevant to any service that lets external software act on a user's behalf. Before authorizing such a connection, users should know who holds the private key or credential, whether the software is official or independently developed, what actions it can authorize, how credentials can be revoked, and what restrictions apply if suspicious activity is detected.

Protocol security and client-side credential security are different layers. A report that a protocol or smart contract was unaffected does not answer whether an external signing client or account credential was safely implemented and protected.

FAQ

Is nonce reuse the same as an API key leak?

No. Nonce reuse is an error in the creation of certain cryptographic signatures. It can make the private signing key recoverable from public signatures. An API key leak is unauthorized exposure of an API credential. The two can happen in the same incident, but they are different failure modes.

Can a smart contract be secure while users still lose funds?

Yes. If an attacker obtains a private key or other credential that can authorize account actions, the attacker may submit actions that appear valid to the systems checking authorization. That can happen without exploiting a flaw in the smart contract. Lighter said its protocol and smart contracts were unaffected in the reported incident; that statement is separate from the reported compromise involving external signing code.

Does using an official SDK eliminate all security risk?

No. An official SDK may reduce the risk of implementing a signing flow incorrectly, and Lighter said its official SDKs were not affected by the reported incident. But an SDK cannot eliminate risks from exposed credentials, compromised devices, unsafe storage, overly broad permissions, dependencies, or operational mistakes.

What does IP whitelisting do?

IP whitelisting limits access to approved internet protocol addresses. It can make it harder for someone using an unapproved network to access an API credential. It is one control layer, not a substitute for protecting keys or using correct signing code.

Can a platform detect nonce reuse before a key is exposed?

Detection depends on the signature format, the platform's visibility into signed messages, and its monitoring design. A platform may be able to identify repeated public signature components or other anomalies and flag requests, but prevention is not assured. The signer remains responsible for generating signatures correctly.

Sources

Share

Related articles