Skip to Content
TechnologiesTechnologies
  • Article
  • Open Access

29 May 2026

25 Pages

Stateless Hierarchical Deterministic Wallet Custody for Institutional Blockchain Adoption

,
,
and
Center for Research and Development in Telecommunications (CPQD), Campinas 13086-902, Brazil
*
Author to whom correspondence should be addressed.

Abstract

Institutional adoption of blockchain technology in supply chains, healthcare, and public administration remains constrained. Organizations that manage digital assets on behalf of large numbers of non-technical users lack custody architectures suited to their scale. Existing approaches either require users to manage private keys directly; rely on centralized custodians that store encrypted keys; or depend on distributed protocols such as multi-party computation, which impose substantial infrastructure and coordination overhead. This paper presents CryptoVault, a stateless custody architecture for institutional blockchain deployments that derives private keys on demand from a single master seed using BIP-44 hierarchical deterministic (HD) wallets, eliminating persistent storage entirely. Only an AES-256-GCM-encrypted derivation index is persisted per wallet; the corresponding private key is re-derived at signing time and discarded immediately after use, ensuring no private key material ever rests on disk. The security model requires the simultaneous compromise of three independent components (the encrypted derivation index, the encryption key, and the master seed) for full key recovery, compared to two components in custody systems that persist encrypted private keys. An empirical evaluation under concurrent load demonstrates 13 to 22 ms steady-state signing latency on development hardware, with re-derivation accounting for approximately 4 to 7% of that total, confirming that on-demand derivation introduces negligible overhead. Thus, CryptoVault has been validated against an agricultural cooperative deployment as a representative institutional scenario, with an architecture that generalizes to any organization managing wallets on behalf of users who have no direct interaction with cryptographic material. A reference implementation is available as open-source software.

1. Introduction

Supply chain tokenization offers institutions in agriculture, healthcare, and public administration new mechanisms for product traceability, authenticity verification, and financing [1,2,3,4]. Deploying these solutions at scale, however, requires managing blockchain wallets for large numbers of users who lack the technical background to handle cryptographic material directly. Private keys are cryptographic secrets whose loss results in permanent, unrecoverable asset destruction [5], and their management requires familiarity with seed phrases, derivation paths, and transaction signing, tasks that are beyond the reach of most non-technical end users. In these settings, the institution must assume full responsibility for key custody on behalf of its users. Agricultural cooperatives represent a particularly demanding instance of this problem, in which hundreds of individual producers require blockchain wallets for tokenized commodity transactions but have no capacity to manage cryptographic material independently.
Self-custodial wallets such as MetaMask [6,7] place the entire burden of key management on individual users, resulting in irreversible asset loss when keys are mismanaged [8,9]. Centralized exchanges such as Binance or Coinbase eliminate direct key handling but introduce counterparty risk and regulatory dependency. Neither model addresses the context in which an institution operates as the deploying entity and key controller, managing wallets on behalf of members who have no direct interaction with any exchange or wallet interface. Institutional custody solutions have emerged to address these limitations, including Multi-Party Computation (MPC)-based wallets [10,11], Hardware Security Module (HSM)-backed systems, and threshold signature schemes [12,13]. However, each imposes infrastructure and operational complexity that makes them impractical for resource-constrained institutions. MPC protocols require multiple coordinating parties with low-latency secure channels, and as Wong et al. [12] demonstrate, a single faulting party forces a full protocol restart, making them fragile in geographically distributed deployments. HSM-backed systems demand specialized hardware, procurement budgets, and certified personnel. Threshold signature schemes distribute key shares across participants, adding coordination overhead that scales poorly when an institution manages hundreds of wallets on behalf of users who are absent from the signing process. As Zyskind et al. [10] note, even dedicated institutional custodians such as Fireblocks introduce single points of failure that undermine decentralization. Each of these approaches assumes infrastructure and operational capacity that many institutions managing wallets for large numbers of non-technical users simply lack.
In this paper, we propose CryptoVault, a stateless institutional custody architecture based on the BIP-32, BIP-39, and BIP-44 Hierarchical Deterministic (HD) wallet standards [14,15,16]. Existing institutional custody approaches either store encrypted private keys directly or rely on distributed protocols such as MPC. The application of HD key derivation as a stateless alternative, where keys are never persisted and are re-derived on demand during each signing operation, has not been formally evaluated in terms of security properties and performance under concurrent load. CryptoVault eliminates persistent private key storage by re-deriving keys on demand from a single 256-bit master seed during signing and discarding them immediately afterward. This reduces the attack surface to three independent components that must be compromised simultaneously. These are the encrypted derivation index, the encryption key, and the master seed. We validate the security and performance of this architecture through a formal component-level threat model and an empirical evaluation under concurrent load, demonstrating sub-15 ms signing latency and zero failures across sustained mixed workloads. A reference implementation is available as open-source software.
The remainder of this paper is organized as follows. Section 2 covers technical background and related work. Section 3 details the proposed system architecture and core workflows. Section 4 describes the implementation. Section 5 presents performance evaluation results and finally, Section 6 concludes.

3. Proposed System Architecture

