Releases: Firaenix/bsv-wasm
Releases · Firaenix/bsv-wasm
Release 1.3.0 Beta 5
Added custom K signing and private key recovery from known signature + K.
Release 1.3.0 Beta 4
1.3.0-beta.4 fix missing wasm_bindgen_test
Release 1.3.0 Beta 3
1.3.0-beta.3 publish -- --features wasm-bindgen-exports
Release 1.3.0 Beta 2
Release 1.3.0 Beta 1
Release 1.2.3
- (Rust only) Remove WASM dependencies from non WASM targets.
- Added new methods to Script
encode_pushdata
(Generates a Script encoded OP_PUSHDATA buffer from the provided data)get_pushdata_bytes
(Generates a OP_PUSHDATA varint prefix buffer based on a provided length)
Release 1.2.2
Remove wee_alloc global allocator which was causing memory leaks.
Release 1.2.1
Fix some annoying WASM warnings when importing into Webpack
Release 1.2.0
Features:
- Tx.getOutpoints() - Returns a Uint8Array[] with all of the outpoints from the TxIns on the Transaction
- No longer requires Rust nightly to build
- Extended Transaction Format (TX+)
-
Adds optional fields to TxIn
- satoshis:
Option<u64>
- txin.getSatoshis()
- Satoshis field on TxIn makes it easy to do calculations and signing for transactions that get passed around without having to consult a UTXO store. If you serialise the Tx to JSON or toCompactBytes() (CBOR), it adds the extra fields when available.
- unlocking_script:
Option<Script>
- txin.getUnlockingScriptBytes()
- Unlocking Script field on TxIn allows you to pass around partially signed transactions without having to continually change the script sig. This field will automatically be prepended to the script_sig when calling .toBytes() or .toHex() to enable a convenient way to export the transaction to Bitcoin network format.
- satoshis:
-
Adds convenience methods for querying Total Satoshis in and Total Satoshis out
- Tx.satoshisIn() - Returns the total amount of satoshis in the Inputs. If any of the inputs have no specified satoshis, method returns null
- Tx.satoshisOut() - Returns the total amount of satoshis in the Outputs.
-
Adds ability to match specific TxIns and TxOuts based on a Match Criteria
- Tx.matchInput() - Returns index of the first input that matches the given criteria
- Tx.matchOutput() - Returns index of the first output that matches the given criteria
- Tx.matchInputs() - Returns all indices of inputs that match the given criteria
- Tx.matchOutputs() - Returns all indices of outputs that match the given criteria
-
Breaking Changes:
- Change all references of getPublicKey to toPublicKey
- ECIESCiphertext: Change extractCiphertext to getCiphertext
- ECIESCiphertext: Change extractHMAC to getHMAC
Bug Fixes:
- Fix Safari 14 not supporting BigUint64Array
- Fix OP_PUSHDATA trying to read more bytes than necessary
Release 1.2.0 Beta 4
Removes some unnecessary dependencies