NAME

Blockchain::Ethereum::Keystore::Key - Private key abstraction

SYNOPSIS

Private key abstraction

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

my $Blockchain::Ethereum::Keystore::Key->new(private_key => $private_key_bytes);

sign_transaction

Sign a Blockchain::Ethereum::Transaction object

Usage:

sign_transaction($transaction) -> $$transaction

self

address

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

Usage:

address() -> L<Blockchain::Ethereum::Keystore::Address>

Blockchain::Ethereum::Keystore::Address

export

Export the private key bytes

Usage:

export() -> private key bytes

Private key bytes

AUTHOR

Reginaldo Costa, <refeco at cpan.org>

BUGS

Please report any bugs or feature requests to https://github.com/refeco/perl-ethereum-keystore

LICENSE AND COPYRIGHT

This software is Copyright (c) 2023 by REFECO.

This is free software, licensed under:

The MIT License