mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 04:27:59 +00:00
12 lines
513 B
TypeScript
12 lines
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;
|