API for interacting with keys.
Methods
-
<inner> create(alias, password)
-
Create a new key.
Parameters:
Name Type Description alias
String User specified, unique identifier.
password
String User specified, key password.
Returns:
Newly created key.
- Type
- Promise.<Key>
-
<inner> delete(xpub, password)
-
Parameters:
Name Type Description xpub
String Hex-encoded string representation of the key.
password
String Key password.
-
<inner> list()
-
Got all the keys in one Bytom node.
Returns:
All keys.
- Type
- Promise.<Array.<Key>>
-
<inner> resetPassword(xpub, oldPassword, newPassword)
-
Reset key password.
Parameters:
Name Type Description xpub
String Hex-encoded string representation of the key.
oldPassword
String Old password.
newPassword
String New password.