Skip to content

Commit b26d0db

Browse files
authored
Merge branch 'main' into florian/prettier-for-bindings
2 parents d742d81 + edfd391 commit b26d0db

File tree

8 files changed

+16
-103
lines changed

8 files changed

+16
-103
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1515
_Security_ in case of vulnerabilities.
1616
-->
1717

18-
## [Unreleased](https://github.com/o1-labs/o1js/compare/4e23a60...HEAD)
18+
## [Unreleased](https://github.com/o1-labs/o1js/compare/3eef10d...HEAD)
19+
20+
## [2.6.0](https://github.com/o1-labs/o1js/compare/4e23a60...3eef10d) - 2025-05-30
1921

2022
### Added
2123

2224
- [PR! 1905](https://github.com/o1-labs/o1js/pull/1905) API support for circuit chunking
2325
- still requires memory optimizations to be fully functional, and
2426
- proof-systems version still needs to be updated to include [this commit](https://github.com/o1-labs/proof-systems/pull/3222/commits/8c37c293f8159eed3676964ba47fc5dc0ae6ea1e)
25-
- that fixed the zero knowledge rows mismatch across Kimchi WASM bindings
27+
- [PR !1848](https://github.com/o1-labs/o1js/pull/1848) Dynamic array provable type
2628

2729
## [2.5.0](https://github.com/o1-labs/o1js/compare/6ff7f8470a...4e23a60)
2830

@@ -32,8 +34,6 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
3234

3335
### Added
3436

35-
- [PR !1848](https://github.com/o1-labs/o1js/pull/1848) Dynamic array provable type
36-
3737
- [PR !2076](https://github.com/o1-labs/o1js/pull/2076)
3838
- o1js-bindings is no longer a submodule (same directory structure)
3939
- compiled artifacts are now gitignored

npmDepsHash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sha256-m3NmZHhCuQxDpYHmB3sRLvitqu2bzbnNaAKY2KOCSIM=
1+
sha256-BbQaG1unSH42VqtTjETCpm7lU29C1DskfXAJbYBvO5A=

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "o1js",
33
"description": "TypeScript framework for zk-SNARKs and zkApps",
4-
"version": "2.5.0",
4+
"version": "2.6.0",
55
"license": "Apache-2.0",
66
"homepage": "https://github.com/o1-labs/o1js/",
77
"repository": {

src/bindings/crypto/bindings/bindings.unit-test.ts

Lines changed: 2 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,13 @@ function option<T, S>(spec: Spec<T, S>): Spec<MlOption<T>, S | undefined> {
9090
};
9191
}
9292

93-
equivalentRecord(Bigint256Bindings, wasm, {
93+
equivalentRecord(Bigint256Bindings as Omit<typeof Bigint256Bindings, "caml_bigint_256_print" | "caml_bigint_256_to_string">, wasm, {
9494
caml_bigint_256_of_numeral: undefined, // TODO
9595
caml_bigint_256_of_decimal_string: { from: [decimalString], to: bigint256 },
9696
caml_bigint_256_num_limbs: { from: [], to: number },
9797
caml_bigint_256_bytes_per_limb: { from: [], to: number },
9898
caml_bigint_256_div: { from: [bigint256, bigint256], to: bigint256 },
9999
caml_bigint_256_compare: { from: [bigint256, bigint256], to: number },
100-
caml_bigint_256_print: undefined, // this would spam the console
101-
caml_bigint_256_to_string: { from: [bigint256], to: decimalString },
102100
caml_bigint_256_test_bit: {
103101
from: [bigint256, numberLessThan(256)],
104102
to: boolean,
@@ -108,97 +106,8 @@ equivalentRecord(Bigint256Bindings, wasm, {
108106
caml_bigint_256_deep_copy: { from: [bigint256], to: bigint256 },
109107
});
110108

111-
equivalentRecord(
112-
FpBindings as Omit<
113-
typeof FpBindings,
114-
| 'caml_pasta_fp_copy'
115-
| 'caml_pasta_fp_mut_add'
116-
| 'caml_pasta_fp_mut_sub'
117-
| 'caml_pasta_fp_mut_mul'
118-
| 'caml_pasta_fp_mut_square'
119-
>,
120-
wasm,
121-
{
122-
caml_pasta_fp_size_in_bits: { from: [], to: number },
123-
caml_pasta_fp_size: { from: [], to: fp },
124-
caml_pasta_fp_add: { from: [fp, fp], to: fp },
125-
caml_pasta_fp_sub: { from: [fp, fp], to: fp },
126-
caml_pasta_fp_negate: { from: [fp], to: fp },
127-
caml_pasta_fp_mul: { from: [fp, fp], to: fp },
128-
caml_pasta_fp_div: { from: [fp, fp], to: fp },
129-
caml_pasta_fp_inv: { from: [fp], to: option(fp) },
130-
caml_pasta_fp_square: { from: [fp], to: fp },
131-
caml_pasta_fp_is_square: { from: [fp], to: boolean },
132-
caml_pasta_fp_sqrt: { from: [fp], to: option(fp) },
133-
caml_pasta_fp_of_int: { from: [uint31], to: fp },
134-
caml_pasta_fp_to_string: { from: [fp], to: decimalString },
135-
caml_pasta_fp_of_string: { from: [decimalString], to: fp },
136-
caml_pasta_fp_print: undefined, // this would spam the console
137-
// these aren't defined in Rust
138-
// caml_pasta_fp_copy: { from: [fp, fp], to: unit },
139-
// caml_pasta_fp_mut_add: { from: [fp, fp], to: unit },
140-
// caml_pasta_fp_mut_sub: { from: [fp, fp], to: unit },
141-
// caml_pasta_fp_mut_mul: { from: [fp, fp], to: unit },
142-
// caml_pasta_fp_mut_square: { from: [fp], to: unit },
143-
caml_pasta_fp_compare: { from: [fp, fp], to: number },
144-
caml_pasta_fp_equal: { from: [fp, fp], to: boolean },
145-
caml_pasta_fp_random: undefined, // random outputs won't match
146-
caml_pasta_fp_rng: undefined, // random outputs won't match
147-
caml_pasta_fp_to_bigint: { from: [fp], to: bigint256 },
148-
caml_pasta_fp_of_bigint: { from: [bigint256], to: fp },
149-
caml_pasta_fp_two_adic_root_of_unity: { from: [], to: fp },
150-
caml_pasta_fp_domain_generator: { from: [numberLessThan(32)], to: fp },
151-
caml_pasta_fp_to_bytes: undefined, // not implemented
152-
caml_pasta_fp_of_bytes: undefined, // not implemented
153-
caml_pasta_fp_deep_copy: { from: [fp], to: fp },
154-
}
155-
);
156109

157-
equivalentRecord(
158-
FqBindings as Omit<
159-
typeof FqBindings,
160-
| 'caml_pasta_fq_copy'
161-
| 'caml_pasta_fq_mut_add'
162-
| 'caml_pasta_fq_mut_sub'
163-
| 'caml_pasta_fq_mut_mul'
164-
| 'caml_pasta_fq_mut_square'
165-
>,
166-
wasm,
167-
{
168-
caml_pasta_fq_size_in_bits: { from: [], to: number },
169-
caml_pasta_fq_size: { from: [], to: fq },
170-
caml_pasta_fq_add: { from: [fq, fq], to: fq },
171-
caml_pasta_fq_sub: { from: [fq, fq], to: fq },
172-
caml_pasta_fq_negate: { from: [fq], to: fq },
173-
caml_pasta_fq_mul: { from: [fq, fq], to: fq },
174-
caml_pasta_fq_div: { from: [fq, fq], to: fq },
175-
caml_pasta_fq_inv: { from: [fq], to: option(fq) },
176-
caml_pasta_fq_square: { from: [fq], to: fq },
177-
caml_pasta_fq_is_square: { from: [fq], to: boolean },
178-
caml_pasta_fq_sqrt: { from: [fq], to: option(fq) },
179-
caml_pasta_fq_of_int: { from: [uint31], to: fq },
180-
caml_pasta_fq_to_string: { from: [fq], to: decimalString },
181-
caml_pasta_fq_of_string: { from: [decimalString], to: fq },
182-
caml_pasta_fq_print: undefined, // this would spam the console
183-
// these aren't defined in Rust
184-
// caml_pasta_fq_copy: { from: [fq, fq], to: unit },
185-
// caml_pasta_fq_mut_add: { from: [fq, fq], to: unit },
186-
// caml_pasta_fq_mut_sub: { from: [fq, fq], to: unit },
187-
// caml_pasta_fq_mut_mul: { from: [fq, fq], to: unit },
188-
// caml_pasta_fq_mut_square: { from: [fq], to: unit },
189-
caml_pasta_fq_compare: { from: [fq, fq], to: number },
190-
caml_pasta_fq_equal: { from: [fq, fq], to: boolean },
191-
caml_pasta_fq_random: undefined, // random outputs won't match
192-
caml_pasta_fq_rng: undefined, // random outputs won't match
193-
caml_pasta_fq_to_bigint: { from: [fq], to: bigint256 },
194-
caml_pasta_fq_of_bigint: { from: [bigint256], to: fq },
195-
caml_pasta_fq_two_adic_root_of_unity: { from: [], to: fq },
196-
caml_pasta_fq_domain_generator: { from: [numberLessThan(32)], to: fq },
197-
caml_pasta_fq_to_bytes: undefined, // not implemented
198-
caml_pasta_fq_of_bytes: undefined, // not implemented
199-
caml_pasta_fq_deep_copy: { from: [fq], to: fq },
200-
}
201-
);
110+
202111

203112
// elliptic curve
204113

src/bindings/ocaml/lib/consistency_test.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module Other_impl = Pickles.Impls.Wrap
55
module Field = Impl.Field
66
module Account_update = Mina_base.Account_update
77
module Zkapp_command = Mina_base.Zkapp_command
8+
(*module Signed_command = Mina_base.Signed_command*)
89

910
(* Test - functions that have a ts implementation, exposed for ts-ml consistency tests *)
1011

@@ -339,7 +340,8 @@ module Transaction_hash = struct
339340
}
340341
}
341342
in
342-
let payment = Signed_command.sign kp payload in
343+
let signature_kind = Mina_signature_kind.t_DEPRECATED in
344+
let payment = Signed_command.sign ~signature_kind kp payload in
343345
(payment :> Signed_command.t)
344346
|> Signed_command.to_yojson |> Yojson.Safe.to_string |> Js.string
345347
end

src/bindings/ocaml/lib/local_ledger.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,13 @@ let check_account_update_signatures zkapp_command =
139139
zkapp_command
140140
in
141141
let tx_commitment = Zkapp_command.commitment zkapp_command in
142+
let signature_kind = Mina_signature_kind.t_DEPRECATED in
142143
let full_tx_commitment =
143144
Zkapp_command.Transaction_commitment.create_complete tx_commitment
144145
~memo_hash:(Mina_base.Signed_command_memo.hash memo)
145146
~fee_payer_hash:
146147
(Zkapp_command.Digest.Account_update.create
148+
~signature_kind
147149
(Account_update.of_fee_payer fee_payer) )
148150
in
149151
let key_to_string = Signature_lib.Public_key.Compressed.to_base58_check in

src/mina

Submodule mina updated 280 files

0 commit comments

Comments
 (0)