Explorar el Código

Update version to 0.3.0

- Depend on `sigma-proofs` 0.4.1, `group` 0.14, `rand` 0.10

- The `rng` parameter of the `prove` API generated by `sigma-compiler`
  changed from type `&mut (impl CryptoRng + RngCore)` to type `&mut
  (impl CryptoRng + Rng)` (due to the update to `rand` version 0.10)

- The return type of the `prove` API generated by `sigma-compiler`
  changed from `sigma_proofs::errors::Result<Vec<u8>>` to
  `Result<Vec<u8>, sigma_proofs::errors::InvalidWitness>` (due to the
  update to `sigma-proofs` 0.4.1)

- The return type of the `verify` API generated by `sigma-compiler`
  changed from `sigma_proofs::errors::Result<()>` to `Result<(),
  sigma_proofs::errors::VerificationError>` (due to the update to
  `sigma-proofs` 0.4.1)

- The update to `sigma-proofs` 0.4.1 means that proofs produced by
  previous versions of `sigma-compiler` will not verify with version
  0.3.0
Ian Goldberg hace 1 semana
padre
commit
e1e2d16ef6

+ 21 - 0
CHANGELOG.md

@@ -5,6 +5,26 @@ All notable changes to this project will be documented in this file.
 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
+## [0.3.0] - 2026-11-10
+
+### Changes
+
+- Depend on `sigma-proofs` 0.4.1, `group` 0.14, `rand` 0.10
+- The `rng` parameter of the `prove` API generated by `sigma-compiler`
+  changed from type `&mut (impl CryptoRng + RngCore)` to type `&mut
+  (impl CryptoRng + Rng)` (due to the update to `rand` version 0.10)
+- The return type of the `prove` API generated by `sigma-compiler`
+  changed from `sigma_proofs::errors::Result<Vec<u8>>` to
+  `Result<Vec<u8>, sigma_proofs::errors::InvalidWitness>` (due to the
+  update to `sigma-proofs` 0.4.1)
+- The return type of the `verify` API generated by `sigma-compiler`
+  changed from `sigma_proofs::errors::Result<()>` to `Result<(),
+  sigma_proofs::errors::VerificationError>` (due to the update to
+  `sigma-proofs` 0.4.1)
+- The update to `sigma-proofs` 0.4.1 means that proofs produced by
+  previous versions of `sigma-compiler` will not verify with version
+  0.3.0
+
 ## [0.2.3] - 2026-08-04
 
 ### Changes
@@ -63,6 +83,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 - Initial release
 
+[0.3.0]: https://git-crysp.uwaterloo.ca/SigmaProtocol/sigma-compiler/src/0.3.0
 [0.2.3]: https://git-crysp.uwaterloo.ca/SigmaProtocol/sigma-compiler/src/0.2.3
 [0.2.2]: https://git-crysp.uwaterloo.ca/SigmaProtocol/sigma-compiler/src/0.2.2
 [0.2.1]: https://git-crysp.uwaterloo.ca/SigmaProtocol/sigma-compiler/src/0.2.1

+ 3 - 3
Cargo.lock

