Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rust/immutable-ledger): block encoding decoding and validation #67

Merged
merged 60 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
794c609
feat(decode and encode block header): wip
cong-or Oct 9, 2024
d35b42f
feat(block decoding): wip
cong-or Oct 13, 2024
11df9f3
feat(validators): block signatures
cong-or Oct 16, 2024
074d6dd
feat(validators): block signatures
cong-or Oct 16, 2024
c11042c
feat(validators): block signatures
cong-or Oct 16, 2024
9a5916a
feat(block validation): ledger
cong-or Oct 20, 2024
41de047
feat(block validation): ledger
cong-or Oct 20, 2024
609a99b
feat(block validation): ledger
cong-or Oct 20, 2024
672e2d7
feat(block validation): ledger
cong-or Oct 22, 2024
3f5ace8
feat(block validation): ledger
cong-or Oct 22, 2024
ece6e6a
feat(block validation): ledger
cong-or Oct 22, 2024
133acd3
feat(block validation): ledger
cong-or Oct 22, 2024
5a316b8
Merge branch 'main' into block_ser_ledger
cong-or Oct 22, 2024
a7748e6
ci(pr name): housekeeping
cong-or Oct 22, 2024
15a2770
ci(pr name): housekeeping
cong-or Oct 22, 2024
9e2de4e
ci(pr name): housekeeping
cong-or Oct 22, 2024
af6417e
ci(pr name): housekeeping
cong-or Oct 22, 2024
0cf2af6
ci(pr name): housekeeping
cong-or Oct 22, 2024
7697412
feat(block validation): ledger
cong-or Oct 22, 2024
b413b05
feat(block validation): ledger
cong-or Oct 22, 2024
26e9a6b
feat(block validation): ledger
cong-or Oct 22, 2024
99a6523
feat(block validation): ledger
cong-or Oct 22, 2024
1b1f1ef
feat(block validation): ledger
cong-or Oct 22, 2024
36867a2
feat(block validation): ledger
cong-or Oct 22, 2024
ea8bb4f
feat(block validation): ledger
cong-or Oct 22, 2024
3304232
feat(block validation): ledger
cong-or Oct 22, 2024
cc2fbe3
feat(block validation): ledger
cong-or Oct 22, 2024
85dc604
feat(block validation): ledger
cong-or Oct 22, 2024
2a2b274
feat(block validation): ledger
cong-or Oct 22, 2024
52ec56a
ci(lints): fix
cong-or Oct 22, 2024
1173a04
ci(lints): fix
cong-or Oct 22, 2024
be3e72a
ci(lints): fix
cong-or Oct 22, 2024
10521e8
ci(lints): fix
cong-or Oct 22, 2024
f387e91
ci(lints): fix
cong-or Oct 22, 2024
4290604
ci(lints): fix
cong-or Oct 22, 2024
4c6fee9
refactor(encode block): simpler api
cong-or Oct 23, 2024
a2826c4
Merge branch 'main' into block_ser_ledger
cong-or Oct 23, 2024
0f10aef
refactor(encode block): simpler api
cong-or Oct 23, 2024
6128913
refactor(encode block): simpler api
cong-or Oct 23, 2024
24400d9
refactor(encode block): simpler api
cong-or Oct 23, 2024
a74e8a5
Merge branch 'main' into block_ser_ledger
Mr-Leshiy Oct 29, 2024
8a58bbc
Merge branch 'main' into block_ser_ledger
minikin Oct 30, 2024
e3a1fbe
refactor(add block types and cddl tests): verifcation and refactor
cong-or Nov 3, 2024
6474854
refactor(add block types and cddl tests): verifcation and refactor
cong-or Nov 3, 2024
e61bdd4
refactor(add block types and cddl tests): verifcation and refactor
cong-or Nov 3, 2024
a587ac4
Merge branch 'main' into block_ser_ledger
cong-or Nov 3, 2024
8ba86cc
refactor(rm redundant test): test
cong-or Nov 3, 2024
1f9507e
refactor(deny.toml): rustsec
cong-or Nov 3, 2024
d971069
refactor(deny.toml): rustsec
cong-or Nov 3, 2024
c75b706
refactor(deny.toml): rustsec
cong-or Nov 3, 2024
3f75895
Update rust/immutable-ledger/src/serialize.rs
cong-or Nov 6, 2024
c6f93e3
Update rust/immutable-ledger/src/serialize.rs
cong-or Nov 6, 2024
235099a
Merge branch 'main' into block_ser_ledger
cong-or Nov 6, 2024
abb6803
refactor(agnostic signing algo and proptest): generic
cong-or Nov 10, 2024
84998f0
refactor(agnostic signing algo and proptest): generic
cong-or Nov 10, 2024
b143df5
refactor(agnostic signing algo and proptest): generic
cong-or Nov 10, 2024
df6855f
refactor(agnostic signing algo and proptest): generic
cong-or Nov 10, 2024
77f8bcf
refactor(agnostic signing algo and proptest): generic
cong-or Nov 10, 2024
19a81ef
Merge branch 'main' into block_ser_ledger
cong-or Nov 14, 2024
eefe293
ci
cong-or Nov 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/semantic_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
rust/c509-certificate
rust/cardano-chain-follower
rust/catalyst-voting
rust/immutable-ledger
rust/vote-tx-v1
rust/vote-tx-v2
rust/cbork
Expand Down
1 change: 1 addition & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ VERSION 0.8
IMPORT github.com/input-output-hk/catalyst-ci/earthly/mdlint:v3.2.23 AS mdlint-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/cspell:v3.2.23 AS cspell-ci


