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

Add example how to generate Ed25519 signature in the test case #357

Merged

Conversation

DOBEN
Copy link
Member

@DOBEN DOBEN commented Nov 5, 2023

Purpose

It would be useful if we have test cases in our example smart contracts that showcase how to generate signatures in the test case directly side by side with our current approach of using external tools to create such signatures (e.g. https://cyphr.me/ed25519_tool/ed.html). This in-code signature generation would have simplified the umbrella smart contracts tests (checking ed25519 signatures) as well as simplified some of the cis3-sponsored-transaction smart contract tests (checking account signatures).

Changes

  • Add test case to signature-verifier to showcase how ed25519 signatures can be generated within a test case.

examples/signature-verifier/Cargo.toml Outdated Show resolved Hide resolved
examples/signature-verifier/tests/tests.rs Outdated Show resolved Hide resolved
examples/signature-verifier/tests/tests.rs Outdated Show resolved Hide resolved
@DOBEN DOBEN merged commit 6f71c79 into main Nov 6, 2023
127 checks passed
@DOBEN DOBEN deleted the add-example-of-how-to-generate-ed25519-signature-in-a-test-case branch November 6, 2023 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants