Cryptocurrencies

Custodial vs Self-Custody in a 20-Engineer Org

A wallet integration can look simple until a withdrawal needs approval during an incident. For a 15–30-person engineering organization, I would default to a managed signing provider rather than operate private-key infrastructure. That position changes when your transaction policy cannot be enforced or independently verified at the provider boundary. The decision is about who can authorize a signature, not which API is easiest to call.

Managed signing wins when policy fits inside the provider boundary

Managed signing means a provider holds or operates the signing keys and exposes an API for transaction requests. Self-operated signing means your organization controls the signer and its approval path, even if it uses third-party APIs for balances, fee estimates, or transaction broadcast. These are competing approaches to authorization, not competing ways to fetch blockchain data. Calling an API does not, by itself, give the API provider custody.

Choose managed signing when your required controls can be expressed in the provider’s policy system and tested without relying on a support ticket. A useful acceptance test is whether an engineer with production application credentials can submit a transaction that violates a destination allowlist, a value limit, or an approval requirement. If the provider rejects it at signing time, the boundary is doing work. If your application alone enforces the rule, a compromised application credential may bypass it.

For an initial rollout, set $50,000 per day as a provisional aggregate withdrawal limit to tune against your actual exposure; do not confuse a per-request ceiling with a daily one. Require two independent approvers as a proposed control for changes to destinations or limits, and verify that the person deploying application code cannot grant both approvals. These numbers are design inputs, not universal safe settings. The provider should also let you suspend signing without waiting for an application deployment, because a deployment is too slow a response to a stolen API credential.

The Cryptocurrency APIs for Developers: Build Secure Wallets is useful for identifying integration surfaces, but an API inventory cannot tell you whether a provider’s policy engine remains effective when your application account is compromised. Ask for a sandbox demonstration using the same roles and approval rules you intend to use in production. Record what is rejected, who receives the event, and which credentials could change the policy.

Managed signing costs recurring fees and creates provider dependence, particularly if approvals, address records, and audit events exist only in the provider’s format. It wins anyway when those costs are smaller than staffing a signer, maintaining its recovery procedures, and defending its administrative access. I would not build an internal signer solely to avoid a per-signature charge, because transaction volume does not remove the need for key ceremonies, on-call coverage, or an independently controlled approval path.

Self-operated signing wins only if your controls survive application compromise

Operating your own signer is justified when a provider cannot enforce a non-negotiable rule: perhaps signing must remain within an organization-controlled environment, or approval must depend on internal risk data the provider cannot receive. It can also be justified when you need to inspect and retain the complete authorization record under your own controls. Neither requirement is satisfied merely by storing a private key in AWS KMS and giving the application unrestricted permission to call Sign.

A credible self-operated design separates the request service from the policy service and the signing authority. The request service proposes a transfer; the policy service checks destination, amount, chain, and approvers; the signer accepts only a narrowly defined, approved payload. Administrative access to the policy service must not silently grant signing access. If the same IAM role can change policy and invoke signing, the separation exists on a diagram rather than at the security boundary.

The Cryptocurrency Wallets for Developers Secure Storage Guide helps inventory storage controls, but secure storage does not decide whether a transaction is authorized. An HSM, threshold-signature system, or isolated signer can protect key material while still signing a malicious request that reaches an overprivileged interface. Make the approval record bind to the exact destination, value, chain ID, and transaction type; otherwise an approved request may be altered before signing.

Self-operation also buys responsibility for recovery. Establish who can rotate keys, restore service after a signer outage, and revoke an approver during a weekend incident. Use 15 minutes as an exercise target to tune for suspending new signatures after a suspected compromise, then run a drill rather than treating the number as a promise. Recovery material needs controls distinct from routine signing access, because a backup that any signer administrator can retrieve may defeat the point of isolation.

The price of this approach is engineering time and operational risk, not just hardware or cloud invoices. It wins when your team can demonstrate that its authorization boundary is stronger than the available managed alternative and can keep that boundary working through staff turnover. Without that evidence, bringing keys in-house exchanges a visible vendor dependency for a less visible internal one.

A shared transaction contract makes the choice testable

