The easier way to manipulate ECC key-pairs and signatures is via the perl module Crypt::PK::ECC.
Below is a simple example of code for
- creating the key pair (secp256k1) :
eckeygen.pl
- signing and verifying a message :
signature.pl
note : for RFC7518 signatures,
use hash_name = 'SHA256'
sudo cpan install Crypt::PK::ECC
--
note:
I tried to use Crypt::Perl::ECDSA, however it took too long to install