example how tree hash is compared with expected , with no header byte considered val receiptTreeHash = blake2b256(receiptOutputErgoTree.slice(1, receiptOutputErgoTree.size)) Make a high-level ErgoScript function to skip header byte