Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Blake2bOperation

import { Blake2bOperation } from "https://raw.githubusercontent.com/marigold-dev/tzstamp/0.3.4/proof/mod.ts";

BLAKE2b hash operation

class Blake2bOperation extends Operation {
constructor(length?, key?: Uint8Array);
readonly key?: Uint8Array;
readonly length?: number;
 
commit(input: Uint8Array): Uint8Array;
toJSON(): Blake2bTemplate;
toString(): string;
}

§Extends

§
Operation
[src]

§Constructors

§
new Blake2bOperation(length?, key?: Uint8Array)
[src]

Throws a RangeError if either of the optional length or key fields are incompatible with the [BLAKE2b] hashing algorithm.

@param length

Digest length. Defaults to 32

@param key

Hashing key

§Properties

§
key: Uint8Array
[src]
§
length: number
[src]

§Methods

§
commit(input: Uint8Array): Uint8Array
[src]
§
toString(): string
[src]