Skip to main content

Verify Ed25519 Signature

Once you have signed data with Ed25519, you can use the Utils.verifyEd25519Signature(signature, message) function to verify that the data hasn't been modified by any third-party.

Example Code

The following example will:

  1. Verify an Ed25519 signature using the Ed25519Signature.verify() function.
sdk/examples/how_tos/sign_and_verify_ed25519/verify_ed25519_signature.rs
loading...

Full Example Code

sdk/examples/how_tos/sign_and_verify_ed25519/verify_ed25519_signature.rs
loading...

Expected Output

Valid signature: true