Crypt::Perl::Ed25519::PublicKey
# This requires an octet string. my $import_key = Crypt::Perl::Ed25519::PublicKey->new( $pub_str ); $key->verify( $message, $signature ) or die "Invalid sig for msg!"; #---------------------------------------------------------------------- # Returns an octet string. my $pub_str = $key->get_public(); # Returns an object my $pub_obj = $key->get_public_key(); # This returns a hash reference, NOT a JSON string. my $pub_hr = $key->get_struct_for_public_jwk();
This class implements Ed25519 verification.
To install Crypt::Perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::Perl
CPAN shell
perl -MCPAN -e shell install Crypt::Perl
For more information on module installation, please visit the detailed CPAN module installation guide.