- Add GETTING_STARTED.md with quick start guide and development modes - Add INSTALL.sh automated installation script - Add INSTALLATION_CHECKLIST.md, INSTALLATION_SUCCESS.md, and INSTALLATION_SUMMARY.md - Add QUICK_REFERENCE.md for common commands - Add SETUP_GUIDE.md with detailed setup instructions - Update README.md with improved project overview - Add did-wallet app dependencies and node_modules
14 lines
761 B
TypeScript
14 lines
761 B
TypeScript
import { Cipher } from '../utils.js';
|
|
/**
|
|
* Secure PRNG. Uses `crypto.getRandomValues`, which defers to OS.
|
|
*/
|
|
export declare function randomBytes(bytesLength?: number): Uint8Array;
|
|
export declare function getWebcryptoSubtle(): any;
|
|
type RemoveNonceInner<T extends any[], Ret> = ((...args: T) => Ret) extends (arg0: any, arg1: any, ...rest: infer R) => any ? (key: Uint8Array, ...args: R) => Ret : never;
|
|
type RemoveNonce<T extends (...args: any) => any> = RemoveNonceInner<Parameters<T>, ReturnType<T>>;
|
|
type CipherWithNonce = ((key: Uint8Array, nonce: Uint8Array, ...args: any[]) => Cipher) & {
|
|
nonceLength: number;
|
|
};
|
|
export declare function managedNonce<T extends CipherWithNonce>(fn: T): RemoveNonce<T>;
|
|
export {};
|
|
//# sourceMappingURL=utils.d.ts.map
|