DeterministicWallet

object DeterministicWallet

see https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki

Types

Link copied to clipboard
data class ExtendedPrivateKey(    val secretkeybytes: ByteVector32,     val chaincode: ByteVector32,     val depth: Int,     val path: KeyPath,     val parent: Long)
Link copied to clipboard
data class ExtendedPublicKey(    val publickeybytes: ByteVector,     val chaincode: ByteVector32,     val depth: Int,     val path: KeyPath,     val parent: Long)

Functions

Link copied to clipboard
fun encode(input: DeterministicWallet.ExtendedPrivateKey, testnet: Boolean): String
fun encode(input: DeterministicWallet.ExtendedPrivateKey, prefix: Int): String
fun encode(input: DeterministicWallet.ExtendedPublicKey, testnet: Boolean): String
fun encode(input: DeterministicWallet.ExtendedPublicKey, prefix: Int): String
Link copied to clipboard
fun fingerprint(input: DeterministicWallet.ExtendedPrivateKey): Long
fun fingerprint(input: DeterministicWallet.ExtendedPublicKey): Long
Link copied to clipboard
Link copied to clipboard
fun hardened(index: Long): Long
Link copied to clipboard
fun isHardened(index: Long): Boolean
Link copied to clipboard
Link copied to clipboard
fun write(input: DeterministicWallet.ExtendedPublicKey, out: Output)

Properties

Link copied to clipboard
const val hardenedKeyIndex: Long = 2147483648
Link copied to clipboard
const val tprv: Int = 70615956
Link copied to clipboard
const val tpub: Int = 70617039
Link copied to clipboard
const val uprv: Int = 71978536
Link copied to clipboard
const val upub: Int = 71979618
Link copied to clipboard
const val vprv: Int = 73341116
Link copied to clipboard
const val vpub: Int = 73342198
Link copied to clipboard
const val xprv: Int = 76066276
Link copied to clipboard
const val xpub: Int = 76067358
Link copied to clipboard
const val yprv: Int = 77428856
Link copied to clipboard
const val ypub: Int = 77429938
Link copied to clipboard
const val zprv: Int = 78791436
Link copied to clipboard
const val zpub: Int = 78792518