lightningdevkit
Version:
Lightning Development Kit
17 lines (16 loc) • 617 B
text/typescript
import { EntropySource } from '../structs/EntropySource.mjs';
import { CommonBase } from './CommonBase.mjs';
/**
* An implementation of [`EntropySource`] using ChaCha20.
*/
export declare class RandomBytes extends CommonBase {
/**
* Creates a new instance using the given seed.
*/
static constructor_new(seed: Uint8Array): RandomBytes;
/**
* Constructs a new EntropySource which calls the relevant methods on this_arg.
* This copies the `inner` pointer in this_arg and thus the returned EntropySource must be freed before this_arg is
*/
as_EntropySource(): EntropySource;
}