polkawallet-io / sdk

polkawallet SDK for integrating substrate-based blockchain as a plugin.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sign message and verify signature

poka-IT opened this issue · comments

commented

I see you just work on signatures with eth: db05dbe

But is it already possible to sign message and verify signature from standard KeyPairData object ?

I found sdk.api.keyring.signatureVerify(message, signature, address) apparently to verify a signature, and also sdk.api.keyring.signAsExtension(password, param) for I don't know, but no just sdk.api.keyring.signMessage(message, address) ?

I don't find anywhere in this sdk a way to just do it! Am I looking wrong ?

commented

Oh ok, it works, thanks for this example, the mehtode name is not very intuitive.