Return the root hash of an xml proof or pdf certificate

extract_root_hash(x)

Arguments

x

filename or URL pointing either to the xml proof or the pdf certificate issued from OriginStamp.

Value

an hash object containing the root hash

Examples

extract_root_hash("https://raw.githubusercontent.com/rkrug/ROriginStamp/master/inst/proof.Bitcoin.xml")
#> [1] "5e92ec09501a5d39e251a151f84b5e2228312c445eb23b4e1de6360e27bad54b"
extract_root_hash("https://raw.githubusercontent.com/rkrug/ROriginStamp/master/inst/certificate.Bitcoin.pdf")
#> [1] "5e92ec09501a5d39e251a151f84b5e2228312c445eb23b4e1de6360e27bad54b"