Skip to content

Set up an API Signer

The standard method of creating and signing transactions uses the Fordefi web and mobile interfaces. See Fordefi web console and Fordefi web browser extension.

You can also create and sign transactions programmatically. With this method, customers maintain self custody of their private keys by running Fordefi's API Signer on their own network or cloud environment.

  • Similarly to the mobile app, the API Signer holds an MPC key share for each private key and participates in the MPC signature protocol.
  • Unlike the mobile app, the API Signer does not require human intervention to sign a transaction.

The process is illustrated here:


alt

Deployment options

Depending on your needs, use one of the following options:

OptionWhere it runsWho holds the keyBest for
Dockerized applicationStandalone containerAPI Signer (MPC share)"Bare metal" servers or virtual machines
KubernetesYour cluster, distributed with Helm ChartAPI Signer (MPC share)Teams already running Kubernetes
AWS Nitro EnclaveYour AWS account, using the packaged CLI or CloudFormation templateAPI Signer (MPC share)AWS-based setups that want an isolated enclave

For Standard Docker/Kubernetes deployments, minimum requirements for virtual machines are 0.5vCPU per 1GB memory. Nitro deployments have separate instance and network requirements.

Activate the API Signer

Once you have deployed the Fordefi docker image, complete the provisioning and activation steps. For Nitro, follow the registration and activation steps in the Nitro guide.

Deployment tips

Here are some known issues and workarounds while you configure your API signer:

Networking best practices for deployment

  • Block all ingress traffic

    Block all ingress traffic to your Signer. The Standard API Signer needs egress access to api.fordefi.com. Nitro deployments also need the outbound destinations listed in the Nitro guide. You can verify DNS resolution using:

    nslookup api.fordefi.com
  • Are you experiencing latency?

    Install your Signer in the us-east-1 server, where the Fordefi backend is also located.

Can an organization have more than one API Signer?

  • Each organization is limited to one API Signer.
  • However, you can register unlimited API Users with that Signer, as long as they are part of the same organization.
  • If you need a second API Signer, you'll need to create a separate organization with its own set of API Users.

For concurrent signing within one Docker instance, select Configure signer and increase Number of threads for concurrent signing. With Helm, set apiSignerConfig.numThreads. This increases signing concurrency, not availability. The current Nitro release uses one signing worker and does not expose this setting.