Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/earthstar/src/crypto/updatable_hash.ts>UpdatableHash

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
class UpdatableHash
import { UpdatableHash } from "https://deno.land/x/earthstar@v10.0.0-alpha.2/src/crypto/updatable_hash.ts";

Constructors

new
UpdatableHash(opts: UpdatableHashOpts<HashType>)

Properties

private
hash: HashType
private
internalDigest: UpdatableHashOpts<HashType>["digest"]
private
internalUpdate: UpdatableHashOpts<HashType>["update"]

Methods

digest(): Uint8Array

Returns the digest of the hash. The result is not encoded to base32.

update(data: Uint8Array): HashType