---
updatedAt: 2026-05-22T12:57:09.000Z
agentTools:
  projectIndex: https://docs.iofinnet.com/llms.txt
---

# Run and Register a Virtual Signer (Production)

```shell Shell
# ============================================================================
# Step 1: Create docker-compose.yml
# ============================================================================
# The Virtual Signer is a containerised service that participates in MPC
# signing ceremonies. It votes and co-signs vault operations on behalf of
# your organisation.
#
# Host requirements (production):
#   - AMD EPYC CPU with SEV-SNP enabled (e.g. AWS M6a / C6a / R6a, or an
#     on-prem AMD host with SEV-SNP turned on in firmware).
#   - /dev/sev-guest available on the host.
#   - Persistent storage backing the named volume — the signer's private
#     shares live under /var/vsigner and must survive container restarts.

cat > docker-compose.yml <<'EOF'
volumes:
  secret-private-keys-volume-1:

services:
  virtual-signer-1:
    container_name: virtual-signer-1
    restart: unless-stopped
    platform: linux/amd64
    image: iofinnet/io-vault-virtual-signer:v1.4.14-nosgx
    logging:
      options:
        max-file: "5"
        max-size: "10m"
    ports:
      - 8181:8181
    # Required. The Virtual Signer attests itself using AMD SEV-SNP at boot;
    # the host must be SEV-SNP capable and expose /dev/sev-guest.
    devices:
      - "/dev/sev-guest:/dev/sev-guest:rw"
    env_file:
      - docker.env
    volumes:
      - secret-private-keys-volume-1:/var/vsigner
EOF

# ============================================================================
# Step 2: Create docker.env
# ============================================================================
# EDG_VS_Port                            Port the Virtual Signer listens on
# EDG_VS_ApprovalMode                    Must be "API" in production. The
#                                        signer will consult your Approval
#                                        Service before every vote.
# EDG_VS_AuthClientId / Secret           Your io.finnet API client credentials
# EDG_VS_ExternalTransactionApprovalURL  Approval Service URL for transactions
# EDG_VS_ExternalReshareApprovalURL      Approval Service URL for reshares
# EDG_VS_ApprovalHTTPPublicKeyHex        Hex-encoded Ed25519 public key the
#                                        platform uses to verify your
#                                        Approval Service's responses.

cat > docker.env <<'EOF'
EDG_VS_Port=8181
EDG_VS_ApprovalMode=API
EDG_VS_AuthClientId=<your-client-id>
EDG_VS_AuthClientSecret=<your-client-secret>
EDG_VS_ExternalTransactionApprovalURL=https://your-approval-endpoint.example.com
EDG_VS_ExternalReshareApprovalURL=https://your-approval-endpoint.example.com
EDG_VS_ApprovalHTTPPublicKeyHex=<your-public-key-hex>
EOF

# ============================================================================
# Step 3: Start the Virtual Signer
# ============================================================================

docker compose up -d

# ============================================================================
# Step 4: Register the Virtual Signer with the platform
# ============================================================================
# Once the container is running, register it with the platform. After
# registration, create a vault and fund it — the Virtual Signer will begin
# forwarding approval requests to your configured endpoints.

curl -v -X POST http://localhost:8181/api/v1/register-vs-device \
  --header 'Content-Type: application/json' \
  --data-raw '{"DeviceName":"My Virtual Signer", "OrgId": "YOUR_ORG_ID"}'
```

# Docker Compose

<!-- shell@1-40 -->

A containerised service that participates in MPC signing ceremonies. It runs alongside your Approval Service and forwards each operation request before signing. The compose file is production-shaped: the host must be AMD SEV-SNP capable and expose `/dev/sev-guest`, which is mapped into the container so the signer's boot-time attestation succeeds. `EDG_VS_ENV` is intentionally unset so the signer defaults to the production environment.

# Environment Configuration

<!-- shell@42-63 -->

`ApprovalMode=API` is mandatory in production — every vote goes through your Approval Service. `AlwaysApprove` exists for development only and must never be used here. `ApprovalHTTPPublicKeyHex` is the hex-encoded form of the PEM public key your Approval Service uses to sign its responses; see the companion "Implement an Approval Service" recipe for how to derive it from the private key.

# Start the Virtual Signer

<!-- shell@65-69 -->



# Register the Virtual Signer

<!-- shell@71-80 -->

After registration, create a vault and fund it. The Virtual Signer will begin forwarding approval requests to your `EDG_VS_ExternalTransactionApprovalURL` and `EDG_VS_ExternalReshareApprovalURL`.