Commit Graph

405 Commits

Author SHA1 Message Date
Daniel Sanchez Quiros bfad51be35 Implement encoder main methods 2024-04-15 15:07:07 +02:00
Daniel Sanchez Quiros d3161e5a7a Fix lib and types exposures 2024-04-15 15:06:55 +02:00
Daniel Sanchez Quiros b0d957c85c Implement compute elements (row) proofs 2024-04-11 18:31:42 +03:00
Daniel Sanchez Quiros 9b2d723fd9 Implement commit row commitments 2024-04-11 18:12:28 +03:00
Daniel Sanchez Quiros 4653fa3319 Added missing files 2024-04-11 17:29:48 +03:00
Daniel Sanchez Quiros fe2c5534a3 Implement encoder with chunkify 2024-04-11 17:29:23 +03:00
Daniel Sanchez Quiros 15f4f4f1b9 Added chunksmatrix 2024-04-11 17:03:50 +03:00
Daniel Sanchez Quiros 98d0073bea Cleanup imports 2024-04-07 09:37:57 +03:00
Daniel Sanchez Quiros 3268c6caef Implement decode using lagrange 2024-04-07 09:37:36 +03:00
Daniel Sanchez Quiros f7ada99d82 Implement decoding tests 2024-04-02 18:00:14 +02:00
Daniel Sanchez Quiros 4baae88a1c Implement rs encode/decode 2024-04-02 17:35:25 +02:00
Daniel Sanchez Quiros a8ef541cdb Use modular le bytes 2024-04-02 17:25:10 +02:00
Daniel Sanchez Quiros 708dcf55a5 Return evaluations from bytes_to_polynomial as well 2024-04-02 15:18:25 +02:00
Daniel Sanchez Quiros 52606faf83 Implemented verification and tests 2024-04-02 14:52:27 +02:00
Daniel Sanchez Quiros 32aeaf8043 implement proof verification 2024-04-02 13:03:30 +02:00
Daniel Sanchez Quiros dbf84ff1b6 Sketch fn signature for verification 2024-04-01 20:01:13 +02:00
Daniel Sanchez Quiros b5898aa958 Implement proof generation 2024-04-01 19:57:23 +02:00
Daniel Sanchez Quiros da4420a46e Implement polynomial commitment 2024-04-01 19:43:10 +02:00
Daniel Sanchez Quiros 769c1d40ed Add comments 2024-04-01 18:26:00 +02:00
Daniel Sanchez Quiros ff52bd67ee Clippy happy 2024-04-01 17:26:14 +02:00
Daniel Sanchez Quiros 84ac7ed459 Fix encoding and test 2024-04-01 17:17:30 +02:00
Daniel Sanchez Quiros 6d438d5a18 Use domain elements instead of roots of unity in tests 2024-04-01 14:59:06 +02:00
Daniel Sanchez Quiros 38fe0e8171 Refactor evaluations into method 2024-03-30 13:29:46 +01:00
Daniel Sanchez Quiros a619bb362c Use coefficient form 2024-03-29 22:00:38 +01:00
Daniel Sanchez Quiros d4ae8fe66f Implemented bytes_to_polynomial and tests 2024-03-29 15:36:52 +01:00
Daniel Sanchez Quiros 687baeb9a1 Added new kzgrs core module 2024-03-29 15:36:40 +01:00
Daniel Sanchez Quiros c06962b944 Removed old kzg rs modules 2024-03-29 15:36:19 +01:00
danielsanchezq 3a06e8f8d8 Base cleaning of da to new traits/structure
Added new da protocols and types
2024-03-28 14:36:39 +02:00
Giacomo Pasini 7e4d00cc78
Switch from Carnot to Cryptarchia (#624)
* Switch from Carnot to Cryptarchia

* Do not delete old coins

* Update tests/src/lib.rs

Co-authored-by: davidrusu <davidrusu.me@gmail.com>

* clippy happy

---------

Co-authored-by: davidrusu <davidrusu.me@gmail.com>
2024-03-28 12:56:04 +01:00
Al Liu 16444cf32a
Fix race for nomos log service (#577) 2024-03-23 22:02:01 +08:00
gusto b341a11eb2
Metrics to nomos services (#623)
* Remove unused metrics crate from services

* Move prometheus metrics to nomos-services
2024-03-22 14:03:35 +02:00
gusto de6138fc27
Remove old http api implementation (#622) 2024-03-22 12:55:25 +02:00
Daniel Sanchez 2677199ed6
Cryptarchia block subscribe (#617)
* Pipe broadcast channel

* Add subscription to cryptarchia services message

* Clippy happy
2024-03-22 10:45:54 +01:00
Daniel Sanchez 36d441ec21
Use windows msvc (as rocksdb fails with gnu toolchain) (#621) 2024-03-22 10:06:37 +01:00
Al Liu 47487f0be7
Fix clippy (#620) 2024-03-21 16:46:16 +01:00
Youngjoon Lee 40cc0b15b4
Remove unnecessary attributes and add doc comments for Mixnet (#618) 2024-03-21 23:06:32 +09:00
Al Liu fd8ea50dd1
Use rocksdb as storage backend (#585)
* finish rocksdb storage service

* use rocksdb

* create missing cf

* Update Cargo.toml
2024-03-21 12:23:26 +01:00
Youngjoon Lee 502c791318
Implement Stream for MixClient (#616) 2024-03-20 20:13:00 +09:00
Youngjoon Lee d449114044
Replace mixnet backend with mixnet addon (#615) 2024-03-19 19:15:09 +09:00
Youngjoon Lee ed81577ab5
Refactor libp2p StreamSend command more generic (#614) 2024-03-19 10:03:00 +09:00
Giacomo Pasini a933c73245
add cryptarchia leadership (#613) 2024-03-18 16:04:16 +01:00
Giacomo Pasini 1b925d9a3a
Add cryptarchia consensus service (#612)
* add cryptarchia consensus service

* fmt

* clippy happy

* review comments
2024-03-15 15:53:51 +01:00
Youngjoon Lee dbda061f04
Added `mixnet` compilation feature (#610) 2024-03-14 09:53:41 +09:00
Giacomo Pasini 50cff241fe
Refactor block (#609)
* Refactor Block/Header definition

Refactor block/header definition so that it's now responsibility
of the nomos-core crate. This removes definitions in ledger/consensus
crates since there's no need at that level to have an understanding
of the block format.

The new header format supports both carnot and cryptarchia.
2024-03-13 18:46:10 +01:00
Youngjoon Lee e7d591b7bc
Mixnet v1 (#569)
* base

* Remove mixnet client from libp2p network backend (#572)

* Mixnet v1: Remove all mixnet legacies: mixnet crate, mixnode binary, tests, and docker (#573)

* Mixnet v1: Skeleton (#570)

* Use QUIC for libp2p (#580)

* Add Poisson interval function for Mixnet (#575)

* Mixnet network backend skeleton (#586)

* Libp2p stream read/write (#587)

* Emitting packets from mixclient using libp2p stream (#588)

* Handle outputs from mixnode using libp2p stream/gossipsub (#589)

* Refactor poisson (#590)

* Mix client Poisson emission (#591)

* Mix node packet handling (#592)

* Mix Packet / Fragment logic (#593)

* Move FisherYates to `nomos-utils` (#594)

* Mixnet topology (#595)

* Mix client/node unit tests (#596)

* change multiaddr from tcp to udp with quic-v1 (#607)

---------

Co-authored-by: Al Liu <scygliu1@gmail.com>
2024-03-12 15:47:35 +09:00
Youngjoon Lee 98bc66a67c
Expose 18080 for HTTP API in Testnet (#608) 2024-03-12 15:29:51 +09:00
Giacomo Pasini e51865fe33
move ledger into separate crate (#606)
* move ledger into separate crate

* clippy happy
2024-03-11 15:15:17 +01:00
Giacomo Pasini 06d225db20
Make block id generic in mempool (#605) 2024-03-11 11:07:58 +01:00
Giacomo Pasini 31c5f69121
Add orphan leader proofs import (#600)
* Add orphan leader proofs import

* add additional test case covering double import
2024-03-04 16:02:28 +01:00
gusto a036b8adc3
Bump rust (#602) 2024-03-01 13:28:05 +02:00