importPrivateKeyEncodedWithEncryption

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

Imports an encoded private key.

Return

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

Parameters

privateKey

Non-null encoded 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