LegitStack
Verifying Blockchain crypto signature Elixir/erlang
There are a few questions about this but not specific to blockchain. I have a Ravencoin wallet (bitcoin fork) written in python that I want to talk to my Elixir server. The wallet has a pubkey and an address (derived from the pubkey) and the ability to sign things. The server needs the ability to verify the signature.
I’ve tried to consult these resources but am unable to get it to work
Right way to use :crypto.verify(...)
GitHub - ntrepid8/ex_crypto: Wrapper around the Erlang crypto module for Elixir.
Web3x.Wallet — web3x v0.6.3 eth
How to calculate Bitcoin address in Elixir | by Kamil Lelonek | Kamil Lelonek - Software Engineer
Curvy — Curvy v0.3.0
Has anyone had to do this specifically with blockchain signatures?
:crypto.verify(
:ecdsa,
:sha256,
"message",
signature,
[public_key, :secp256k1]
)
Most Liked
hst337
Can you provide any additional information?
For example, the signature and the key.
Because, the call looks correct, so the problem is with padding or something like this
LegitStack
I appreciate the help you’ve offered me so far. I have to move on to another part of the system, but if anyone sees this, who can solve the issue, we made a bounty out of it:
hst337
The problem is that this ravencoin and satori use non-standard encoding
For example, ravencoin prepends some data to the signature, it signs the hash of the message and the public key is also prefixed by some magic bytes
hst337
And the ravencoin code is some spaghetti I’ve never seen with login in object constructor. sheeeesh








