EmptySecret

Functions

Link copied to clipboard
open override fun consistencyCheck(): Boolean

For unlocked secrets, checks that the secret derives the pubkey

Link copied to clipboard
open override fun getPubkey(pktype: PubkeyType): ByteArray

the pubkey is accessible even if the secret is locked

Link copied to clipboard
open override fun getSecret(): ByteArray

getting the secret can throw WalletLockedException if the wallet is locked

Link copied to clipboard
open override fun installDecrypter(decrypt: (ByteArray, Int) -> ByteArray)

Your decrypt function should throw WalletLockedException if the wallet is locked

Link copied to clipboard
open override fun serialize(): ByteArray

You need to serialize and deserialize even if locked