lib/reth/account.rb
##
# Create a new account.
#
# Note that this creates the account in memory and does not store it on
# disk.
#
# @param password [String] used to encrypt the private key
# @param key [String] the private key, or `nil` to generate a random one
# @param uuid [String] an optional id
#
Create a new account.
Note that this creates the account in memory and does not store it on
disk.
Create a new account . Note that this creates the account in memory and does not store it on disk .
def create(password, key=nil, uuid=nil, path=nil)
        key ||= Utils.mk_random_privkey
        json = Keystore.make_json key, password
        json[:id] = uuid
        new json, password, path
      end
def create ( password , key = nil , uuid = nil , path = nil ) key ||= Utils . mk_random_privkey json = Keystore . make_json key , password json [ :id ] = uuid new json , password , path end
Create a new account.
Create a new account .
password
used to encrypt the private key
used to encrypt the private key
key
the private key, or `nil` to generate a random one
the private key or ` nil ` to generate a random one
uuid
an optional id
an optional id
path