Package-level declarations

Types

Link copied to clipboard
object Base58

Base58 is a way to encode Kryptokrona addresses (or arbitrary data) as alphanumeric strings.

Link copied to clipboard

Crypto class that loads the C library

Link copied to clipboard

Ed25519 class that loads the C library

Link copied to clipboard

Hash class that loads the C library

Link copied to clipboard

Keccak class that loads the C library

Link copied to clipboard

Wallet Encryption class.

Link copied to clipboard
class WalletFileEncryption(wallet: Wallet? = null)

This class is used to encrypt and decrypt wallet files.

Functions

Link copied to clipboard
fun generateAddress(publicSpendKey: String, publicViewKey: String): String

Generates an XKR address from a public spend key and a public view key.

Link copied to clipboard
fun generateKeyImage(transactionPublicKey: ByteArray, privateViewKey: ByteArray, publicSpendKey: ByteArray, privateSpendKey: ByteArray, outputIndex: Long): KeyImage

Generates a signature from a hash and a secret key, and returns the result as a key image.

Link copied to clipboard
fun generateKeyImageFromOutput(derivation: ByteArray, index: Long, myPrivateSpendKey: ByteArray, myPublicSpend: ByteArray): KeyImage

Generates a signature from a hash and a secret key, and returns the result as a key image.

Link copied to clipboard
fun generateKeyImagePrimitive(publicSpendKey: ByteArray, privateSpendKey: ByteArray, outputIndex: Long, derivation: ByteArray): KeyImage

Primitive method for generating a key image from the supplied values.

Link copied to clipboard

Generates XKR key pairs.

Link copied to clipboard
fun generatePBKDF2DerivedKey(password: CharArray, salt: ByteArray, keyLength: Int, iterations: Int): ByteArray

Generates a PBKDF2 derived key from a password, salt, key length and number of iterations.