Before selecting either approach, define one internal transaction request and one signed-result contract. Include a stable request ID, CAIP-2 chain reference or an explicitly validated chain ID, destination, value, asset, fee bounds, policy version, and approval references. Keep provider-specific fields outside that contract. This work is worthwhile even if you never switch signers, because it prevents an API client from becoming the place where authorization rules quietly accumulate.

On Ethereum, distinguish transaction signing from message signing. EIP-155 protects a legacy transaction against replay across chains, while EIP-1559 defines fee fields that your policy must bound. EIP-712 provides structured-data signing, but a valid EIP-712 signature is not proof that an operator understood the displayed request. If your application also accepts wallet connections through EIP-1193, treat that provider interface as an interaction layer, not as evidence that your server-side withdrawal policy has been enforced.

The following Python 3 smoke test uses eth-account version 0.13.7. Install it with python -m pip install eth-account==0.13.7 and set DEMO_PRIVATE_KEY to a disposable development key. It runs locally and verifies signature recovery; it does not test transaction authorization, custody, or key isolation.

import os
from eth_account import Account
from eth_account.messages import encode_defunct

key = os.environ["DEMO_PRIVATE_KEY"]
message = encode_defunct(text="signer-smoke-test")
signed = Account.sign_message(message, private_key=key)
recovered = Account.recover_message(message, signature=signed.signature)
assert recovered == Account.from_key(key).address
print(recovered)

That small test illustrates a boundary teams often blur: cryptographic correctness is easier to demonstrate than permission correctness. Run the same negative policy tests against both candidate signers. A request with an unapproved destination must fail; a request whose value changes after approval must fail; a request on the wrong chain must fail. Use Ethereum Sepolia’s published chain ID, 11155111, in a test environment if Sepolia is your chosen network, but keep production chain configuration explicit rather than copying a test value into deployment defaults.

Capture request IDs and policy decisions with OpenTelemetry traces, and export denial counts and signing latency to Prometheus. Those tools will not fix a weak boundary, but they give an incident responder a way to distinguish policy rejection, signer failure, and delayed broadcast. Keep the signed payload and policy decision linked by an immutable identifier; otherwise an audit trail can show that “something was approved” without proving it was the transaction sent through eth_sendRawTransaction.

Incident ownership matters more than the quoted signing fee

The comparison should end in an ownership decision. Managed signing wins when its enforced policies meet your requirements and your team can investigate, suspend, and recover through documented provider controls; its costs are fees, provider-specific operations, and dependence on the provider during an incident. Self-operated signing wins when your organization needs control the provider cannot offer and can maintain a genuinely separate approval and recovery system; its costs are implementation, continuous operations, and direct responsibility for key loss or misuse.

Test both options with a tabletop scenario: an application credential is stolen immediately after a legitimate withdrawal receives approval. Ask whether the attacker can change the destination, raise the amount, change the chain, replay the approval, or disable alerts. Then test the uncomfortable variant in which an administrator account is also compromised. A design that passes only the first scenario may be relying on an administrative boundary nobody has examined.

Set 30 minutes as a candidate investigation window to adjust with your on-call team: within it, responders should be able to identify the affected credential, list pending requests, and determine whether signing has stopped. Measure that window in a drill rather than presenting it as a vendor guarantee. Include provider escalation time for managed signing and signer-access recovery time for self-operation, because the fastest routine transaction path may be the slowest path when something breaks.

Finally, demand an exit procedure before signing the contract or approving the internal project. For a managed provider, determine how to export address records, policy history, and pending requests, and whether moving to new keys changes customer-facing deposit addresses. For a self-operated signer, determine how to retire a key and prove old signing permissions are gone. Migration is costly in both approaches, but discovering its constraints during an incident leaves you with fewer safe choices.

Make the first decision with a failed request

Schedule a test in which a valid application credential requests an unauthorized transfer, and require both candidate designs to reject it at the signing boundary. Save the request, policy decision, and audit record. If the managed provider passes and your internal proposal cannot, choose managed signing for now. Revisit that choice only when a concrete control requirement—not a preference for owning keys—changes the result.