Figure 1 shows the proposed system architecture, organized into two layers.
Figure 1. CryptoVault system architecture. The backend layer handles cryptographic operations through stateless BIP-44 derivation; the persistence layer stores only encrypted derivation indexes and public Ethereum addresses.
The backend layer handles authentication, wallet management, and cryptographic operations through CryptoService, which performs BIP-44 HD key derivation; EncryptionService, which handles AES-256-GCM (Advanced Encryption Standard with 256-bit keys in Galois/Counter Mode, an authenticated encryption scheme that provides both confidentiality and data integrity via a 128-bit authentication tag) encryption of derivation indexes; and TransactionService, which executes ECDSA transaction signing. Private keys exist only transiently in memory within this layer during signing and are discarded immediately afterward. Two REST endpoints, /wallet/create and /transaction/sign, are exposed to allow external applications to request wallet generation and transaction signing without ever accessing cryptographic material directly. Wallet creation is a one-time operation per user; signing is the primary operational endpoint.
The persistence layer is a PostgreSQL (the current implementation uses PostgreSQL; any relational database providing ACID (Atomicity, Consistency, Isolation, Durability) transaction guarantees is suitable) database that stores only encrypted derivation indexes and public addresses. Storing derivation indexes rather than private keys provides two operational advantages. A single 256-bit master seed can recover all user wallets deterministically, simplifying institutional backup procedures. The absence of stored private keys also limits exposure in the event of a database breach.
CryptoVault is blockchain-agnostic. Provided the external application builds the unsigned transaction, submits it for signing, and broadcasts the result, the target network is irrelevant and a single deployment works across Ethereum, Polygon, or Hyperledger Besu without modifications to the core signing logic.

3.1. HD Wallet Custody Without Persistent Key Storage

Most custody wallet systems generate and store one key per user, which becomes unmanageable as the number of users grows. HD wallets following BIP-32 and BIP-44 [14,16] eliminate this problem, since every key pair in the system is derived from the same master seed and none need to be stored persistently.
For institutional custody, HD wallets offer clear advantages. Instead of backing up N independent keys, a single 256-bit master seed can regenerate all derived wallets deterministically. Only a single seed needs to be securely preserved, either offline or within an HSM that stores only the master seed, not individual keys. As an additional benefit, each user receives a unique address derived from a sequential index, and without the master seed, there is no way for external observers to link those addresses to the same origin.
Each wallet is assigned a sequential index i along the derivation path defined in Section 2, and only this index, in encrypted form, is stored in the database. No private key material is ever persisted.
Figure 2 illustrates how a single master seed expands into the complete wallet hierarchy, where each level corresponds to one component of the derivation path and every wallet is identified at the leaf level by its sequential index i.
Figure 2. BIP-44 hierarchical derivation tree. Each level corresponds to one component of the path m/44’/60’/0’/0/i. Hardened levels (marked ’) prevent parent key recovery even if a child key is compromised. Each leaf node at index i produces a unique Ethereum wallet address.
The derivation at each level follows the HMAC-SHA512 (Hash-based Message Authentication Code using SHA-512, a cryptographic function that produces a 512-bit output from a key and input data) construction defined in BIP-32 [14], where hardened nodes prevent an attacker from recovering parent keys even with full access to a child key. The full mathematical specification is available in the original proposal.
Algorithm 1 describes the wallet derivation process. The master seed is loaded into memory once at application startup from encrypted storage and remains isolated within the cryptographic service layer throughout the application lifecycle.
Algorithm 1 Wallet Derivation Process
  • Require:   u s e r I d , m a s t e r S e e d
  • Ensure: Ethereum address a d d r
1:
i n d e x ← GetNextSequentialIndex ( )
2:
p a t h ← m / 44 ′ / 60 ′ / 0 ′ / 0 / ∥ i n d e x
3:
( k , c ) ← DeriveMasterKey ( m a s t e r S e e d )
4:
for each level l in p a t h do
5:
( k , c ) ← DeriveChild ( k , c , l )
6:
end for
7:
a d d r ← Keccak 256 ( k · G ) [ 12 : 32 ]
8:
k ← ⊥                          ▹ Discard private key
9:
return   a d d r

3.2. Wallet Creation Flow

Figure 3 shows how the system handles a wallet creation request from an authenticated user.
Figure 3. Wallet creation sequence. The private key is derived solely to generate the Ethereum address; only the AES-256-GCM-encrypted derivation index is written to the database. No private key material is persisted at any step.
The API validates the JWT token and checks that no wallet already exists for that user before delegating to the cryptographic service. The service retrieves the next sequential index, loads the master seed from secure storage, and executes the BIP-44 derivation chain described in Algorithm 1. This produces a 256-bit private key and its corresponding public key on the secp256k1 curve.
Instead of storing private keys, the system keeps only the derivation path index, which is enough to regenerate the key on demand during any signing operation. To protect this index, it is encrypted with AES-256-GCM. The encryption key is derived independently from a system-wide password using PBKDF2 (Password-Based Key Derivation Function 2, a standard algorithm for deriving cryptographic keys from passwords using iterated hashing) with 100,000 iterations, while the 128-bit authentication tag produced by GCM ensures that any tampering with the ciphertext is detected before decryption proceeds.
The userId is bound to the ciphertext as Additional Authenticated Data (AAD), preventing substitution attacks in which an attacker swaps encrypted indexes between records, since decryption fails whenever the AAD does not match the original context. Once encryption succeeds, the userId, the encrypted index, and the Ethereum address are atomically committed to the database. The address is then returned to the client and the private key is discarded from memory. Algorithm 2 summarizes this process.
Algorithm 2 Wallet Creation Process
  • Require:   u s e r I d
  • Ensure: Ethereum address a d d r or error
1:
if   WalletExists ( u s e r I d )   then
2:
return error: wallet already exists
3:
end if
4:
i n d e x ← GetNextIndex ( )
5:
( k , a d d r ) ← DeriveWallet ( i n d e x )          ▹ masterSeed loaded internally
6:
e n c r y p t e d P a t h ← AES 256 GCM . Encrypt ( i n d e x , e n c K e y , A A D = u s e r I d )
7:
SaveToDB ( u s e r I d , a d d r , e n c r y p t e d P a t h )
8:
k ← ⊥                          ▹ Discard private key
9:
return   a d d r

