@polkadot/util-crypto
Version: 
A collection of useful crypto utilities for @polkadot
12 lines (11 loc) • 513 B
TypeScript
import type { DeriveJunction } from './DeriveJunction.js';
export interface ExtractResult {
    derivePath: string;
    password?: string;
    path: DeriveJunction[];
    phrase: string;
}
/**
 * @description Extracts the phrase, path and password from a SURI format for specifying secret keys `<secret>/<soft-key>//<hard-key>///<password>` (the `///password` may be omitted, and `/<soft-key>` and `//<hard-key>` maybe repeated and mixed).
 */
export declare function keyExtractSuri(suri: string): ExtractResult;