age-hier

Hierarchical Deterministic Key Generation For Age

built with Nix

age-hier helps you generate Age keys based on a BIP-39 seed.

It features a straightforward and well-specified design, and two CLI implementations,

Specification

Read here.

Installation

Nix

Build either .#age-hier-go or .#age-hier-rust.

Go

Run go install github.com/bbjubjub2494/age-hier/go/cmd/...@latest

Cargo

Run cargo install --git https://github.com/bbjubjub2494/age-hier

Usage

Run age-hier-derive and enter a mnemonic and optional passphrase as prompted. The program will deterministically produce an Age private key and write it to the standard output.

More than one private key can be derived from the same seed. Use the -i option to access keys other than the zeroth one.

Note that while everything should be relatively straightforward, neither the design nor either implementation have been studied by anyone holding a master’s degree.

Generating random mnemonic phrases is out-of-scope for this tool.

Checking

nix flake check will ensure that both implementations behave as expected against the test vector.