Companion
Functions
Link copied to clipboard
Proof of work: hash(block) <= target difficulty
Link copied to clipboard
read a message from a stream
read a message from a byte array
read a message from a hex string
Link copied to clipboard
fun verifyTxOutProof(proof: ByteArray): Pair<BlockHeader, List<Pair<ByteVector32, Int>>>
Content copied to clipboard
Verify a tx inclusion proof (a merkle proof that a set of transactions are included in a given block) Note that this method doesn't validate the header's proof of work.