3.3. Transaction Signing Flow

Unlike wallet creation, signing happens repeatedly throughout the system lifecycle. Custody systems that persist encrypted private keys must decrypt them on each signing request and re-encrypt afterward, keeping sensitive cryptographic material permanently present in the system.
Figure 4 shows how the system handles an unsigned transaction submitted by a client, in which no key is ever stored, encrypted or otherwise.
Figure 4. Transaction signing sequence. The database yields only the encrypted derivation index; the private key is re-derived on demand, used to produce the ECDSA signature, and discarded immediately. No key material is stored or returned to the caller.
The transaction service receives the sender address, recipient address, value, nonce, and gas parameters, then queries the database for the encrypted derivation path and userId associated with that sender. The database schema contains no private key material at any point.
The cryptographic service decrypts the derivation index using the system-wide encryption key. It validates the GCM authentication tag to detect tampering and verifies the AAD to confirm the path belongs to the requesting user. Together, these two checks prevent privilege escalation attacks. Once decrypted, the original integer index is recovered and used to repeat the exact BIP-44 derivation. This traverses m/44’/60’/0’/0/i through five HMAC-SHA512 operations, regenerating the private key that was discarded after wallet creation.
With the private key available in memory, the system constructs and signs a RawTransaction object following the Ethereum specification, producing signature ( v , r , s ) . Afterward, the private key is immediately nullified. The result is returned as a hexadecimal string ready for broadcast.
Algorithm 3 summarizes this flow. Broadcasting is intentionally left to the external application. This allows the application to verify gas prices, inspect network conditions, or batch operations before submission, keeping CryptoVault decoupled from any specific blockchain network.
Algorithm 3 Transaction Signing Process
  • Require:   t x (unsigned transaction), f r o m A d d r (sender address)
  • Ensure: Signed transaction s i g n e d T x or error
1:
w a l l e t ← GetWalletByAddress ( f r o m A d d r )
2:
if   w a l l e t = null   then
3:
return error: wallet not found
4:
end if
5:
i n d e x ← AES 256 GCM . Decrypt ( w a l l e t . e n c r y p t e d P a t h , e n c K e y , A A D = w a l l e t . u s e r I d )
6:
if InvalidAuthTag then
7:
return error: tampering detected
8:
end if
9:
( k , a d d r ) ← DeriveWallet ( i n d e x )          ▹ masterSeed loaded internally
10:
if   a d d r ≠ f r o m A d d r   then
11:
return error: address mismatch
12:
end if
13:
h a s h ← Keccak 256 ( RLP ( t x ) )
14:
( v , r , s ) ← ECDSA . Sign ( h a s h , k )
15:
k ← ⊥                          ▹ Discard private key
16:
return   Encode ( t x , v , r , s )

3.4. Security Considerations

The architecture assumes that any individual component can be compromised, and it is designed so that no single breach exposes cryptographic secrets.

3.4.1. Threat Model

We define four attacker capability levels to bound the security analysis. A network attacker can intercept and modify traffic between clients and the API layer but cannot access server-side state. A database attacker has read and write access to PostgreSQL, obtaining encrypted derivation indexes and public addresses. An application attacker can read process memory or execute code within the JVM process. A physical attacker has direct hardware access to the server.
The threat model considers network and database attackers as in scope. Application-level attackers with remote code execution capability are considered out of scope because process isolation is an operating system responsibility outside the application boundary. Physical attackers are similarly out of scope because physical access controls are an operational deployment requirement. Timing side-channel attacks are also considered out of scope at the application layer, though we acknowledge their theoretical relevance in Section 3.4.5.

3.4.2. Attack Surface Analysis

Table 2 summarizes the STRIDE (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege) threat analysis for each system component. The most significant finding concerns information disclosure at the database level. Unlike custody systems that store encrypted private keys, a CryptoVault database breach exposes only encrypted derivation indexes, which are useless without the master seed.
Table 2. STRIDE threat analysis by system component.
Let D denote database access, K the encryption key, and S the master seed. In a custody system storing AES-encrypted private keys, an attacker needs D ∩ K to recover any private key. In CryptoVault, database access yields only encrypted derivation indexes, meaning D ∩ K produces only the integer index i, which is insufficient to derive any private key without S. Full key recovery therefore requires D ∩ K ∩ S simultaneously, adding one independent secret compared to systems that store encrypted keys. This is the 3-component compromise requirement introduced in the introduction.

3.4.3. Master Seed Protection

The master seed is the most critical asset in the system, since whoever controls that 256-bit value can derive every user wallet. For this reason, the seed never appears in logs, debug output, or error messages, and cryptographic material is explicitly filtered out through exception handling and structured logging. At runtime, the seed is loaded into memory once during application bootstrap and never serialized to disk in plaintext. In production, it must reside in an HSM or encrypted secrets backend such as AWS CloudHSM, Azure Key Vault, or HashiCorp Vault. Access to the seed store should enforce dual-control authorization and maintain a full audit log of all retrieval events. Alternatively, it may reside in a confidential computing environment such as AWS Nitro Enclaves, which enforces strict access controls so that only the cryptographic service layer can retrieve it.
If the master seed is ever compromised, recovery is still feasible by generating a new seed and re-deriving all wallets. On-chain assets can then be migrated by signing transfer transactions with the old private keys before deactivating the compromised seed.

