NAME

Blockchain::Ethereum::Keystore::Keyfile - Ethereum Keyfile abstraction

SYNOPSIS

Ethereum keyfile abstraction

Currently only supports read and write for keyfile v3

import_file

Import a v3 keyfile

Usage:

import_file($file_path) -> $self
  • file_path - string path for the keyfile

self

change_password

Change the imported keyfile password

Usage:

change_password($old_password, $new_password) -> $self
  • old_password - Current password for the keyfile

  • new_password - New password to be set

self

import_key

Import a Blockchain::Ethereum::keystore::Key

Usage:

import_key($keyfile) -> $self

self

write_to_file

Write the imported keyfile/private_key to a keyfile in the file system

Usage:

write_to_file($file_path) -> $self
  • file_path - file path to save the data

returns 1 upon successfully writing the file or undef if it encountered an error

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