Hash256

@Serializable
data class Hash256(val hash: ByteArray = ByteArray(32, { _ -> 0 })) : BCHserializable

Constructors

Link copied to clipboard
constructor(hex: String)
constructor(stream: BCHserialized)
constructor(hash: ByteArray = ByteArray(32, { _ -> 0 }))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun BCHdeserialize(stream: BCHserialized): BCHserialized
Link copied to clipboard
open override fun BCHserialize(format: SerializationType): BCHserialized
Link copied to clipboard
operator fun compareTo(h: Any?): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
operator fun get(i: Int): Byte
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
operator fun set(i: Int, b: Byte)
Link copied to clipboard
open fun toByteArray(format: SerializationType = SerializationType.UNKNOWN): ByteArray
Link copied to clipboard
fun toHex(): String

Convert to the bitcoin standard hex representation

Link copied to clipboard
open override fun toString(): String

The default display will be bitcoin standard hex representation (reversed hex)