Module: stayge-wallet/icon-js/key

Provides key related functions for ICON

Source:

Methods


<static> generatePrivateKey()

Generate a new private key

Source:
Returns:
Type
Buffer

<static> privateKeyFromKeyStoreObj(keyStoreObj, password)

Get a private key from the key store object

Parameters:
Name Type Description
keyStoreObj Object
password string
Source:
Returns:

private key

Type
Buffer

<static> privateToPublic(privateKey)

Parameters:
Name Type Description
privateKey Buffer
Source:
Returns:
Type
Buffer

<static> publicToAddress(publicKey)

Parameters:
Name Type Description
publicKey Buffer
Source:
Returns:
Type
Buffer

<static> toKeyStoreObj(privateKey, address, password, options)

Return a keystore object from the wallet information

Parameters:
Name Type Description
privateKey Buffer
address String
password String
options Object
Source:
Returns:

keystore object

Type
Object