Package-level declarations

Types

Link copied to clipboard
data class Address(val addr: String)

ZLTC地址

Link copied to clipboard
object Base58
Link copied to clipboard
data class ECKeyPair(val privateKey: PrivateKey, val publicKey: PublicKey)
Link copied to clipboard
data class EthereumAddress(addr: String)

以太坊地址类

Link copied to clipboard
value class Hash(val value: String)
Link copied to clipboard
data class PrivateKey(val key: BigInteger)

私钥

Link copied to clipboard
data class PublicKey(val key: BigInteger)
Link copied to clipboard
object RegExpr
Link copied to clipboard
data class SignatureData(var r: BigInteger = BigInteger.ZERO, var s: BigInteger = BigInteger.ZERO, var v: BigInteger = BigInteger.ZERO, var e: BigInteger = BigInteger.ZERO)

Properties

Link copied to clipboard
const val ADDRESS_LENGTH_IN_HEX: Int = 40
Link copied to clipboard
const val HEX_PREFIX: String
Link copied to clipboard
Link copied to clipboard
const val PRIVATE_KEY_SIZE: Int = 32
Link copied to clipboard
Link copied to clipboard
const val PUBLIC_KEY_SIZE: Int = 64

Functions

Link copied to clipboard
fun ECKeyPair.toAddress(isGM: Boolean = true): Address
fun PublicKey.toAddress(isGM: Boolean = true): Address

将以太坊地址转为ZLTC地址

Link copied to clipboard

将以太坊地址转为ZLTC地址

Link copied to clipboard
fun SignatureData.toHex(prefix: String = HEX_PREFIX): String