Initial commit (by create-cloudflare CLI)

This commit is contained in:
Jonas_Jones 2023-09-12 00:20:38 +02:00
parent 8cb86120f1
commit fff961078a
1777 changed files with 1011798 additions and 0 deletions

View file

@ -0,0 +1,51 @@
/* tslint:disable */
/* eslint-disable */
/**
* @param {Uint8Array} data
* @param {Uint8Array} out
*/
export function hash(data: Uint8Array, out: Uint8Array): void;
/**
* @returns {Blake3Hash}
*/
export function create_hasher(): Blake3Hash;
/**
* @param {Uint8Array} key_slice
* @returns {Blake3Hash}
*/
export function create_keyed(key_slice: Uint8Array): Blake3Hash;
/**
* @param {string} context
* @returns {Blake3Hash}
*/
export function create_derive(context: string): Blake3Hash;
/**
*/
export class Blake3Hash {
free(): void;
/**
* @returns {HashReader}
*/
reader(): HashReader;
/**
* @param {Uint8Array} input_bytes
*/
update(input_bytes: Uint8Array): void;
/**
* @param {Uint8Array} out
*/
digest(out: Uint8Array): void;
}
/**
*/
export class HashReader {
free(): void;
/**
* @param {Uint8Array} bytes
*/
fill(bytes: Uint8Array): void;
/**
* @param {BigInt} position
*/
set_position(position: BigInt): void;
}

View file

@ -0,0 +1,2 @@
import * as wasm from "./blake3_js_bg.wasm";
export * from "./blake3_js_bg.js";

Binary file not shown.

View file

@ -0,0 +1,12 @@
{
"name": "blake3-js",
"version": "0.1.0",
"files": [
"blake3_js_bg.wasm",
"blake3_js.js",
"blake3_js.d.ts"
],
"module": "blake3_js.js",
"types": "blake3_js.d.ts",
"sideEffects": false
}