Skip to contents

Build an inclusion proof (audit path) for the given leaf

Usage

inclusion_proof(leaves, index)

Arguments

leaves

See Usage.

index

See Usage.

Examples

leaves <- lapply(c("a", "b", "c", "d"), charToRaw)
p <- inclusion_proof(leaves, 2L)
p$path_hex
#> [[1]]
#> [1] "B137985FF484FB600DB93107C77B0365C80D78F5B429DED0FD97361D077999EB"
#> 
#> [[2]]
#> [1] "D070DC5B8DA9AEA7DC0F5AD4C29D89965200059C9A0CECA3ABD5DA2492DCB71D"
#>