3.4.4. Encryption at Rest

Wallet metadata is encrypted using AES-256-GCM, with the encryption key derived from a system-wide password through PBKDF2. Each ciphertext is bound to its originating userId as AAD, ensuring that the privilege escalation scenario described in Section 3.2 is mitigated at the cryptographic level rather than through access controls alone.

3.4.5. In-Memory Key Exposure

Although assigning k = null in JVM marks the variable for garbage collection without guaranteeing immediate memory zeroing, the implementation explicitly overwrites key bytes with Arrays.fill(keyBytes, 0) before nullification, reducing the residence time of transient private keys in heap memory during signing operations.
Cold boot attacks represent a physical threat in which an attacker with physical access to the server can dump RAM contents after shutdown, potentially recovering the master seed loaded at bootstrap. This threat is out of scope for the application layer and must be mitigated through confidential computing configurations such as AMD SEV (AMD Secure Encrypted Virtualization, a hardware feature that encrypts virtual machine memory pages to prevent physical memory inspection) encrypted memory and HSM-bound seed storage in production deployments.
Timing side channels on ECDSA signing are a known vulnerability class that Bouncy Castle 1.70 (Bouncy Castle is an open-source cryptographic library for Java and Kotlin providing implementations of standard algorithms including elliptic curve cryptography) addresses through constant-time scalar multiplication for secp256k1 point operations. However, the five HMAC-SHA512 iterations in BIP-44 derivation are not specifically hardened against timing measurement by a co-located attacker. This risk is considered out of scope under the defined threat model but is acknowledged as relevant in physical co-location scenarios.

4. CryptoVault Implementation

