UNPKG

@ecash/lib

Version:

Library for eCash transaction building

18 lines (15 loc) 518 B
// Copyright (c) 2024 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. import { __setEcc } from './ecc.js'; import * as ffi from './ffi/ecash_lib_wasm_nodejs.js'; import { __setHashes } from './hash.js'; __setEcc(new ffi.Ecc()); __setHashes({ sha256: ffi.sha256, sha256d: ffi.sha256d, shaRmd160: ffi.shaRmd160, sha512: ffi.sha512, Sha256H: ffi.Sha256H, Sha512H: ffi.Sha512H, });