@@ -613,7 +613,7 @@ dependencies = [
 
 [[package]]
 name = "sigma-compiler"
-version = "0.2.3"
+version = "0.3.0"
 dependencies = [
  "curve25519-dalek",
  "group",
@@ -626,7 +626,7 @@ dependencies = [
 
 [[package]]
 name = "sigma-compiler-core"
-version = "0.2.3"
+version = "0.3.0"
 dependencies = [
  "clap",
  "prettyplease",
@@ -637,7 +637,7 @@ dependencies = [
 
 [[package]]
 name = "sigma-compiler-derive"
-version = "0.2.3"
+version = "0.3.0"
 dependencies = [
  "sigma-compiler-core",
  "syn 2.0.119",

+ 4 - 3
Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "sigma-compiler"
-version = "0.2.3"
+version = "0.3.0"
 edition = "2021"
 license = "MIT"
 repository = "https://git-crysp.uwaterloo.ca/SigmaProtocol/sigma-compiler"
@@ -9,7 +9,7 @@ description = "Crate for automatically generating code for sigma zero-knowledge
 [dependencies]
 group = "0.14"
 rand = "0.10"
-sigma-compiler-derive = "=0.2.3"
+sigma-compiler-derive = "=0.3.0"
 sigma-proofs = "0.4.1"
 subtle = "2.6"
 
@@ -24,6 +24,7 @@ dump = [ "sigma-compiler-derive/dump" ]
 # default = ["dump"]
 
 [patch.crates-io]
-# sigma-proofs = { path = "../sigma-proofs" }
 sigma-compiler-derive = { path = "sigma-compiler-derive" }
 sigma-compiler-core = { path = "sigma-compiler-core" }
+# sigma-proofs = { path = "../sigma-proofs" }
+# spongefish = { path = "../spongefish/spongefish" }

+ 6 - 4
README.md

@@ -1,5 +1,7 @@
-`sigma-compiler` by Ian Goldberg, iang@uwaterloo.ca  
-Version 0.2.3, 2026-08-04
+`sigma-compiler`  
+Ian Goldberg, iang@uwaterloo.ca  
+Michele Orrù, m@orru.net  
+Version 0.3.0, 2026-11-10
 
 This crate provides the `sigma_compiler!` macro as an easy interface
 to the [`sigma-proofs`](https://crates.io/crates/sigma-proofs) API
@@ -23,7 +25,7 @@ The pieces are as follows:
      structures and code associated with this sigma protocol.
   - `<Grp>`: an optional indication of the mathematical group to use
     (a set of `Point`s and associated `Scalar`s) for this sigma
-    protocol.  The group must implement the [`PrimeGroup`] 
+    protocol.  The group must implement the [`PrimeGroup`]
     trait. If `<Grp>` is omitted, it defaults to assuming there is
     a group called `G` in the current scope.
   - `scalar_list` is a list of variables representing `Scalar`s.
@@ -161,7 +163,7 @@ The pieces are as follows:
      component statements are true; an `OR` statement is true when at
      least one of its component statements is true; a `THRESH` statement
      is true when at least `t` of its component statements are true.
-   
+
 
 The macro creates a submodule with the name specified by
 `proto_name`.  This module contains:

+ 1 - 1
sigma-compiler-core/Cargo.lock

@@ -146,7 +146,7 @@ dependencies = [
 
 [[package]]
 name = "sigma-compiler-core"
-version = "0.2.3"
+version = "0.3.0"
 dependencies = [
  "clap",
  "prettyplease",

+ 1 - 1
sigma-compiler-core/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "sigma-compiler-core"
-version = "0.2.3"
+version = "0.3.0"
 edition = "2021"
 license = "MIT"
 repository = "https://git-crysp.uwaterloo.ca/SigmaProtocol/sigma-compiler"

+ 4 - 2
sigma-compiler-core/README.md

@@ -1,5 +1,7 @@
-`sigma-compiler-core` by Ian Goldberg, iang@uwaterloo.ca  
-Version 0.2.3, 2026-08-04
+`sigma-compiler-core`  
+Ian Goldberg, iang@uwaterloo.ca  
+Michele Orrù, m@orru.net  
+Version 0.3.0, 2026-11-10
 
 This crate provides the core functionality for the macros in the
 [`sigma-compiler`](https://crates.io/crates/sigma-compiler) crate.

+ 2 - 2
sigma-compiler-derive/Cargo.lock

@@ -146,7 +146,7 @@ dependencies = [
 
 [[package]]
 name = "sigma-compiler-core"
-version = "0.2.3"
+version = "0.3.0"
 dependencies = [
  "clap",
  "prettyplease",
@@ -157,7 +157,7 @@ dependencies = [
 
 [[package]]
 name = "sigma-compiler-derive"
-version = "0.2.3"
+version = "0.3.0"
 dependencies = [
  "sigma-compiler-core",
  "syn",

+ 2 - 2
sigma-compiler-derive/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "sigma-compiler-derive"
-version = "0.2.3"
+version = "0.3.0"
 edition = "2021"
 license = "MIT"
 repository = "https://git-crysp.uwaterloo.ca/SigmaProtocol/sigma-compiler"
@@ -10,7 +10,7 @@ description = "Derive macros for the sigma-compiler crate"
 proc-macro = true
 
 [dependencies]
-sigma-compiler-core = "=0.2.3"
+sigma-compiler-core = "=0.3.0"
 syn = "2.0"
 
 [features]

+ 4 - 2
sigma-compiler-derive/README.md

@@ -1,5 +1,7 @@
-`sigma-compiler-derive` by Ian Goldberg, iang@uwaterloo.ca  
-Version 0.2.3, 2026-08-04
+`sigma-compiler-derive`  
+Ian Goldberg, iang@uwaterloo.ca  
+Michele Orrù, m@orru.net  
+Version 0.3.0, 2026-11-10
 
 This crate provides the derive macros for the
 [`sigma-compiler`](https://crates.io/crates/sigma-compiler) crate.