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
- Rust
- Typescript (Node.js)
- Python
The following example will:
- Verify an Ed25519 signature using the
Ed25519Signature.verify()
function.
The following example will:
- Verify an Ed25519 signature using the
Utils.verifyEd25519Signature()
function.
- Verify an Ed25519 signature using the
Utils.verify_ed25519_signature()
function.
Full Example Code
- Rust
- Typescript (Node.js)
- Python
sdk/examples/how_tos/sign_and_verify_ed25519/verify_ed25519_signature.rs
loading...
bindings/nodejs/examples/how_tos/sign_and_verify_ed25519/verify-ed25519-signature.ts
loading...
bindings/python/examples/how_tos/sign_and_verify_ed25519/verify_ed25519_signature.py
loading...
Expected Output
Valid signature: true