NAME

Blockchain::Ethereum::Keystore::Key

VERSION

version 0.009

SYNOPSIS

Generate a new key:

my $key = Blockchain::Ethereum::Key->new;
$key->sign_transaction($transaction); # Blockchain::Ethereum::Transaction

Import existent key:

my $key = Blockchain::Ethereum::Key->new(private_key => $private_key); # private key bytes
$key->sign_transaction($transaction); # Blockchain::Ethereum::Transaction

OVERVIEW

This is a private key abstraction

If instantiated without a private key, this module uses Crypt::PRNG for the random key generation

METHODS

sign_transaction

Sign a Blockchain::Ethereum::Transaction object

self

address

Export the Blockchain::Ethereum::Keystore::Address from the imported/generated private key

Blockchain::Ethereum::Keystore::Address

export

Export the source/new private key

Private key bytes

AUTHOR

Reginaldo Costa <refeco@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2023 by REFECO.

This is free software, licensed under:

The MIT (X11) License