Skip to content

Releases: ergoplatform/sigma-rust

ergo-lib-v0.28.0

09 Aug 15:09
ergo-lib-v0.28.0
635bbac
Compare
Choose a tag to compare

Breaking Changes

ErgoStateContext::new now requires Parameters for blockchain parameters. For consensus-critical applications it is important that Parameters represents the latest state of the blockchain. For most users however, using Parameters::default() will be sufficient as this will not affect signing:

- let state_context = ErgoStateContext::new(pre_header, headers);
+ let state_context = ErgoStateContext::new(pre_header, headers, Parameters::default());

Added

What's Changed

New Contributors

Full Changelog: ergo-lib-v0.27.1...ergo-lib-v0.28.0

v0.26.0

13 Oct 09:04
ergo-lib-v0.26.0
417b928
Compare
Choose a tag to compare

[0.26.0] - 2023-10-13

Added

  • Add pretty_print method to ErgoTree and Expr #729

Fixed

  • Reset interpreter env after lambda call #728

v0.25.0

09 Oct 13:03
ergo-lib-v0.25.0
1d41e64
Compare
Choose a tag to compare

[0.25.0] - 2023-10-09

Added

  • Revamped error messages for ErgoTree evaluation errors #720

Fixed

  • fix Coll.slice to gracefully handle indices out of bounds #725

v0.24.1

20 Sep 12:34
ergo-lib-v0.24.1
5e77f04
Compare
Choose a tag to compare

[0.24.1] - 2023-09-20

Added

  • add Coll[Long] parsing from an array of strings in Wasm API Constant.from_js;
  • impl From for EcPoint;

Fixed

  • updated wasm-bindgen with a fix for wrong memory address when exceeding 2GB;

v0.24.0

12 May 11:44
ergo-lib-v0.24.0
4dbb39d
Compare
Choose a tag to compare

[0.24.0] - 2023-05-12

Added

  • Introduce Wallet::sign_tx_input; by @greenhat in #689
  • Introduce transaction::verify_tx_input_proof by @greenhat in #691
  • Tuple expression support in register values by @greenhat in #702
  • Include backtrace on error in Expr::check_post_eval_tpe by @greenhat in #713
  • enable TC39 weak ref support in wasm-bindgen by @greenhat in #682

Changed

  • update wasm-pack build command to use --dev profile for *-alpha builds; by @greenhat in #697

Fixed

  • fix wrong AvlTree method ids and missing PropertyCall type specialization by @greenhat in #696
  • Store error message in RegisterValue::Unparseable and show it on writer-based serialization error by @greenhat in #699

v0.23.0

08 Feb 12:16
ergo-lib-v0.23.0
588f940
Compare
Choose a tag to compare

[0.23.0] - 2023-02-08

Added

  • serde serialization for NetworkAddress #667;
  • expose constant value and type in C bindings #669
  • Parse tx input's spending proof as either string or struct (explorer API) #671;
  • Add FullBlock type #678;
  • Validate parsed ErgoTree header, check no bytes are left unconsumed after ErgoTree is parsed #684;
  • Preserve ContextExtension items order in JSON encoding #687;

Fixed

  • Fix scientific notion deserialization with powSolutions d parameter #668;

v0.22.0

28 Dec 12:59
ergo-lib-v0.22.0
4cdba18
Compare
Choose a tag to compare

[0.22.0] - 2022-12-28

Added

  • Diffie-Hellman tuple secret support in wallet API #665

Fixed

  • make various types easier to use in a multithread environment (remove Rc, switch to Arc, implement Copy, etc.);

v0.21.1

21 Nov 13:47
ergo-lib-v0.21.1
b81f123
Compare
Choose a tag to compare

[0.21.1] - 2022-11-21

Added

  • ErgoBox::from_box_candidate in Wasm API #651;

Changed

  • unparseable register value should not prevent parsing ErgoBox from JSON #647;
  • rename NonMandatoryRegisters:get to NonMandatoryRegisters::get_constant and return None if the register value is unparseable #647;
  • add NonMandatoryRegisters:get returning new RegisterValue holding either a Constant or unparseable bytes #647;

v0.21.0

27 Oct 13:39
ergo-lib-v0.21.0
e6483c6
Compare
Choose a tag to compare

[0.21.0] - 2022-10-27

Changed

  • add type and exports fields in package.json #637;
  • Fix bottom-up and top-down traversals in the prover (affects nested sigma conjectures) #644;
  • enable wasm-opt pass, make compiler optional to minimize wasm binary #646;

v0.20.1

08 Sep 09:11
ergo-lib-wasm-v0.20.1
93f45d3
Compare
Choose a tag to compare

Fixed (ergo-lib-wasm v0.20.1)

  • Fix field names for Transaction, UnsignedTransaction in EIP-12 format (.to_js_eip12()) #627;