New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

wallycore

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wallycore

JavaScript bindings for libwally

latest
npmnpm
Version
1.5.1
Version published
Weekly downloads
23
-69.33%
Maintainers
1
Weekly downloads
 
Created
Source

libwally JS

Official Blockstream WASM-based JavaScript bindings for libwally, for nodejs and the browser.

Installation

$ npm install wallycore

Example use

With ES modules:

import wally from 'wallycore'

const word = wally.bip39_get_word(null, 10)

const script = wally.address_to_scriptpubkey("1EMBaSSyxMQPV2fmUsdB7mMfMoocgfiMNw", wally.WALLY_NETWORK_BITCOIN_MAINNET)

const tx = wally.tx_from_hex('020000000100000000000000000000000000000000000000000000000000000000000000000000000000fdffffff0101000000000000000000000000', 0)
console.log(wally.tx_get_txid(tx).toString('hex'))
wally.tx_free(tx)

If you're using CommonJS, the module can be loaded asynchronously using const wally = await import('wallycore') or import('wallycore').then(wally => { ... }).

For browser use, you may use a bundler like webpack, or use the pre-bundled wallycore.bundle.js file which exposes a global WallyInit promise that resolves to the module. For example:

<script src="wallycore/wallycore.bundle.min.js"></script>
<script>
WallyInit.then(wally => {
    console.log(wally.bip39_get_word(null, 10))
})
// or `const wally = await WallyInit`
</script>

Limitations

  • BIP38 (passphrase-protected keys) related functions are disabled due to WASM memory restrictions, which are insufficient for running Scrypt with the BIP38 parameters.

License

BSD/MIT

FAQs

Package last updated on 22 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts