@ethersphere/bee-js
Version:
Javascript client for Bee
16 lines (15 loc) • 671 B
TypeScript
import { Chunk } from 'cafe-utility';
import { EnvelopeWithBatchId } from '../types';
import { BatchId, PrivateKey } from '../utils/typed-bytes';
export declare class Stamper {
signer: PrivateKey;
batchId: BatchId;
buckets: Uint32Array;
depth: number;
maxSlot: number;
private constructor();
static fromBlank(signer: PrivateKey | Uint8Array | string, batchId: BatchId | Uint8Array | string, depth: number): Stamper;
static fromState(signer: PrivateKey | Uint8Array | string, batchId: BatchId | Uint8Array | string, buckets: Uint32Array, depth: number): Stamper;
stamp(chunk: Chunk): EnvelopeWithBatchId;
getState(): Uint32Array;
}