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 sign_message function to AccountKeys #470

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

DOBEN
Copy link
Member

@DOBEN DOBEN commented Nov 7, 2023

Purpose

I am in the process of adding new test cases to the sponsored transaction smart contract. These new test cases generate AccountKeys and Signatures within the test cases. To avoid having to convert signature map types, this PR adds a function sign_message that returns an AccountSignatures type. This simplifies the test cases as follows:

let account_signatures: AccountSignatures = keypairs
        .sign_message(&to_bytes(&message_hash));

Changes

  • Add sign_message function to AccountKeys

rust-src/concordium_base/src/id/types.rs Show resolved Hide resolved
rust-src/concordium_base/CHANGELOG.md Outdated Show resolved Hide resolved
@DOBEN DOBEN merged commit 68c831d into main Nov 9, 2023
@DOBEN DOBEN deleted the add-sign-message-function-to-account-keys branch November 9, 2023 07:54
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.

2 participants