HSM · Cryptographic Infrastructure — Custody & Signing
HSM Cryptographic Key Sharding Enclave
A C++20 threshold-signing library: any t of n share holders produce a standard Ed25519 signature (FROST, RFC 9591), and its distributed key generation never assembles the full key.
Maturity. Early-stage and pre-certification. The repository calls itself a Phase 0 foundation with Phase 1 and 2 work in progress, and is a library rather than a deployable service: the protocols are tested with all parties in one process, and there is no networking layer, node runtime or policy engine yet. An internal review by Vlaander (7 October 2026) found four high and four medium findings; all high and medium findings are fixed in the source you receive (commit 5352ef8, 11 October 2026), as are six of the eight low ones, each with a regression test. FROST signing is faster than before but, by our estimate, still slower than the Zcash Foundation's frost-ed25519. Nonce-log rollback protection now defaults to a durable, fsync'd file counter, which survives crashes and catches an operator restoring an old log, but not a host that also rewrites the counter file; under an untrusted host, production needs an SEV-SNP or TPM counter or a quorum-replicated one, plugged into the same interface. Attestation runs on a software root of trust only. Do not use it to custody real assets until an external cryptographic audit is done.
Overview
A C++20 library for threshold signing, so that no single machine needs to hold a whole signing key. The main path is FROST(Ed25519) per RFC 9591: any t of n share holders can produce a signature, and fewer cannot. Its implementation reproduces the RFC's official test vector byte for byte.
Keys can be created by a no-dealer distributed key generation (Pedersen DKG with Feldman commitments and proofs of knowledge), on which the full private key is never formed by any participant. A trusted-dealer key generation, which does form the key briefly, also ships for testing and must be kept out of production builds.
The signatures are ordinary Ed25519 signatures, and the tests check them with libsodium's standard verifier. A second, less mature path does threshold ECDSA on secp256k1 (semi-honest GG18 with Paillier), checked with OpenSSL's verifier.
It is designed to run inside attested enclaves. The attestation-verification engine, including AMD SEV-SNP report checks, is implemented and tested with a software root of trust; reading real reports from SEV-SNP hardware and fetching AMD's certificate chain are stubbed. Intel SGX and cloud confidential VMs could be added through the backend interface but are not implemented.
The problem
A signing key held whole in one place, even briefly and even inside a hardware security module, can be taken by whoever compromises that place: an insider, a compromised host or a side channel. Conventional multi-signature setups split authorisation across several complete keys rather than splitting one key. Threshold signing splits a single key into shares so that an attacker has to compromise a quorum of separate machines.
What it does
- FROST(Ed25519) threshold signing per RFC 9591. Arithmetic on secrets (nonces, shares) uses libsodium's constant-time Ed25519 functions; arithmetic on public values (commitments, verification shares) uses a small variable-time module in the source, cross-checked against libsodium, which validates every received point as RFC 9591 requires. The signer checks the coordinator's commitment list as RFC 9591 requires.
- Identifiable abort for FROST: signature shares are checked together in one batch equation, and when it fails each invalid share is detected and the participant who sent it is named.
- Distributed key generation in which the full key is never formed (a trusted-dealer path also ships, for testing).
- Proactive share refresh: shares are re-randomised without changing the group public key, and a quorum mixing old and new shares does not verify. It is a library call; scheduling it is the operator's job.
- Single-use nonce vault backed by a crash-safe, sealed, append-only log, with rollback detection anchored to a monotonic counter: by default a durable file counter, with a pluggable interface for hardware or quorum counters.
- Attested peer sessions: each node's attestation quote binds its participant id and the protocol run, and every message is signed together with its protocol, run, sender and recipient, so it cannot be replayed to another participant, run or protocol. A confidential mode encrypts secret payloads such as DKG round-two shares to the recipient, and peers with an untrusted root, a disallowed measurement or an out-of-date TCB are refused (tested with a software root of trust).
- AMD SEV-SNP report parsing and ECDSA P-384 signature verification, with per-component TCB checks and rejection of debug-enabled guests and VMPL other than 0.
- Threshold ECDSA on secp256k1: semi-honest GG18 with Paillier, not constant-time, n-of-n key generation without a dealer and t-of-n key generation with a trusted dealer only.
- Assurance tooling in the repository: known-answer tests, adversarial tests, five libFuzzer targets, ASan, UBSan and TSan builds, ctgrind and dudect constant-time gates on the project's own comparison and select helpers, cppcheck, and a GitHub Actions workflow configured to run them (Vlaander has not run it on GitHub).
Performance
Measured 2026-10-11| Metric | Figure | Basis |
|---|---|---|
| Full 2-of-3 FROST signing session (commit, two shares, aggregate with every share checked, verify) | 2,253 µs (4,266 µs in the previous delivered source) | Measured by Vlaander |
| One signature share | 468 µs (646 µs previously) | Measured by Vlaander |
| Aggregate and check every share | 565 µs (3,108 µs previously) | Measured by Vlaander |
| Three-party distributed key generation, all rounds | 3,924 µs (3,932 µs previously, unchanged) | Measured by Vlaander |
- Date
- 2026-10-11
- Hardware
- AMD EPYC 7763, GitHub Codespace (shared Azure VM), 4 vCPU (2 cores), 15 GiB
- Toolchain
- g++ 13.3 (Ubuntu 24.04), library built with CMake Release, benchmark -O2; libsodium 1.0.18 and OpenSSL 3.0.13 from the system; tests also built with clang 18.1
- Source archive SHA-256
- b945899eab9adc65f7339996f54aed22dc898c1ab4e2b86b73f043edc77c9e9c
- Method
- Vlaander's head-to-head harness from the 7 October review (2-of-3, 32-byte message; median of 7 batches per operation), linked once against the delivered source and once against the previous delivered source (commit a7b2e79, archive 4e392317…), both pinned to one core and interleaved over 5 rounds; the figure is the median across rounds. Tests: the delivered archive was extracted into an empty directory and built with g++ and clang in Release with -Werror, and in Debug (-Werror) under ASan+UBSan and under TSan (run with setarch -R); every suite was run in every build. Packing the same commit twice gave a byte-identical archive.
- Measured on the archive above. The archive delivered since 21 October 2026 (SHA-256 2d5296397805695ff2297ed664934c557ef138344ce73155e59b56d50a11cba3) was rebuilt from it with only its LICENSE file and the licence line of README.md rewritten for licensing; the code, tests and benchmark tools are byte-identical.
- The harness is not part of the delivered source; the tests and the constant-time gates are.
- The shared VM was busy when the runs started (1-minute load average 8.8, falling to 2.4); rounds 3 to 5 agreed within about 1%. Absolute times on this VM are slower than on the 7 October one, so compare figures within this record only.
- Sign is only modestly faster because every other signer's commitment is now fully validated (prime-order subgroup check), which the previous code did for only half of them.
- The harness repeats aggregation over the same commitments, and coordinator functions remember recently validated public points, so the standalone aggregate figure is a best case; the full-session figure uses fresh commitments every time.
- The comparison with the Zcash Foundation's frost-ed25519 2.1.0 was not rerun on this build (no Rust toolchain on the measuring host). On 7 October a full session took about 3 times as long as frost-ed25519, and 2.4 to 3.3 times as long in a busy rerun on 10 October; with the speed-up above that is roughly 1.3 to 1.7 times, an estimate rather than a measurement.
Value in your own metrics
- Key exposure
- On the distributed-key-generation path no participant ever holds the whole key, and an attacker needs a quorum of shares to sign.
- Signature format
- FROST output is a standard Ed25519 signature, so existing Ed25519 verifiers accept it without changes.
- Audit material
- Known-answer, adversarial, fuzz, sanitizer and constant-time gates ship with the source, so your auditors can rerun them.
Assurance and build
- Language
- C++20, built with CMake; depends on system libsodium and OpenSSL libcrypto, dynamically linked, with no vendored third-party code (notices in THIRD_PARTY_NOTICES.md)
- Cryptographic posture
- FROST(Ed25519) per RFC 9591; secret arithmetic on libsodium's constant-time primitives, public-value arithmetic in a variable-time module in the source; threshold ECDSA is semi-honest and not constant-time
- Attestation
- Verification engine implemented and tested with a software root of trust; SEV-SNP report retrieval and AMD certificate-chain fetching are stubbed
- Backends
- One software backend; SGX and confidential VMs could be added through the interface but are not implemented
- Tests
- 122 test cases in five suites, plus ctgrind and dudect constant-time gates. On 11 October 2026 Vlaander built the delivered archive with g++ 13.3 and clang 18.1, in Release with -Werror and under ASan+UBSan and TSan: every case passing in every build, and both constant-time gates passing (shared 4-vCPU AMD EPYC 7763 Codespace)
- Test coverage
- Lines 95.1%, functions 90.9%, branches 79.2% (excluding exception paths) of the library code in src and include, from the project's own test suite (ctest 7 of 8 passing). The eighth, the ct_dudect timing test, was inconclusive and fails closed: it ran on a shared VM in an unoptimised coverage build. It is a timing test, not a functional one; ct_ctgrind passed. g++ 13.3 and gcovr 8.8, measured by Vlaander on the delivered archive, 16 November 2026
- Fuzzing
- Five libFuzzer targets, 8 minutes each with ASan on 7 October 2026 on an earlier commit: 47.5 million executions with no crashes, leaks or timeouts. Coverage is shallow, the DKG and nonce-log code are not fuzzed, and the fuzzers were not rerun on the delivered source
- Internal review
- Vlaander quality gate, 7 October 2026: 0 critical findings, 4 high and 4 medium (all fixed in the delivered source), 8 low (6 fixed: ctgrind misdiagnosis, dudect flakiness, missing directory fsync, cppcheck version, sanitizers on recent kernels, undocumented libsodium dependency; open: Paillier parameter floor and hygiene, shallow fuzz coverage). Fixed on 11 October 2026 (commit 5352ef8), each with regression tests: unbound envelope sender, recipient and session identifiers; slow signing and share verification; and an in-memory default rollback counter, replaced by a durable file counter
- Supply chain
- A script that generates a CycloneDX software bill of materials is included; no bill of materials file ships with the source
- Licence
- Proprietary. The LICENSE file and the SPDX header in every source file (LicenseRef-Vlaander-Proprietary) state that ownership passes to the single buyer under Vlaander's terms of sale; that wording predates licensing, and the Licence Agreement prevails (no ownership passes); no open-source licence applies
- Certification status
- None. FIPS 140-3 and Common Criteria appear only as roadmap items
- Source archive SHA-256
- 2d5296397805695ff2297ed664934c557ef138344ce73155e59b56d50a11cba3
Releases are not yet cryptographically signed, and no release manifests or external audit summaries are published. Check the source tarball you receive against its SHA-256 in Schedule 1 of your Licence Agreement, which you see before you sign.
Scope and maturity
What is real today, what is deliberately excluded, and what is pending — published unprompted.
Included today
- FROST(Ed25519) threshold signing, no-dealer distributed key generation, proactive share refresh and identifiable abort, as a tested C++20 library.
- The single-use nonce vault with a crash-safe sealed log and rollback detection against a durable file counter (an untrusted host needs a hardware or quorum counter).
- Attestation verification, attested, encrypted and identity-bound peer messages, and SEV-SNP report verification, all with a software root of trust.
- The test, fuzz, sanitizer, constant-time and static-analysis gates, with a CI workflow.
Explicitly scoped out
- Networking, a node runtime and multi-host deployment: the protocols are driven in one process in the tests.
- The policy engine and the generic threshold-signer interfaces, which are declared but not implemented.
- Tamper-evident audit logging, which the threat model sets as a goal but the code does not implement.
Pending
- A hardware or quorum-replicated monotonic counter (SEV-SNP or TPM) for deployments where the host is untrusted; the default file counter does not stop a host that rewrites it.
- Paillier parameter floor and hygiene, and deeper fuzzing of the DKG and nonce-log code (open low review findings).
- Malicious-secure, constant-time threshold ECDSA (CGGMP21) and a no-dealer key generation for secp256k1.
- Reading attestation reports from SEV-SNP hardware and validating AMD's certificate chain.
- External cryptographic audit, including the variable-time public-value arithmetic.
- Formal certification: FIPS 140-3 and Common Criteria.
Who it's for
- Digital-asset exchanges and custodians building their own threshold-signing stack.
- Banks and payment institutions that want signing keys split across machines.
- Stablecoin issuers that want threshold control of mint and redemption keys.
- Defence and government integrators building attested, quorum-gated signing.
Before you buy
- Treat this as an early-stage library to build on, not a product to deploy. If your control environment requires FIPS 140-3 or Common Criteria at go-live, it is not at that gate.
- Commission your own cryptographic audit and price it into the acquisition, including the variable-time arithmetic used on public values.
- Plan to supply a hardware-backed or quorum-replicated monotonic counter if your threat model includes the host, and to exclude the trusted-dealer key generation from production builds.
- Budget for the networking and node runtime you will need before any multi-host deployment.
- Validate attestation on the exact production silicon you intend to deploy once the SEV-SNP hardware path is implemented.
- When you rerun the gates, follow the README's dependency list (libsodium-dev, libssl-dev, and libc6-dbg for ctgrind), run sanitizer builds under setarch -R on recent kernels, and pin the dudect gate to one core on a busy machine.
- Confirm the share-refresh protocol against your compromise-recovery playbook, including when a share holder is permanently lost.
What you get
- The asset's source, licensedSubject to the Licence Agreement, Vlaander grants the verified Buyer a perpetual, worldwide, non-exclusive, non-transferable licence to use, copy and modify the Asset, build it into the Buyer’s own products, and run, host and distribute those products to the Buyer’s customers in non-source form. The licence is for one company: it doesn’t cover affiliates. The source code stays confidential to the Buyer’s own staff and contractors, and may not be passed on, published or resold. Vlaander keeps ownership and licenses the same Asset to other businesses.
- Its testsThe test suite the published assurance claims rest on, as delivered in the source archive.
- Its audit artefactsSpecifications, model-checking output, reviews and the software bill of materials, where the asset has them.
- Not includedThird-party and open-source materials are not sold, assigned or licensed by Vlaander. They remain under their own licences, listed in each asset’s software bill of materials (SBOM.md in the archive), and the Buyer is responsible for complying with those licences.
Licence
$1,900 paid once · or ₦2,565,000
Included
- The engine's source archive, with its tests and audit artefacts, matching the SHA-256 in Schedule 1
- A perpetual, non-exclusive licence for one company under the Licence Agreement
Not included
- No updates
- No support
One price per engine, in US dollars, paid once. The source is what you get: Vlaander does not sell updates, support or bundles. The Licence Agreement you sign is the binding text.
First described in: VLA-GEN catalogue, 3 August 2026, §3.3. Revised by Vlaander against the delivered source; every figure is labelled with its basis.
From test to source
- 01
Check
Read the engine's page: what Vlaander measured and on which hardware, what it has not measured, and the open review findings. Nothing runs before purchase.
- 02
Buy
Verified businesses only. Choose an engine, give your company's details, have your authorised signatory sign the Licence Agreement, then pay the invoice in naira by bank transfer, or in USDC on Polygon. Once the payment is verified, your account shows Paid.
- 03
Receive
We confirm the funds and release the source tarball to you. Delivering, then Download ready. Check it against the SHA-256 in Schedule 1, then rerun the tests and benchmarks yourself.