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
VoteCast JS-Bindings #21
Conversation
Mr-Leshiy
commented
Oct 11, 2022
- Update current wasm JS binding generation.
- Add VoteCast certificate building (only public voting type)
- Add fragment generation, transaction signing
We will also need private voting type. Is this still a WIP? |
74a7e5a
to
a57d519
Compare
@stevenj yes it is in progress |
a57d519
to
dcd49b7
Compare
@Mr-Leshiy, FYI for WIP PRs we can use draft mode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what i see we are missing e2e test on js layer.
I imagine critical one which utilized our sign transaction method and return signed fragment.. then we decode it and verify that it has public key signature and all input data is the same
@cong-or @FelipeRosa @cameron1024 Can you review this one, please? |
@dkijania Yes sure, it is a ongoing plan. We will start doing it after this PR will b merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I don't have much experience with wasm_bindgen so I can't say if there's anything bad going on there, but the rest looks good 👍
src/chain-wallet-libs/bindings/wallet-js/tests/certificates/vote_cast.rs
Outdated
Show resolved
Hide resolved
src/chain-wallet-libs/bindings/wallet-js/tests/certificates/vote_cast.rs
Outdated
Show resolved
Hide resolved
src/chain-wallet-libs/bindings/wallet-js/tests/certificates/vote_plan.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!