importPrivateKeyWithEncryption

open fun importPrivateKeyWithEncryption(privateKey: Array<Byte>, name: String, password: Array<Byte>, coin: CoinType, encryption: StoredKeyEncryption): StoredKey

Imports a private key.

Return

Nullptr if the key can't be imported, the stored key otherwise

Parameters

privateKey

Non-null Block of data private key

name

The name of the stored key to import as a non-null string

password

Non-null block of data, password of the stored key

coin

the coin type

encryption

cipher encryption mode