lib/reth/account.rb
def load(path, password=nil)
        json = JSON.load File.read(path)
        raise ValidationError, 'Invalid keystore file' unless Keystore.validate(json)
        new json, password, path
      end
##
# Load an account from a keystore file.
#
# @param path [String] full path to the keyfile
# @param password [String] the password to decrypt the key file or
#   `nil` to leave it encrypted
#
Load an account from a keystore file.
Load an account from a keystore file .
def load(path, password=nil)
        json = JSON.load File.read(path)
        raise ValidationError, 'Invalid keystore file' unless Keystore.validate(json)
        new json, password, path
      end
def load ( path , password = nil ) json = JSON . load File . read ( path ) raise ValidationError , 'Invalid keystore file' unless Keystore . validate ( json ) new json , password , path end
Load an account from a keystore file.
Load an account from a keystore file .
path
full path to the keyfile
full path to the keyfile
password
the password to decrypt the key file or `nil` to leave it encrypted
the password to decrypt the key file or ` nil ` to leave it encrypted