Commit e3b9407
feat(rust/vote-tx-v2): Public vote tx v2 CBOR decoding/encoding implementation (#86)
* refactor
* add public_tx mod
* add initial PublicTx impl
* make gen_tx::Choice generic
* make gen_tx::PropId and gen_tx::Proof generic
* add more gen_tx decoding tests
* add separate tx_body mod
* move vote impl into vote mod
* move EventMap to event_map mod
* move VoterData to voter_data mod
* wip
* remove docoding mod
* wip
* add signature header validation
* add a gen_tx::builder
* wip
* refactor VoterData type
* refactor Cbor
* update cddl specs, make voter-data generic
* move choice to the separate mod
* wip
* move Uuid impl to seprate mod
* move EncodedCbor struct to separate mod
* add public tx test
* fix spelling
* fix, add missing comma
* move definition of public_tx/choice and public_tx/proof to the public_tx/vote mod
* add comment which specifies a CBOR encoding/decoding profile
---------
Co-authored-by: Oleksandr Prokhorenko <[email protected]>1 parent dbe3d4c commit e3b9407
File tree
18 files changed
+921
-523
lines changed- docs/src/architecture/08_concepts
- catalyst_voting/cddl
- immutable_ledger/cddl
- rust/vote-tx-v2/src
- gen_tx
- public_tx
18 files changed
+921
-523
lines changedLines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
6 | | - | |
7 | | - | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | | - | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
14 | | - | |
| 17 | + | |
15 | 18 | | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
28 | | - | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
2 | 5 | | |
3 | 6 | | |
4 | 7 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
2 | 5 | | |
3 | 6 | | |
4 | 7 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
| |||
0 commit comments