Files
pezkuwi-common/packages/keyring/cjs/pair/decode.d.ts
T

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;
};