David Rusu
7d3e849c5f
cl: merkle tree helper to pad elements
2024-06-26 22:40:02 -04:00
David Rusu
e7d6089e51
cl: merkle proofs
2024-06-26 22:17:30 -04:00
David Rusu
a6bbd56f64
cl: rename Note to NoteWitness
2024-06-26 14:14:56 -04:00
Giacomo Pasini
bbc7914aa9
Add separate bin for stark2snark conv
2024-06-26 16:53:21 +02:00
Giacomo Pasini
3c991173c5
fix zone PoC
2024-06-26 11:33:52 +02:00
Giacomo Pasini
507e1627d7
refactor risc0 zone
2024-06-20 19:04:31 +02:00
Giacomo Pasini
b2c0f7eda0
add risc0 zone
2024-06-19 20:15:59 +02:00
David Rusu
96482b219a
cl: integrate groth16 death constraint validation
2024-06-19 18:49:21 +02:00
David Rusu
993ecf13b5
cl: swap out ExtendedPoint for SubgroupPoint
2024-06-15 18:21:51 -04:00
David Rusu
913064da39
cl: verify bundle isn't balanced with just one unbalanced partial tx
2024-06-15 09:18:03 -04:00
David Rusu
d6d3dcab12
cl: bundle of ptx
2024-06-15 00:53:00 -04:00
David Rusu
33ee6dea8c
cl: reverse partial tx balance (inputs are neg, outputs are pos)
2024-06-14 14:12:46 -04:00
David Rusu
2ea4a4d351
cl: test partial transaction balance commitment
2024-06-14 14:07:59 -04:00
David Rusu
7ba69caccb
drop python cl spec
2024-06-14 11:56:38 -04:00
David Rusu
5ce7b253cf
cl: partial transactions can now be built and verified
2024-06-13 17:24:02 -04:00
David Rusu
7db1420194
cl: output proof tests
2024-06-13 13:43:09 -04:00
David Rusu
cc8c6e31cb
cl: partial_tx; input; output
2024-06-13 12:12:08 -04:00
David Rusu
26f6fe54f6
cl: add nullifier module
2024-06-12 16:28:49 -04:00
David Rusu
06a085a295
cl: split balance test
2024-06-12 00:08:53 -04:00
David Rusu
fe6764d56e
cl: split main.rs into crypto.rs and note.rs
2024-06-12 00:02:08 -04:00
David Rusu
258d28b7f9
wip: cl
2024-06-11 23:40:50 -04:00
David Rusu
f4f1e78d0c
cl: testing the balance commitments
2024-06-03 09:52:36 -04:00
David Rusu
b2b2213bd6
cl: remove unused classes
2024-05-31 12:55:08 +04:00
David Rusu
a85aaf1824
cl: remove tx_output from 1-to-1 transfer
2024-05-31 12:36:41 +04:00
David Rusu
50a7e1a261
cl/ptx: 1-to-1 test is passing, but still, not quite finished
2024-05-30 16:57:19 +04:00
David Rusu
8e98d89a0b
cl/ptx-note-proofs: start data modelling input and outputs
2024-05-30 16:01:41 +04:00
David Rusu
71ede291d2
cl/noir: mv noir_constraint wrapper into cl/constraints/...
2024-05-29 13:22:23 +04:00
David Rusu
5cae33a95a
cl/ptx: get balance commitments working
2024-05-29 12:50:24 +04:00
David Rusu
e25051b582
cl: add type checking to InnerNote
2024-05-28 23:32:32 +04:00
David Rusu
7074a3b0a2
feat(cl/1to1_xfr): fungibility domain uses hash_to_curve
2024-05-28 23:28:57 +04:00
David Rusu
5044486f36
hack(crypto): mock up a hash_to_curve implementation
2024-05-28 23:27:55 +04:00
David Rusu
7405b31378
crypto: make sure prf returns field elements, fix ECC math in pedcom
2024-05-28 23:26:53 +04:00
David Rusu
189ab5240d
hack: Vacous hash function
2024-05-28 23:25:53 +04:00
David Rusu
9e1fb74f93
WIP: test_1_to_1_transfer
2024-05-27 18:58:45 +04:00
David Rusu
fd007c6625
wip: executable spec
2024-05-20 20:00:03 +05:30
David Rusu
211a543513
rewrite Bigger constraint as a dataclass
2024-05-17 18:36:30 +04:00
David Rusu
25c52d81b0
cl/noir: document the NargoConstraint wrapper api
2024-05-17 15:47:56 +04:00
David Rusu
8b2cf83bed
Add the Bigger wrapper
2024-05-17 14:39:21 +04:00
David Rusu
65e40caea0
Add a python wrapper over the bigger constraint
2024-05-17 14:37:50 +04:00
David Rusu
99d8f1a4a7
feat(cl/noir): provide an ergonomic Noir api for use within Python.
2024-05-17 14:00:03 +04:00
Daniel Sanchez
9390d481ba
Use blake2b for 31 bytes digests ( #91 )
2024-04-15 12:12:50 +02:00
Daniel Sanchez
8bb5160ff2
Fix rs encoding to fit with missing points ( #90 )
2024-04-09 07:55:17 +02:00
Daniel Sanchez
f29869c029
Remove indexing from dablob ( #89 )
...
Verifier resolves by syncing with state public keys
2024-03-25 11:30:44 +01:00
davidrusu
d2f6ad579a
Stake Relativization Specification + Fixes ( #86 )
...
* cryptarchia/relative-stake: failing test showing lack of inference
* implement stake-relativization spec
* test total stake inference in empty epoch
* move TestNode to test_common
* fix bug in Follower re-org logic
* improve orphan proof test coverage
* force orphans to already have been in one of the existing branches
* rename initial_inferred_total_stake ==> initial_total_stake
* add simple orphan import test
* Follower.unimported_orphans: ensure no orphans from same branch
* remove unnecessary LedgerState.slot
* cryptarchia: doc fixes
* factor out total stake inference
* docs for total stake inference
* rename total_stake to total_active_stake
* replace prints in cryptarchia with logging.logger
2024-03-23 05:50:00 +04:00
gusto
53b8be7a05
DA Api Tests ( #83 )
...
* Tests for da api full flow
* Fix test issues
* Da api ext tests (#85 )
* Index store links blob to cert_id
* Tests for multiple indexes pointing to the same blob
* Test multiple indexes to the same blob in the full flow
* Update bytes_per_chunk to 31 bytes
---------
Co-authored-by: Daniel Sanchez Quiros <sanchez.quiros.daniel@gmail.com>
2024-03-22 13:01:13 +02:00
Daniel Sanchez
8dd2dabb7d
DA: Verifier skip duplicated blobs intents ( #88 )
...
* Make verifier skip duplicated blobs intents
* Add case in where verifier data is the same but column is different
2024-03-22 10:36:00 +01:00
Youngjoon Lee
601598f814
cryptarchia: fix try_create_fork to find parent block ( #84 )
2024-03-21 09:55:38 +09:00
Daniel Sanchez
a0175e16f3
Chunkify up to 31byte elements ( #87 )
2024-03-20 11:03:39 +01:00
gusto
b1e13f79c5
Initial DA API Spec structure ( #72 )
...
* Initial da_api spec structure
* Node definition for testing different actors in da api
* Connect zone, producer and da nodes in tests
* Remove da mock module
* Add da api module with flow tests
* Comments for read and write methods in BlobStore
* Fix nitpicks (formatting and typing)
---------
Co-authored-by: Daniel Sanchez Quiros <sanchez.quiros.daniel@gmail.com>
2024-03-15 12:37:56 +02:00
Daniel Sanchez
0e142c0888
Added verification to certificate ( #82 )
...
* Added verification method to certificate
* Update da/common.py
typo short -> sort
Co-authored-by: gusto <bacv@users.noreply.github.com>
* Fix test imports
* Added verification comment
---------
Co-authored-by: gusto <bacv@users.noreply.github.com>
2024-03-15 11:34:43 +01:00