ExtendedKey

data class ExtendedKey(val keyPair: ECKeyPair, chainCode: ByteArray, depth: Byte, parentFingerprint: Int, sequence: Int, versionBytes: ByteArray)

HD Wallet中的扩展密钥

Constructors

Link copied to clipboard
constructor(keyPair: ECKeyPair, chainCode: ByteArray, depth: Byte, parentFingerprint: Int, sequence: Int, versionBytes: ByteArray)

Properties

Link copied to clipboard

密钥对

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun ExtendedKey.generateChildKey(element: BIP44Element, isGM: Boolean = true): ExtendedKey

根据给定的父级扩展密钥(ExtendedKey)和BIP44路径元素(BIP44Element)来生成子级扩展密钥的。 该函数遵循比特币和其他基于secp256k1或sm2p256v1曲线的加密货币所使用的BIP32标准进行派生。

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun serialize(publicKeyOnly: Boolean = false): String

序列化