Return the hash of an xml proof or pdf certificate

extract_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 hash as used in the proof

Examples

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