Wyle.Gong-巩文昕 2623f9aa09 ui
2025-04-23 14:47:06 +08:00

22 lines
676 B
TypeScript

import { Prefix } from "./nkeys";
/**
* @ignore
*/
export interface SeedDecode {
prefix: Prefix;
buf: Uint8Array;
}
/**
* @ignore
*/
export declare class Codec {
static encode(prefix: Prefix, src: Uint8Array): Uint8Array;
static encodeSeed(role: Prefix, src: Uint8Array): Uint8Array;
static decode(expected: Prefix, src: Uint8Array): Uint8Array;
static decodeSeed(src: Uint8Array): SeedDecode;
static _encode(seed: boolean, role: Prefix, payload: Uint8Array): Uint8Array;
static _decode(src: Uint8Array): Uint8Array;
static _encodePrefix(kind: Prefix, role: Prefix): Uint8Array;
static _decodePrefix(raw: Uint8Array): Uint8Array;
}