Skip to content

Releases

v2.2.0

Choose a tag to compare

@qwe638853 qwe638853 released this 08 Nov 08:21
0f837cb

New features:

  • BYOK export: a private key or wallet seed leaves Vault only wrapped for a
    receiving HSM or KMS key exchange key (KEK), in the Azure .byok format
    (RSA-OAEP-SHA1 + AES-256-KWP)
    • POST blockchain/byok/export/account/:name — single-key account private
      key as PKCS#8 secp256k1
    • POST blockchain/byok/export/wallet/:wallet_id — the 64-byte BIP-39 seed
      (key_type: bip39-seed), for receivers that support BIP-32
    • POST blockchain/byok/export/wallet/:wallet_id/accounts/:index — one
      derived account's key, for cloud KMSs that have no BIP-32
    • KEK: RSA 2048, 3072, or 4096 (PUBLIC KEY or RSA PUBLIC KEY PEM);
      responses include kek_public_key_sha256 for out-of-band verification
  • configs/blockchain_byok.hcl — operator-only policy, one rule per export
    kind; the user and master policies do not reach byok/
  • HSM integration guides for Thales Luna HSM 7 and SoftHSM2 in
    docs/integrations/

Bug fixes:

  • utils.ZeroKey now overwrites the private scalar's memory; SetInt64(0)
    alone left it in the big.Int backing array
  • Concurrent creates of the same single-key account name could both succeed,
    the later one overwriting the first; now one gets 409
  • A KEK with an unusable public exponent returns 400 invalid_kek_public_key
    instead of 500

Upgrade notes:

  • The plugin now reports RunningVersion v2.2.0. Rebuild from v2.2.0
    (make build-local), register the catalog entry with version="v2.2.0"
    (v2.1.1 used v0.1.0) and the new SHA-256, then run
    vault plugin reload -plugin=blockchain-plugin

v2.1.1

Choose a tag to compare

@qwe638853 qwe638853 released this 23 Oct 10:42
27ea5ad

Security fixes:

  • Go toolchain pinned to go1.26.10 (toolchain directive in go.mod);
    denylists compromised intermediate CA certificates in crypto/x509
    (GO-2026-6809, mitigates certificate forgery / MitM where system roots are
    not updated) and fixes further standard library advisories in crypto/x509,
    crypto/tls, net/http, net/textproto, mime/multipart, net/url,
    net, encoding/asn1 and html/template
  • github.com/hashicorp/vault/sdk v0.25.0 → v0.26.0 and
    github.com/hashicorp/go-secure-stdlib/plugincontainer v0.4.2 → v0.5.0;
    replaces github.com/docker/docker (no fixed version published for
    GO-2026-4883 / GO-2026-4887) with moby/moby
  • google.golang.org/grpc v1.79.3 → v1.84.0 (GO-2026-6061, GO-2026-6348,
    GO-2026-6443)
  • golang.org/x/net v0.48.0 → v0.61.0 (HTTP/2 and IDNA advisories)
  • golang.org/x/text v0.32.0 → v0.43.0 (GO-2026-5970)
  • github.com/go-jose/go-jose/v4 v4.1.3 → v4.1.6 (GO-2026-4945)
  • go.opentelemetry.io/otel v1.40.0 → v1.47.0 (GO-2026-5506)
  • Also upgraded: golang.org/x/crypto v0.46.0 → v0.58.0,
    github.com/hashicorp/go-plugin v1.6.1 → v1.8.0

Upgrade notes:

  • Minimum Go version raised: go 1.25.0 → go 1.26.0. With the default
    GOTOOLCHAIN=auto, older local Go installs download go1.26.10
    automatically
  • Go applies security fixes at build time; existing binaries stay vulnerable
    until rebuilt. Rebuild from v2.1.1 (make build-local), confirm with
    go version -m plugins/vault-blockchain (must show go1.26.10 or later),
    then re-register: the binary's SHA-256 changes, so update the catalog entry
    and run vault plugin reload -plugin=blockchain-plugin
  • Keep version="v0.1.0" in the catalog entry; the plugin still reports
    RunningVersion v0.1.0
  • No API or storage changes; no features from dev are included

v2.1.0

Choose a tag to compare

@qwe638853 qwe638853 released this 14 May 11:19
c23634e

Breaking changes:

  • GET / POST blockchain/wallets/:wallet_id/accounts/metadata is removed;
    range read is now GET blockchain/wallets/:wallet_id/accounts?start=N&end=M
    (same behaviour: both params required, span ≤ 10 000, all indices must exist)

New features:

  • Batch account creation — POST .../accounts/batch count=N derives up to 10 000
    accounts in a single request; the entire batch is rejected upfront if any index
    would exceed the BIP-44 maximum (2147483647), so no partial writes for
    out-of-range batches
  • Per-wallet atomic counter — ethereumBackend holds a sync.Map of per-wallet
    mutex locks; counter read-increment-write is fully serialised within the active
    Vault node, preventing duplicate index assignment under concurrent requests
  • Range read on collection endpoint — GET .../accounts?start=N&end=M replaces
    the dedicated /metadata path; vault read and HTTP GET with query params
    both work

Bug fixes:

  • start / end values beyond 2147483647 now return a clear validation error
    instead of silently wrapping

Other:

  • Unit tests: partial-write self-heal, UpdateOperation routing, _missingStart
    / _missingEnd Method-A validation matrix, path registration assertions for
    ReadOperation on accounts/?
  • E2E smoke test extended with range-read step (vault read .../accounts start=2 end=3)

v2.0.0

Choose a tag to compare

@qwe638853 qwe638853 released this 21 Apr 10:19
da5332b

Breaking changes:

  • All v1.0.0 API paths are not compatible with v2.0.0
  • accounts/:name/... storage model is preserved and compatible with v1.0.0
  • Removed dependency on bsostech/go-besu; signing and encryption now handled directly via go-ethereum

New features:

  • HD Wallet mode (wallets/:wallet_id/accounts/:index/...) — BIP-39 mnemonic stored in Vault; accounts derived via BIP-44 at m/44'/60'/0'/0/<index>
  • Single-key account mode (accounts/:name/...) — independently generated or imported ECDSA key per logical name
  • sign-tx/legacy (EIP-155 type-0) and sign-tx/eip1559 (type-2) for both modes
  • sign-eip712 — EIP-712 typed data signing for both modes
  • encrypt / decrypt — ECIES encryption for both modes
  • wallets/:id/import — import existing BIP-39 mnemonic
  • Plugin version reporting to Vault via RunningVersion

Other:

  • Unit tests covering wallet/account CRUD, signing, and encryption
  • E2E smoke test (make smoke-local)