2.1.1 • Published 1 year ago

@digitalbazaar/minimal-digest v2.1.1

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
1 year ago

Minimal Digest (@digitalbazaar/minimal-digest)

Build status NPM Version

A minimal hash/digest JS library for Node.js and the browser.

Table of Contents

Background

TBD

Security

TBD

Install

  • Browsers and Node.js 14+ are supported.

NPM

To install via NPM:

npm install @digitalbazaar/minimal-digest

Development

To install locally (for development):

git clone https://github.com/digitalbazaar/minimal-digest.git
cd minimal-digest
npm install

Usage

import {digestMultibase} from '@digitalbazaar/minimal-digest';

const data = {key: 'value'};
// defaults to sha-256 hash, 'urdca2015' canonicalization for objects,
// base58btc encoding
const result = await digestMultibase({data, documentLoader});

Contribute

See the contribute file!

PRs accepted.

If editing the Readme, please conform to the standard-readme specification.

Commercial Support

Commercial support for this library is available upon request from Digital Bazaar: support@digitalbazaar.com

License

New BSD License (3-clause) © Digital Bazaar