Skip to contents

RFC 6962 Merkle Tree Hash

Usage

merkle_root(leaves)

Arguments

leaves

See Usage.

Examples

merkle_root(lapply(c("a", "b", "c"), charToRaw))
#>  [1] 36 64 2e 73 c2 54 0a b1 21 e3 a6 bf 95 45 b0 a2 49 82 cd 83 0e b1 3d 3c d1
#> [26] 9d e3 ce 6c 02 1e c1