FROM debian:stable-slim

# check-markdown : markdown check using catalyst-ci.
Expand Down
1 change: 1 addition & 0 deletions docs/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/docs:v3.2.23 AS docs-ci


IMPORT .. AS repo

# Copy all the source we need to build the docs
Expand Down
2 changes: 2 additions & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ members = [
"cbork-abnf-parser",
"cbork-cddl-parser",
"catalyst-voting",
"catalyst-voting",
"immutable-ledger",
"vote-tx-v1",
"vote-tx-v2",
]
Expand Down
4 changes: 2 additions & 2 deletions rust/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COPY_SRC:
catalyst-voting vote-tx-v1 vote-tx-v2 \
cbork cbork-abnf-parser cbork-cddl-parser \
hermes-ipfs \
.
immutable-ledger .

# builder : Set up our target toolchains, and copy our files.
builder:
Expand Down Expand Up @@ -90,4 +90,4 @@ check-builder-src-cache:
# local-ci-run: This step simulates the full CI run for local purposes only.
local-ci-run:
BUILD +check
BUILD +build
BUILD +build
1 change: 1 addition & 0 deletions rust/c509-certificate/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust::v3.2.23 AS rust-ci


IMPORT .. AS rust-local
IMPORT ../.. AS repo

Expand Down
1 change: 1 addition & 0 deletions rust/cbork/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust::v3.2.23 AS rust-ci


IMPORT .. AS rust-local

# Run build using the most efficient host tooling
Expand Down
33 changes: 33 additions & 0 deletions rust/immutable-ledger/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[package]
name = "immutable-ledger"
version = "0.1.0"
edition.workspace = true
authors.workspace = true
homepage.workspace = true
repository.workspace = true
license.workspace = true

[dependencies]
ed25519-dalek = "2.1.1"
anyhow = "1.0.86"
minicbor = { version = "0.24", features = ["std"] }
uuid = { version = "1.10.0", features = ["v4", "serde"] }
ulid = { version = "1.1.3", features = ["serde", "uuid"] }
hex = "0.4.3"
blake2b_simd = "1.0.2"
blake3 = "=0.1.3"
proptest = { version = "1.5.0" }

[package.metadata.cargo-machete]
ignored = ["proptest"]



[lints]
workspace = true


[dev-dependencies]
test-strategy = "0.4.0"


8 changes: 8 additions & 0 deletions rust/immutable-ledger/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//! Block Serialization
//!
//! Facilitates block serialization and validation for immutable ledger
//!
//! Spec: `<https://input-output-hk.github.io/catalyst-voices/architecture/08_concepts/immutable_ledger/ledger>`

/// Block encoding decoding and validation
pub mod serialize;
Loading