Skip to content

Conversation

@Mr-Leshiy
Copy link
Contributor

@Mr-Leshiy Mr-Leshiy commented Oct 16, 2024

Description

Added functionally to build a signed transaction v1::Tx, generate a proof and as well to verify all of it.

Related Issue(s)

Closes #55

Description of Changes

  • Added crypto::ed25519 signing functionality
  • Refactored election keys to the new structs ElectionPublicKey and ElectionSecretKey.
  • Added v1::Tx::new_public and v1::Tx::new_private functions to build and sign a valid transaction.
  • Added Blake2b256Hasher hash function.
  • Updated v1::Tx decoding with the witness part.
  • Added v1::Tx::verify_proof and v1::Tx::verify_signature methods.
  • Added v1::Tx::public_choice and v1::Tx::private_choice methods to retrieve an original voting choice.
  • Added new functions with default rng (named *_with_default_rng) to the corresponding one which takes rng as an argument

@Mr-Leshiy Mr-Leshiy self-assigned this Oct 16, 2024
@Mr-Leshiy Mr-Leshiy added the review me PR is ready for review label Oct 16, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Oct 16, 2024

Test Report | ${\color{lightgreen}Pass: 210/210}$ | ${\color{red}Fail: 0/210}$ |

Copy link
Collaborator

@stevenj stevenj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stevenj stevenj merged commit 143174b into main Oct 16, 2024
22 checks passed
@stevenj stevenj deleted the feat/jorm-tx-build branch October 16, 2024 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review me PR is ready for review

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

🛠️ [TASK] : Jormungandr transaction builder

3 participants