API Reference / @evolu/common / Crypto / createSlip21Id
Function: createSlip21Id()
function createSlip21Id(seed, path): string & Brand<"Id">;
Defined in: packages/common/src/Crypto.ts:84
Creates a 21-character Base64URL ID (also known as nanoid) from a SLIP-21 derived key.
Reduces the 256-bit SLIP-21 output to 126 bits (21 chars × 6 bits) for a compact, human-readable, and shareable identifier suitable for UI display or URL use. While this lowers entropy, 126 bits remains cryptographically secure for uniqueness and unpredictability in most applications (comparable to UUIDv4's 122 bits).
See https://github.com/satoshilabs/slips/blob/master/slip-0021.md
Parameters
Parameter | Type |
---|---|
seed | MnemonicSeed |
path | readonly string [] |
Returns
string
& Brand
<"Id"
>