mana-ethereum / ethereumex

Elixir JSON-RPC client for the Ethereum blockchain 0x063D3d782598744AF1252eBEaf3aA97D990Edf72
MIT License
378 stars 73 forks source link

How do you verify a signature? #118

Closed tansanDOTeth closed 2 years ago

tansanDOTeth commented 2 years ago

I see there is a sign method, but I don't see a verify method. How can I verify a signature?

ayrat555 commented 2 years ago

@astroTANSAN Hello. I think you should use https://github.com/omgnetwork/ex_secp256k1

https://hexdocs.pm/ex_secp256k1/ExSecp256k1.html#verify/3

tansanDOTeth commented 2 years ago

@astroTANSAN Hello. I think you should use https://github.com/omgnetwork/ex_secp256k1

https://hexdocs.pm/ex_secp256k1/ExSecp256k1.html#verify/3

Hello! Oh, is this just basic symmetrical key sign/verify? would this mean I don't actually need the eth node to verify?

ayrat555 commented 2 years ago

Hello! Oh, is this just basic symmetrical key sign/verify? would this mean I don't actually need the eth node to verify?

yes. but I think it's asymmetric