BitcoinAddress

Represents a legacy Bitcoin address in C++.

Constructors

Link copied to clipboard
open fun BitcoinAddress(string: String)
Initializes an address from a Base58 sring.
Link copied to clipboard
open fun BitcoinAddress(data: Array<Byte>)
Initializes an address from raw data.
Link copied to clipboard
open fun BitcoinAddress(publicKey: PublicKey, prefix: Byte)
Initializes an address from a public key and a prefix byte.

Functions

Link copied to clipboard
open fun description(): String
Returns the address in Base58 string representation.
Link copied to clipboard
Compares two addresses for equality.
Link copied to clipboard
open fun isValid(data: Array<Byte>): Boolean
Determines if the data is a valid Bitcoin address.
Link copied to clipboard
open fun isValidString(string: String): Boolean
Determines if the string is a valid Bitcoin address.
Link copied to clipboard
open fun keyhash(): Array<Byte>
Returns the key hash data.
Link copied to clipboard
open fun prefix(): Byte
Returns the address prefix.