QubicTypeScript

identityFromSeed

Derives the Qubic identity string directly from a seed in one step, equivalent to publicKeyToIdentity(publicKeyFromSeed(seed)).

Signature

identityFromSeed(seed: Seed): Identity

Purpose

Derives the Qubic identity string directly from a Seed. Equivalent to calling publicKeyToIdentity(publicKeyFromSeed(seed)), but in one step. Use this when you only need the identity and don't need the intermediate public key.

import { identityFromSeed } from "@qubic.org/crypto"
import { toSeed } from "@qubic.org/types"

const identity = identityFromSeed(toSeed("aaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"))
// identity: Identity — 60-character uppercase string

Parameters

NameTypeDescription
seedSeed55-character lowercase seed string

Returns

Identity — 60-character uppercase identity string.

On this page