Skip to main content
Deno 2 is finally 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.
Go to Latest
variable instantiateRustWasm
import { instantiateRustWasm } from "https://deno.land/x/libauth@v2.0.0-alpha.6/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>