Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Latest commit

 

History

History
24 lines (15 loc) · 454 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 454 Bytes

@iota/crypto.js

The code in the package is provides crypto implementations used by other packages.

Install

npm install @iota/crypto.js

Usage

import { Converter } from "@iota/util.js";
import { Blake2b } from "@iota/crypto.js";

const sum = Blake2b.sum512(Converter.utf8ToBytes("abc"));

console.log(Converter.bytesToHex(sum));

API

The class and method documentation can be found in ./docs/api.md