UNPKG

lightningdevkit

Version:
21 lines (20 loc) 786 B
import { CommonBase } from './CommonBase.mjs'; /** An implementation of EntropySource */ export interface EntropySourceInterface { /**Gets a unique, cryptographically-secure, random 32-byte value. This method must return a * different value each time it is called. */ get_secure_random_bytes(): Uint8Array; } /** * A trait that describes a source of entropy. */ export declare class EntropySource extends CommonBase { /** Creates a new instance of EntropySource from a given implementation */ static new_impl(arg: EntropySourceInterface): EntropySource; /** * Gets a unique, cryptographically-secure, random 32-byte value. This method must return a * different value each time it is called. */ get_secure_random_bytes(): Uint8Array; }