extract_root_hash: Return the root hash of an xml proof or pdf certificate

View source: R/extract_root_hash.R

extract_root_hashR Documentation

Return the root hash of an xml proof or pdf certificate

Description

Return the root hash of an xml proof or pdf certificate

Usage

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

hn <- "https://raw.githubusercontent.com/rkrug/ROriginStamp/master/inst/proof.Bitcoin.xml"
extract_root_hash(hn)

hn <- "https://raw.githubusercontent.com/rkrug/ROriginStamp/master/inst/certificate.Bitcoin.pdf"
extract_root_hash(hn)


rkrug/ROriginStamp documentation built on Aug. 16, 2022, 5:45 p.m.