# DP: Hardened HD derivation for post-quantum keys

**URL:** <https://forum.quantumalliance.foundation/t/dp-hardened-hd-derivation-for-post-quantum-keys/18>\
**Category:** Working Group: Wallet Security\
**Tags:** discussion-paper\
**Created:** [November 25, 2026, 3:56am UTC](https://forum.quantumalliance.foundation/t/dp-hardened-hd-derivation-for-post-quantum-keys/18 "2026-11-25T03:56:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![carback1](https://forum.quantumalliance.foundation/user_avatar/forum.quantumalliance.foundation/carback1/32/13_2.png) [@carback1](https://forum.quantumalliance.foundation/u/carback1)\
**Post date:** [November 25, 2026, 3:56am UTC](https://forum.quantumalliance.foundation/t/dp-hardened-hd-derivation-for-post-quantum-keys/18/1 "2026-11-25T03:56:18Z")

</div>

**Working group:** Wallet Security  
**Status:** Discussion Paper. Looking for supporters other than the author.  
**Author affiliation:** Postquant Labs (developer of Quip Network). The reference implementation below is Quip code.

## Summary

Standardize one way to derive many post-quantum keys from one BIP-39 mnemonic. The starting point is the QUIP HD derivation v1 that Quip ships in [`ethereum-sdk`](https://github.com/QuipNetwork/ethereum-sdk/blob/main/src/v1/shrincs/hd.ts). It feeds SHRINCS key generation, and the [`hashsigs-solidity`](https://github.com/QuipNetwork/hashsigs-solidity) contracts verify the results on chain.

## Problem

Wallets need one backup that restores every account on every chain. BIP-32 gives that for secp256k1, but its non-hardened derivation depends on elliptic-curve math: a child public key comes from a parent public key. Hash-based and lattice keys have no such relation. Without a standard, each wallet invents its own derivation, and a mnemonic from one wallet restores nothing in another.

## Current approach: QUIP HD derivation v1

| Step | Rule |
| --- | --- |
| Mnemonic to seed | BIP-39, unchanged: English wordlist, checksum validated, PBKDF2-HMAC-SHA512, 2048 rounds, 64-byte seed, optional passphrase. |
| Master node | `I = HMAC-SHA512(key = "QUIP seed", data = seed)`. The key is `I[0:32]` and the chain code is `I[32:64]`. The seed must be 16 bytes or more. |
| Child node | Hardened only: `I = HMAC-SHA512(chainCode, 0x00 ‖ key ‖ ser32BE(index + 2^31))`. This is the SLIP-0010 hardened step. |
| Path | `m / 20814' / algorithm' / network' / account' / index'` |
| Leaf | The 32-byte leaf key is the seed for the scheme’s key generation (today `shrincsKeygen`). |

Path levels:

- **Purpose `20814'`** is `0x514E`, ASCII “QN”.
- **Algorithm** is `0x7FFFFFFF` (experimental) for now. Quip plans to assign registered identifiers below `0x7F000000`.
- **Network** is the fixed value `20049` for wallets, so one mnemonic gives the same key on every EVM chain. The Quip paymaster uses the chain ID at this level and a rotation epoch at the index level, so each chain gets its own key.

The scheme has no extended public key (xpub). Every level uses hardened derivation, because these keys do not support public derivation.

## What the working group would standardize

1. **Seed:** keep BIP-39 unchanged, so existing backups and hardware signers work.
2. **Master domain string:** keep one master (`"QUIP seed"` or a neutral string such as `"PQ seed"`) and separate the schemes at the algorithm level. The alternative is one master string for each scheme, as SLIP-0010 does for each curve.
3. **Purpose number:** register a purpose value, so that other key types do not collide with these paths.
4. **Algorithm identifiers:** take the algorithm level from a shared registry of scheme identifiers. [The companion paper in Interoperability](https://forum.quantumalliance.foundation/t/dp-scheme-registry-for-eip-8288-dependency-frames/19) proposes that registry.
5. **Network level:** decide between a fixed value (the same account address on every chain) and the chain ID (isolation between chains). This could also be a per-use choice, as Quip does for wallets and paymasters.
6. **Leaf to key generation:** specify, for each scheme, how the 32-byte leaf seeds key generation. Examples are SHRINCS, SLH-DSA, and ML-DSA (FIPS 204 key generation takes a 32-byte seed `ξ`).
7. **Stateful keys after restore:** derivation restores keys, not signer state. A restored SHRINCS signer must not reuse a stateful one-time index. SHRINCS has a stateless SPHINCS+C recovery path for this case: the verifiers expose `verify` and `verifyStateless`. The standard must say whether a restored wallet uses the stateless path, rotates to a new index, or both.
8. **Watch-only wallets and discovery:** without an xpub, a watch-only wallet needs a list of exported public keys. Account discovery (a gap limit) needs the private seed. Hardware signers need a defined way to export public keys.

## Deliverables

- A specification of the derivation and the path.
- Test vectors: the BIP-39 test mnemonic through to leaf keys and public keys for each registered algorithm.
- A recovery profile for stateful schemes.

## Open questions

1. One master string, or one for each scheme?
2. Should the network level default to a fixed value or to the chain ID?
3. Is the SLIP-0010 HMAC-SHA512 chain strong enough? Each child key is 256 bits, which keeps 128-bit security against Grover’s algorithm.
4. Which hardware signers are ready to implement this, and what do they need?

## References

- `ethereum-sdk`, `src/v1/shrincs/hd.ts` (commit `8e1c3db`, AGPL-3.0-or-later)
- `ethereum-sdk`, `scripts/rotate-shrincs-paymaster-key.mjs`: chain-scoped keys with an epoch index
- `hashsigs-solidity` (commit `0b8a74b`): SHRINCS stateful and stateless verifiers, audited by Oak Security (2026-09-24)
- [BIP-32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki), [BIP-39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki), [SLIP-0010](https://github.com/satoshilabs/slips/blob/master/slip-0010.md)

* * *
