mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 07:57:59 +00:00
13 lines
608 B
TypeScript
13 lines
608 B
TypeScript
import type { EncryptedJsonEncoding } from '@pezkuwi/util-crypto/types';
|
|
/**
|
|
* Decode a pair, taking into account the generation-specific formats and headers
|
|
*
|
|
* For divisor/headers, don't rely on the magic being static. These will
|
|
* change between generations, aka with the long-awaited 4th generation
|
|
* of the format. The external decode interface is the only way to use and decode these.
|
|
**/
|
|
export declare function decodePair(passphrase?: string, encrypted?: Uint8Array | null, _encType?: EncryptedJsonEncoding | EncryptedJsonEncoding[]): {
|
|
publicKey: Uint8Array;
|
|
secretKey: Uint8Array;
|
|
};
|