function · Browser and Node
seedFrom
Derives a reproducible seed by hashing a label with SHA-256. A guessable label produces a guessable identity; use a securely generated seed for real accounts.
@toip-tools/trust-coreView sourceimport { seedFrom } from "@toip-tools/trust-core";
Declaration
seedFrom(label: string): Uint8Array;
Parameters
labelrequiredstringText encoded as UTF-8 before hashing.
Returns
Uint8Array<ArrayBufferLike>The 32-byte digest, suitable for deterministic fixtures and demos.