Skip to content

Releases: Firaenix/bsv-wasm

Release 1.3.0 Beta 5

06 Mar 23:58
Compare
Choose a tag to compare
Release 1.3.0 Beta 5 Pre-release
Pre-release

Added custom K signing and private key recovery from known signature + K.

Release 1.3.0 Beta 4

06 Jan 02:32
Compare
Choose a tag to compare
Release 1.3.0 Beta 4 Pre-release
Pre-release
1.3.0-beta.4

fix missing wasm_bindgen_test

Release 1.3.0 Beta 3

07 Dec 19:03
Compare
Choose a tag to compare
Release 1.3.0 Beta 3 Pre-release
Pre-release
1.3.0-beta.3

 publish -- --features wasm-bindgen-exports

Release 1.3.0 Beta 2

07 Dec 18:35
Compare
Choose a tag to compare
Release 1.3.0 Beta 2 Pre-release
Pre-release

What's Changed

Full Changelog: 1.2.3...1.3.0-beta.2

Release 1.3.0 Beta 1

06 Dec 16:42
Compare
Choose a tag to compare
Release 1.3.0 Beta 1 Pre-release
Pre-release

What's Changed

Full Changelog: 1.2.3...1.3.0-beta.1

Release 1.2.3

30 Nov 06:13
Compare
Choose a tag to compare
  • (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

28 Nov 09:44
Compare
Choose a tag to compare

Remove wee_alloc global allocator which was causing memory leaks.

Release 1.2.1

12 Nov 07:11
Compare
Choose a tag to compare

Fix some annoying WASM warnings when importing into Webpack

Release 1.2.0

12 Nov 06:32
2897b49
Compare
Choose a tag to compare

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.
    • 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

06 Sep 05:57
Compare
Choose a tag to compare
Release 1.2.0 Beta 4 Pre-release
Pre-release

Removes some unnecessary dependencies