The implementation uses Kotlin 1.9 and Spring Boot 3.2, with PostgreSQL 15 as the database. Web3j 4.10.3 handles all cryptographic operations, including BIP-44 key derivation and ECDSA signing, with Bouncy Castle 1.70 as the underlying cryptographic provider. Authentication uses JSON Web Tokens signed with HS256 (HMAC with SHA-256). Table 3 summarizes the complete stack.
Table 3. CryptoVault Technology Stack.
Table 4 summarizes the primary REST endpoints that CryptoVault exposes for authentication, wallet management, and transaction signing.
Table 4. CryptoVault REST API Endpoints.
All endpoints accept and return JSON. Authentication endpoints issue JWTs that clients include in subsequent requests via Authorization: Bearer <token>. The signing endpoint verifies that the authenticated user owns the wallet specified in the from field before processing any transaction. To validate the blockchain integration, we built a reference application that uses CryptoVault to sign transactions against a CoffeeToken smart contract (ERC-20) deployed on a Hyperledger Besu network managed via Kaleido. The source code for both the application and the contract is available in the GitHub (Version v1.0.0) repository (https://github.com/jminango20/crypto-vault (accessed on 9 March 2026)).
Figure 5 shows the end-to-end integration. As an example, consider a farmer requesting tokenization of a coffee lot. The application constructs an unsigned transaction with the relevant parameters, then submits it to /api/v1/transaction/sign along with the user’s JWT. CryptoVault validates the token, re-derives the private key, signs using ECDSA on secp256k1, discards the private key immediately, and returns the signed transaction. The application then broadcasts it to the Besu network via sendSignedTransaction().
Figure 5. End-to-end integration flow between the application server, CryptoVault, and the Besu network.
As Figure 5 makes explicit, CryptoVault never interacts with the blockchain directly. All network communication remains the responsibility of the external application.

5. Performance Evaluation

This section evaluates CryptoVault under increasing concurrency through four end-to-end load scenarios and contextualizes the stateless re-derivation approach against both a direct AES key storage baseline and threshold ECDSA signing latencies.

5.1. Test Environment

Tests were executed on a workstation with an Intel Core i7-1260P (16 threads, 2.1–4.7 GHz), 8 GB DDR4 RAM, Windows 11. The Spring Boot application was allocated a 4 GB heap (-Xmx4g -Xms4g), PostgreSQL 15.3 used 128 MB shared buffers with default checkpoint intervals, and the JDK version was OpenJDK 21. The application and database ran on the same host to isolate the cryptographic and database performance of the architecture from network topology variables. The reported latencies capture the cost of BIP-44 derivation, AES-256-GCM operations, and database transactions directly. Network round-trip time, which varies by deployment topology, is additive to these baseline figures and independent of the architecture being evaluated.

5.2. Load Testing Methodology

Load tests were conducted with Apache JMeter 5.6.3, in which each thread simulates an independent user session executing sequential HTTP requests. Sessions begin with registration (/api/v1/auth/register) and authentication (/api/v1/auth/login) to obtain a JWT token, using a sequential counter to assign unique identifiers (user000001, user000002, …) to each virtual user. JSON extractors capture tokens and wallet addresses from API responses and store them as JMeter variables for subsequent requests.
All HTTP requests include Content-Type: application/json and Authorization: Bearer ${JWT_TOKEN} headers, with POST payloads constructed dynamically from JMeter variables and response assertions validating expected HTTP status codes and JSON structure.
Concurrency ramps at 5 users per second, allowing JVM just-in-time (JIT) compilation, query caching, and connection pool initialization to stabilize incrementally across the warm-up phase. Between runs, the database is reset with TRUNCATE TABLE wallets, users CASCADE to guarantee a clean initial state.

5.3. Metrics Collection

JMeter ran in non-GUI mode to eliminate graphical overhead. Response time statistics (average, minimum, maximum, and standard deviation), error rate, and throughput were recorded for each request type. Results were exported to CSV for post-processing and latency analysis across scenarios.

5.4. Test Scenarios

Four scenarios evaluate the system under increasing load conditions.

5.4.1. Scenario 1: Wallet Creation Scalability

This scenario measures wallet creation performance under concurrent load using 10, 50, 100, and 500 simultaneous virtual users. Each user registers, authenticates to obtain a JWT, and creates a wallet.
Wallet creation is the most computationally intensive operation, involving BIP-44 derivation across five levels with HMAC-SHA512, secp256k1 public key derivation, Keccak-256 address generation, AES-256-GCM encryption of the derivation index, and an atomic PostgreSQL write. This scenario captures cryptographic throughput, database write performance, and connection pool behavior simultaneously.

5.4.2. Scenario 2: Transaction Signing Performance

This scenario quantifies the cost of on-demand key re-derivation under concurrent load. After registration, authentication, and wallet creation, each user submits three sequential signing requests via POST/api/v1/transaction/sign. Each request executes the complete signing pipeline described in Section 3.3.
Three signing operations per user reflect a representative daily workload. An institution with 500 cooperative members submitting three tokenization transactions each generates 1500 daily operations, a volume used as the basis for capacity analysis in Section 5.6.
Tests ran with 10, 50, 100, and 500 concurrent users, producing 30, 150, 300, and 1500 total signing operations, respectively.

5.4.3. Scenario 3: Read Performance Evaluation

This scenario isolates read performance by having each user execute ten consecutive GET/api/v1/wallet/{userId} requests, simulating dashboard polling or periodic mobile synchronization. Requests retrieve the Ethereum address via an indexed query on user_id without any cryptographic computation.
Tests ran with 10, 50, 100, and 500 users, producing 100, 500, 1000, and 5000 total queries. Since the database stores only encrypted derivation indexes rather than private keys, reads require no decryption, unlike custody systems that incur AES-256-GCM overhead on every key retrieval.

5.4.4. Scenario 4: Sustained Load Stability

This sustained load test (soak test) evaluates system stability and resource management under prolonged operation. While previous scenarios characterize burst performance, this test simulates continuous operation to detect degradation indicative of memory leaks, connection pool exhaustion, or database bloat.
The test maintains 50 concurrent users performing mixed operations for 10 min (600 s). Each user alternates between retrieving their wallet address via GET/api/v1/wallet/{userId} and signing transactions via POST/api/v1/transaction/sign, with an approximately balanced distribution of reads and signing operations. This mixed pattern simulates realistic institutional use, in which cooperative members periodically check wallet state and submit tokenization transactions.

5.5. Results and Analysis

5.5.1. Wallet Creation Performance

Figure 6 shows wallet creation latency for registration, authentication, and wallet generation across four concurrency levels. Table 5 summarizes the performance metrics.
Figure 6. Wallet creation latency under increasing concurrent load, comparing registration, login, and wallet generation across four concurrency levels.
Table 5. Performance Metrics for Wallet Creation.
In steady state, reached at 50 concurrent users and above, wallet creation averaged 21–34 ms across all tested concurrency levels, confirming that the full BIP-44 derivation pipeline completes well within the 100 ms interactive response threshold. The 10-user result (468 ms) reflects cold-start overhead from lazy connection pool initialization and JVM JIT compilation, and is not representative of sustained operation under continuous load.
This performance pattern reflects warm-up effects that dissipate under sustained load. Connection pooling keeps database connections alive between requests. This eliminates the TCP handshake and PostgreSQL authentication overhead that appears at low concurrency when connections are established lazily. JVM JIT compilation turns the five HMAC-SHA512 iterations in BIP-44 derivation into native machine code after roughly 10,000 invocations, a threshold the 10-user test never reaches but the 500-user test surpasses early. PostgreSQL’s shared buffer cache retains the user and wallet tables in memory, cutting disk I/O on repeated queries while OS-level filesystem caching keeps recently written data in RAM, reducing checkpoint overhead.
Registration latency improved from 292 ms to 112 ms (2.6× speedup) and login from 184 ms to 102 ms (1.8× speedup). Both operations involve simpler cryptographic workloads than BIP-44 derivation does. Bcrypt password hashing and JWT signature generation require fewer iterations and benefit less from JIT optimization than the iterative HMAC-SHA512 operations in wallet creation. At peak concurrency, an institution onboarding 500 cooperative members completes wallet provisioning at 21 ms per creation request (Table 5).

5.5.2. Transaction Signing Performance

Figure 7 and Table 6 show signing performance under concurrent load, in which each request triggers AES-256-GCM decryption of the derivation index, BIP-44 re-derivation, and ECDSA signing without any cached key material.
Figure 7. Transaction signing performance analysis. (a) Direct comparison between wallet creation and transaction signing latency. (b) Throughput scaling from 6.58 to 30.06 transactions per second (tx/s).
Table 6. Performance Metrics for Transaction Signing.
As shown in Figure 7a, signing latency dropped from 27 ms at 10 users to 13 ms at 500 users, a 52% reduction attributed to the same warm-up effects as wallet creation. At concurrency levels above 10 users, signing is consistently faster than wallet creation by 3–9 ms (Table 6). This reflects the AES-256-GCM encryption and atomic PostgreSQL write that creation requires but signing skips. This confirms that on-demand BIP-44 re-derivation itself adds minimal overhead to the signing pipeline.
At 13 ms under 500 concurrent users, the full signing pipeline completes well within the 100 ms interactive response threshold. Throughput scaled from 6.58 tx/s to 30.06 tx/s as concurrency grew, a 4.6× improvement visible in Figure 7b. For an institution with 500 cooperative members submitting three tokenization transactions daily each, the system processes the resulting 1500 operations in approximately 50 s at peak load.

5.5.3. Read Performance Evaluation

Figure 8 compares read and write performance across concurrency levels and Table 7 details the metrics. Reads involve only an indexed PostgreSQL query with no cryptographic computation or database writes.
Figure 8. Read performance evaluation. (a) Read operations (GET wallet) versus write operations (create wallet, login) on a logarithmic scale. (b) Throughput scaling from 21.78 to 100.17 requests per second (req/s).
Table 7. Read Performance Metrics.
As shown in Figure 8a, read latency stayed below 10 ms across all concurrency levels, dropping from 10 ms at 10 users to 4 ms at 500 users as connection pools and database caches warmed up. This is 4 to 11 times faster than write operations at equivalent concurrency (Table 7), since reads bypass BIP-44 derivation, AES-256-GCM encryption, and transactional inserts entirely.
Figure 8b shows throughput scaling from 21.78 req/s to 100.17 req/s. An institution with 1000 cooperative members checking wallet state periodically operates well within this capacity, with latencies imperceptible in any mobile interface.

5.5.4. Sustained Load Stability

Figure 9 shows latency distribution and temporal stability across 293,562 operations over 10 min, and Table 8 summarizes the metrics. The test simulates continuous mixed load to detect memory leaks, connection pool exhaustion, or gradual performance degradation.
Figure 9. Soak test results (50 users × 10 min = 293,562 operations, 0% error rate). (a) Latency distribution: setup operations (executed once) vs. sustained operations (10 min loop). (b) Temporal stability: consistent response times without degradation.
Table 8. Soak Test Performance Metrics (10 min, 50 concurrent users).
The system recorded no failures throughout the test, with GET wallet averaging 86 ms (95th percentile, p95 = 151 ms) and signing averaging 109 ms (p95 = 184 ms). The temporal analysis in Figure 9b confirms no degradation between minute 1 and minute 10. Latency outliers above 2000 ms were rare and showed no tendency to worsen over time, keeping p95 values for sustained operations consistently below 200 ms.
For an institution with 500 cooperative members generating 1500 daily tokenization transactions, this validated capacity provides ample spare capacity for peak usage.

5.6. Discussion

The steady-state signing latency of 13 to 22 ms (Table 6) and wallet creation latency of 21 to 34 ms (Table 5) represent the primary performance findings of this evaluation. Cold-start latency at low concurrency (468 ms at 10 users) reflects JVM JIT compilation and lazy connection pool initialization. These effects are common to any JVM-based system and not indicative of architectural properties.
To isolate the cost of BIP-44 re-derivation over direct encrypted key storage, we measured the signing operation in isolation over 500 iterations after 100 JVM warm-up iterations. Both approaches use the same AES-256-GCM encryption with PBKDF2 key derivation; the only variable is whether signing requires the five HMAC-SHA512 rounds of the BIP-44 derivation path. Since both approaches share the same encryption mechanism, isolating the cryptographic operations produces a precise measurement of the overhead attributable to the stateless design. The complete baseline implementation is available as BaselineSigningLatencyTest in the open-source repository.
As shown in Table 9, BIP-44 re-derivation adds a mean overhead of 0.95 ms over direct AES decryption of a stored private key, representing the cost of five HMAC-SHA512 rounds traversing the path m/44’/60’/0’/0/i. At the system level, this represents approximately 4 to 7% of the total steady-state signing latency of 13 to 22 ms (Table 6). For institutional workflows in which transactions are periodic rather than continuous, this overhead has no practical impact on user experience. The trade-off yields meaningful operational benefits. No persistent private keys exist to be stolen, and a single master seed replaces thousands of individually managed encrypted keys.
Table 9. Cryptographic signing latency: CryptoVault versus naive AES key storage baseline (500 iterations, post-JVM warm-up).
Table 10 contextualizes CryptoVault’s signing latency against threshold ECDSA approaches from the literature. A single-node implementation of MPC threshold ECDSA would eliminate the inter-party network communication that dominates MPC latency in practice, producing results that are not comparable to real distributed deployments. Published benchmarks conducted under distributed conditions therefore provide a more meaningful basis for comparison.
Table 10. Signing performance comparison across custody approaches.
While Katz and Urban [13] report sub-millisecond online signing latency, this figure excludes the cost of batch presignature generation, continuous multi-server coordination, and key generation ceremonies required before any signing can occur. Wong et al. [12] further demonstrate that standard threshold ECDSA protocols require multiple communication rounds and degrade when any participant faults. CryptoVault’s 13 to 22 ms steady-state latency covers the complete signing pipeline, comprising index decryption, BIP-44 re-derivation, and ECDSA signing. No presigning infrastructure or coordination overhead is required. This makes it operationally practical for institutions without dedicated cryptographic infrastructure.

Limitations

Every custody architecture concentrates trust in a single critical secret whose compromise affects all managed wallets. In systems that store encrypted private keys, this secret is the encryption key; in MPC-based systems, it is the key generation ceremony and quorum parameters; in HSM-backed systems, it is the device and its access credentials. CryptoVault is no different. The root of trust is the master seed. What distinguishes this design is that no private keys are ever stored, and the master seed alone is insufficient for an attack. Full key recovery requires the simultaneous compromise of three components (the encrypted derivation index, the encryption key, and the master seed), as demonstrated formally in Section 3.4.
Two operational risks deserve explicit attention. Seed loss renders all derived wallets permanently inaccessible, since re-derivation requires the original master seed and no recovery path exists without it. Seed compromise reduces the attack requirement from three components to two. An attacker who obtains the master seed still requires both the encrypted derivation index and the encryption key to recover any private key. However, the remaining barrier is significantly lower. Seed protection is therefore the highest-priority operational concern.
These risks are well understood in secret management and addressed through established practices. Threshold secret sharing distributes the seed across multiple custodians, where a minimum subset is required to reconstruct it. Thus, no single party holds sufficient material for recovery. Geographic distribution of seed backups protects against physical loss or regional disaster. Formal access audits and hardware security modules with strict access policies enforce the principle of least privilege around the seed store. Protecting one explicit secret through these practices is operationally simpler than managing the distributed trust assumptions of MPC-based systems or the hardware lifecycle dependencies of HSM-backed deployments.

6. Conclusions

In this paper, we proposed CryptoVault, a custody architecture in which private keys are never stored, derived on demand from a single master seed during signing, and discarded immediately afterward. The approach reduces the attack surface to three components that an attacker must compromise simultaneously. These are the encrypted derivation indexes in the database, the master seed in isolated storage, and the encryption key. A threat analysis across four attacker capability levels confirmed that no single-component breach yields a usable private key.
Beyond security, the architecture simplifies institutional operations. One seed replaces thousands of individually managed keys, and wallet recovery requires only the seed and the original derivation indexes. Load tests on development hardware confirmed 13 to 22 ms steady-state signing latency and 30 tx/s throughput at 500 concurrent users, with no failures or degradation during the soak test. The re-derivation cost that distinguishes this architecture from naive key storage accounts for approximately 0.95 ms of mean signing latency, roughly 4 to 7 percent of the total end-to-end cost. This confirms that the stateless design is viable under realistic concurrent load.
While this work uses agricultural cooperatives as a motivating context, the architecture applies to any institution managing blockchain wallets on behalf of non-technical users, including healthcare record tokenization, government digital identity programs, and NGO fund distribution. For all such contexts, in which digital literacy is limited and reliance on centralized custodians introduces counterparty risk and regulatory dependency, CryptoVault offers a practical path to blockchain adoption without exposing end users to cryptographic complexity.
Several directions remain open for future work. The master seed represents a concentrated point of trust, and distributing it across multiple custodians using a threshold secret sharing scheme is the most direct path to eliminating this single point of failure. The architecture also generalizes naturally to non-EVM chains through their respective BIP-44 coin types. Furthermore, the isolation of all cryptographic operations within a single service boundary positions CryptoVault for future migration to post-quantum signature schemes as standardized alternatives to ECDSA mature at the protocol level.

Author Contributions

Conceptualization, J.M. and A.P.; methodology, J.M. and S.M.; software, J.M.; validation, J.M., A.P. and A.L.; formal analysis, J.M.; investigation, J.M. and A.P.; resources, A.L. and S.M.; data curation, J.M.; writing—original draft preparation, J.M.; writing—review and editing, J.M., A.P., S.M. and A.L.; visualization, J.M.; supervision, A.P. and A.L.; project administration, A.L.; funding acquisition, A.L. and S.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the São Paulo Research Foundation (FAPESP), grant numbers 2022/09319-9 and 2024/18399-1.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The source code and implementation described in this study are publicly available at https://github.com/jminango20/crypto-vault (accessed on 9 March 2026).

Acknowledgments

The authors would like to thank Embrapa and the Semear Digital project for their support during the development of this work.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Santhanam, E.M.; Kamatchi, K. Enhancing Agricultural Supply Chain Management with Blockchain Technology and DSA-TabNet: A PBFT-Driven Approach. Trans. Emerg. Telecommun. Technol. 2025, 36, e70085. [Google Scholar] [CrossRef] [Scilit]
  2. Gurusamy, U.; Vijayarajan, S.; Gunasekaran, P.K.; Anantharaman, M. Impact of Blockchain Technology In Agriculture Supply Chain a Comprehensive Review of Applications, Challenges, and Future Directions. J. Sustain. Compet. Intell. 2025, 15, e0519. [Google Scholar] [CrossRef] [Scilit]
  3. Olateju, O. Tokenization of Agricultural Assets: Strengthening Blockchain Security in Agri-finance and Investment Models Against Fraud and Cyber Risks. SSRN 2025. preprint. [Google Scholar] [CrossRef] [Scilit]
  4. Blockchain App Factory. Decentralizing Agriculture: The Case for Crop Tokenization in 2025. Blockchain App Factory. 22 April 2025. Available online: https://www.blockchainappfactory.com/blog/crop-tokenization/ (accessed on 29 November 2025).
  5. Erinle, Y.; Kethepalli, Y.; Feng, Y.; Xu, J. SoK: Design, vulnerabilities, and security measures of cryptocurrency wallets. Comput. Netw. 2025, 273, 111691. [Google Scholar] [CrossRef] [Scilit]
  6. MetaMask. What Is a Self-Custodial Wallet? MetaMask. 2025. Available online: https://support.metamask.io/start/metamask-is-a-self-custodial-wallet/ (accessed on 5 April 2025).
  7. McCabe, C.; Mohideen, A.I.C.; Singh, R. A Blockchain-Based Authentication Mechanism for Enhanced Security. Sensors 2024, 24, 5830. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. LITSLink Team. Blockchain in Agriculture: Boosting Efficiency and Traceability for Farmers. In LITSLink Blog (Academic-Oriented Review). LITSLink Team. 2025. Available online: https://litslink.com/blog/how-blockchain-in-agriculture-boosts-efficiency-and-traceability-for-farmers (accessed on 29 November 2025).
  9. Quayson, M.; Bai, C.; Sarkis, J. Technology for Social Good Foundations: A Perspective From the Smallholder Farmer in Sustainable Supply Chains. IEEE Trans. Eng. Manag. 2021, 68, 894–898. [Google Scholar] [CrossRef] [Scilit]
  10. Zyskind, G.; Yanai, A.; Pentland, A. Unstoppable Wallets: Chain-assisted Threshold ECDSA and its Applications. In Proceedings of the 19th ACM Asia Conference on Computer and Communications Security; ACM: New York, NY, USA, 2024. [Google Scholar] [CrossRef] [Scilit]
  11. Erinle, Y.; Feng, Y.; Sallal, M.; Al-Khateeb, H. Shared-Custodial Wallet for Multi-Party Crypto-Asset Management with Secure Key Recovery. Future Internet 2025, 17, 7. [Google Scholar] [CrossRef] [Scilit]
  12. Wong, H.W.H.; Ma, J.P.K.; Yin, H.H.F.; Chow, S.S.M. Real Threshold ECDSA. In Proceedings of the 30th Network and Distributed System Security Symposium, San Diego, CA, USA, 27 February–3 March 2023. [Google Scholar] [CrossRef] [Scilit]
  13. Katz, J.; Urban, A. Honest-Majority Threshold ECDSA with Batch Generation of Key-Independent Presignatures. IACR Commun. Cryptol. 2025, 2, 8. [Google Scholar] [CrossRef] [Scilit]
  14. Wuille, P. BIP 32: Hierarchical Deterministic Wallets. Updated and Referenced as of 2026. 2012. Available online: https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki (accessed on 9 March 2026).
  15. Palatinus, M.; Rusnak, P.; Voisine, A.; Bowe, S. BIP 39: Mnemonic Code for Generating Deterministic Keys. Final Status. 2013. Available online: https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki (accessed on 9 March 2026).
  16. Palatinus, M.; Rusnak, P. BIP 44: Multi-Account Hierarchy for Deterministic Wallets. Final Status. 2014. Available online: https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki (accessed on 9 March 2026).
  17. Nakamoto, S. Bitcoin: A Peer-to-Peer Electronic Cash System. Technical Report. 2008. Available online: https://bitcoin.org/bitcoin.pdf (accessed on 25 September 2025).
  18. Wood, G. Ethereum: A Secure Decentralised Generalised Transaction Ledger. Yellow Paper, Ethereum Project. 2014. Available online: https://ethereum.github.io/yellowpaper/paper.pdf (accessed on 25 September 2025).
  19. Antonopoulos, A.M.; Wood, G. Mastering Ethereum: Building Smart Contracts and DApps; O’Reilly Media: Sebastopol, CA, USA, 2018. [Google Scholar]
  20. Antonopoulos, A.M. Mastering Bitcoin: Programming the Open Blockchain, 2nd ed.; O’Reilly Media: Sebastopol, CA, USA, 2017. [Google Scholar]
  21. Eskandari, S.; Barrera, D.; Stobert, E.; Clark, J. A First Look at the Usability of Bitcoin Key Management. In Proceedings of the 2015 Workshop on Usable Security (USEC), San Diego, CA, USA, 8 February 2015. [Google Scholar] [CrossRef] [Scilit]
  22. Yin, X.; Liu, Z.; Yang, G.; Chen, G.; Zhu, H. Secure Hierarchical Deterministic Wallet Supporting Stealth Address. In Proceedings of the Computer Security—ESORICS 2022; Lecture Notes in Computer Science; Springer International Publishing: Cham, Switzerland, 2022; Volume 13554, pp. 89–109. [Google Scholar] [CrossRef] [Scilit]
  23. Podgorelec, B.; Alber, L.; Zefferer, T. What is a (Digital) Identity Wallet? A Systematic Literature Review. In Proceedings of the 2022 IEEE 46th Annual Computers, Software, and Applications Conference (COMPSAC); IEEE: New York, NY, USA, 2022; pp. 809–818. [Google Scholar] [CrossRef] [Scilit]
  24. Homoliak, I.; Venugopalan, S.; Reijsbergen, D.; Hum, Q.; Schumi, R.; Szalachowski, P. The Security Reference Architecture for Blockchains: Toward a Standardized Model for Studying Vulnerabilities, Threats, and Defenses. IEEE Commun. Surv. Tutor. 2021, 23, 341–390. [Google Scholar] [CrossRef] [Scilit]
  25. Dong, C.; Pal, S.; Fang, K.; Xu, Z.; Chen, S.; Liu, X. Blockchain-Enabled NFTs as Certificates for Next-Generation UAV Communication Systems. In ImmerCom ’25: Proceedings of the 3rd ACM Workshop on Mobile Immersive Computing, Networking, and Systems; ACM: New York, NY, USA, 2025; pp. 49–54. [Google Scholar] [CrossRef] [Scilit]
  26. Sakthivel, V.; Prakash, P.; Lee, J.W.; Prabu, P. Enhancing Transparency and Trust in Agrifood Supply Chains through Novel Blockchain-based Architecture. KSII Trans. Internet Inf. Syst. 2024, 18, 1968–1985. [Google Scholar] [CrossRef] [Scilit]
  27. Guo, P.; Feng, G.; Wang, K.; Zhou, X.; Liu, Q. Analysis of blockchain technology implementing and financing provision strategies in contract farming supply chains. Transp. Res. Part E Logist. Transp. Rev. 2025, 203, 104385. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.