UNPKG

lisk-framework

Version:

Lisk blockchain application platform

11 lines (10 loc) 623 B
/// <reference types="node" /> import { BlockAssets, ImmutableMethodContext } from '../../state_machine'; import { BaseMethod } from '../base_method'; import { NamedRegistry } from '../named_registry'; export declare class RandomMethod extends BaseMethod { private readonly _moduleName; constructor(stores: NamedRegistry, events: NamedRegistry, moduleName: string); isSeedRevealValid(methodContext: ImmutableMethodContext, generatorAddress: Buffer, blockAssets: BlockAssets): Promise<boolean>; getRandomBytes(methodContext: ImmutableMethodContext, height: number, numberOfSeeds: number): Promise<Buffer>; }