bloxstaking/key-vault/data:/data -v $(pwd)/policies:/policies -p 8200:8200\ -e VAULT_ADDR='[***] -e VAULT_API_ADDR='[***]\ -e VAULT_CLIENT_TIMEOUT='30s' -e UNSEAL=true bloxstaking/key-vault@sha256:2b73f3527789ef2d2556f9bf17dca6e2f731731b1d8cb6164b02d7899ef81660
Build the images and run the containers:
sh$ docker-compose up -d --build
Execute the container
sh$ docker-compose exec vault bash
Read the root token
sh$ docker-compose exec -T vault cat /data/keys/vault.root.token
This endpoint will get a version of key-vault.
| Method | Path | Produces |
|---|---|---|
GET | :mount-path/:network/version | 200 application/json |
The example below shows output for a query path of /***/prater/version.
{ "request_id": "b68953bf-811e-f218-a1c4-b5a7aa4122bc", "lease_id": "", "renewable": false, "lease_duration": 0, "data": { "version": "v1.1.1" }, "wrap_info": null, "warnings": null, "auth": null }
This endpoint will list all accounts of key-vault.
| Method | Path | Produces |
|---|---|---|
LIST | :mount-path/:network/accounts | 200 application/json |
The example below shows output for a query path of /***/prater/accounts when there is 1 account.
{ "request_id": "489790dc-b4bd-54e5-be6e-95a894ffc48c", "lease_id": "", "renewable": false, "lease_duration": 0, "data": { "accounts": [ { "id": "9676ef06-d238-49f3-ab50-b3fe9930db0f", "name": "account-0", "validationPubKey": "8a5df36be5f89f9fe19cabadcbb17babc8c518bcd7fe0095c89f83915ea943343fa7dd3c26d8fb6096bce11fbc1ec7d3", "withdrawalPubKey": "887abb059075160ce2556a8bfef745898ee3a11b2b6521b09077d422c***dea277ac8afcacd5b6d729198238f8f6c" } ] }, "wrap_info": null, "warnings": null, "auth": null }
This endpoint will update the storage.
| Method | Path | Produces |
|---|---|---|
POST | :mount-path/:network/storage | 200 application/json |
The example below shows output for a query path of /***/prater/storage.
{ { "request_id": "d53d5075-6a3b-2642-ffde-0714beb595f5", "lease_id": "", "renewable": false, "lease_duration": 0, "data": { "status": true }, "wrap_info": null, "warnings": null, "auth": null } }
This endpoint will update the storage.
| Method | Path | Produces |
|---|---|---|
GET | :mount-path/:network/storage/slashing | 200 application/json |
The example below shows output for a query path of /***/prater/storage/slashing.
{ { "request_id": "d53d5075-6a3b-2642-ffde-0714beb595f5", "lease_id": "", "renewable": false, "lease_duration": 0, "data": { "<public_key>": "<hex_encoded_slashing_storage>" }, "wrap_info": null, "warnings": null, "auth": null } }
This endpoint will sign attestation for specific account at a path.
| Method | Path | Produces |
|---|---|---|
POST | :mount-path/:network/accounts/sign | 200 application/json |
public_key (string: <required>) - Specifies the public key of the account to sign.domain (string: <required>) - Specifies the domain.slot (int: <required>) - Specifies the slot.committeeIndex (int: <required>) - Specifies the committeeIndex.beaconBlockRoot (string: <required>) - Specifies the beaconBlockRoot.sourceEpoch (int: <required>) - Specifies the sourceEpoch.sourceRoot (string: <required>) - Specifies the sourceRoot.targetEpoch (int: <required>) - Specifies the targetEpoch.targetRoot (string: <required>) - Specifies the targetRoot.The example below shows output for the successful sign of /***/accounts/sign.
{ "request_id": "b767dcca-5b10-4a52-1d9a-0a9b81b378ae", "lease_id": "", "renewable": false, "lease_duration": 0, "data": { "signature": "kEEOMxNkouz7EOSULfrG6hXzZbIOvRCVVK+lfBofj3U49/PHm7YHji8ac9Gf9vgEFVEmbPp+lhO3OpAElt3yaBajTKaJBWocgXuv64Ojq44tfxLJo6jrzMU5yoP78dYW" }, "wrap_info": null, "warnings": null, "auth": null }
The plugin's endpoint paths are designed such that admin-level access policies vs. signer-level access policies can be easily separated.
Use the following policy to assign to a signer level access token, with the abilities to list accounts and sign transactions.
# Ability to list prater wallet accounts ("list") path "***/prater/accounts" { capabilities = ["list"] } # Ability to list mainnet wallet accounts ("list") path "***/mainnet/accounts" { capabilities = ["list"] } # Ability to sign data ("create") path "***/+/accounts/sign" { capabilities = ["create"] } # Ability to get version ("read") path "***/+/version" { capabilities = ["read"] }
Use the following policy to assign to a admin level access token, with the full ability to update storage, list accounts and sign transactions.
# Ability to list prater wallet accounts ("list") path "***/prater/accounts" { capabilities = ["list"] } # Ability to list mainnet wallet accounts ("list") path "***/mainnet/accounts" { capabilities = ["list"] } # Ability to sign data ("create") path "***/+/accounts/sign" { capabilities = ["create"] } # Ability to get version ("read") path "***/+/version" { capabilities = ["read"] } # Ability to update storage ("create") path "***/+/storage" { capabilities = ["create"] } # Ability to read slashing storage ("read") path "***/+/storage/slashing" { capabilities = ["read"] }
Create a new policy named admin:
sh$ vault policy write admin policies/admin-policy.hcl
Create a token attached to admin policy:
sh$ vault token create -policy="admin"
Create a new policy named signer:
sh$ vault policy write signer policies/signer-policy.hcl
Create a token attached to signer policy:
sh$ vault token create -policy="signer"
There are 2 types of tests in the project: end-to-end and unit ones. In order to run all tests including e2e ones you will need to do the following command:
bash$ make full-test
New e2e tests should be placed in ./e2e/tests directory and implement E2E interface.
Use the current format to add new tests.
versions are published to dockerhub based on tags. before publishing a tag update docker compose image to the to be pushed tag
The plugin supports multiple *** networks. All available networks are defined in ./config/vault-plugin.sh.
New networks could be defined by the following steps:
Enable secrets for a new network in ./config/vault-plugin.sh.
Example
bash$ vault secrets enable \ -path=***/prater \ -description="Eth Signing Wallet - Prater Test Network" \ -plugin-name=ethsign plugin > /dev/null 2> &1
Update policies ./policies/admin-policy.hcl and ./policies/signer-policy.hcl by adding a definition with a new network in the path.


探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
在 Linux 系统配置镜像服务
在 Docker Desktop 配置镜像
Docker Compose 项目配置
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
MacOS OrbStack 容器配置
在宝塔面板一键配置镜像
Synology 群晖 NAS 配置
飞牛 fnOS 系统配置镜像
极空间 NAS 系统配置服务
爱快 iKuai 路由系统配置
绿联 NAS 系统配置镜像
QNAP 威联通 NAS 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
无需登录使用专属域名
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
来自真实用户的反馈,见证轩辕镜像的优质服务