Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/libauth/src/lib/bin/hashes.ts>instantiateRustWasm

An ultra-lightweight, zero-dependency JavaScript library for Bitcoin Cash, Bitcoin, and Bitauth applications.
Latest
variable instantiateRustWasm
import { instantiateRustWasm } from "https://deno.land/x/libauth@v2.0.0-alpha.9/src/lib/bin/hashes.ts";

Note, most of this method is translated and boiled-down from the wasm-pack workflow. Significant changes to wasm-bindgen or wasm-pack build will likely require modifications to this method.

type

(
webassemblyBytes: ArrayBuffer,
expectedImportModuleName: string,
hashExportName: string,
initExportName: string,
updateExportName: string,
finalExportName: string,
) => Promise<HashFunction>