Static Methods
Keep in mind the following points which are applicable for each create-account function:
It buys ram for 8192 bytes
It executes blockchain create-account transaction
It sets the executive authority to
active
create (name, privateKey, ?accountCreator)
Creates a fresh new account for a given name and private key
Keep in mind that this name may already exists on the network
Defaults/Optionals:
accountCreator - Default Account
createFromName (name, ?accountCreator)
Creates a fresh new account for a given name
Keep in mind that this name may already exists on the network
Defaults/Optionals:
accountCreator - Default Account
createRandom (?accountCreator)
Creates new random account
Defaults/Optionals:
accountCreator - Default Account
createRandoms (accountsCount, ?accountCreator)
Creates new random accounts
Defaults/Optionals:
accountCreator - Default Account
createEncrypted (password, ?accountCreator)
Create a new random account and encrypt it. Created account's data is encrypted and a cipherText is derived by encrypting privateKey::dataHash
Defaults/Optionals:
accountCreator - Default Account
fromEncrypted (encryptedAccount, password)
Decrypt an encrypted account. Decrypts cipherText and gets it's parts (privateKey and dataHash). The PrivateKey is merged with the other encryptedAccount properties into an object which after the merging is hashed. This hash is validated against the dataHash for correctness.
Last updated