blockHash

abstract fun blockHash(serializedBlockHeader: ByteArray): ByteArray

Calculates the block hash given a serialized header. Note that by convention hashes are displayed in byte-reverse order (as if a little-endian number was being displayed). This return value is not reversed. (hash.reversed().toHex() == "hex header from explorer") -> true


abstract fun blockHash(serializedBlockHeader: UByteArray): UByteArray