Concordium / concordium-rust-sdk

Rust SDK for the Concordium blockchain.
https://docs.rs/concordium-rust-sdk/latest/concordium_rust_sdk/
Mozilla Public License 2.0
13 stars 16 forks source link

Verify concoridum wallet message signature #210

Closed DOBEN closed 1 month ago

DOBEN commented 2 months ago

Task description

A message signed in a Concordium wallet is prepended with the account address and 8 zero bytes. A verify_concordium_wallet_message_signature/verify_account_message_signature function should be available in the SDK that adds these prepends and verifies all signatures in the signature map (aka 2-level multi-sig accounts).

https://github.com/Concordium/concordium-dapp-examples/pull/92#discussion_r1711476448

https://github.com/Concordium/concordium-dapp-examples/blob/b9b1573a5db978e3e469c39a4fe6b9721a0dc58a/compliant-reward-distribution/indexer-and-server/src/bin/server.rs#L594