algorand / go-algorand-sdk

Algorand Golang SDK

Home Page:https://pkg.go.dev/github.com/algorand/go-algorand-sdk/v2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to verify signed messages?

kabaluyot opened this issue · comments

Supposed a message was signed in frontend (JS) and needs to be verified off-chain with Go, how to do such?

It really depends on your message. Are you referring to a transaction?

For your own means you can use whatever public key cryptography scheme is supported by your environments. We use ed25519. To perform checking off chain you would need to send the message, signature and the signers public key. With those you can run a verify function.