extract_hash: Return the hash of an xml proof or pdf certificate

View source: R/extract_hash.R

extract_hashR Documentation

Return the hash of an xml proof or pdf certificate

Description

Return the hash of an xml proof or pdf certificate

Usage

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

fn <- "https://raw.githubusercontent.com/rkrug/ROriginStamp/master/inst/proof.Bitcoin.xml"
extract_hash(fn)
fn <- "https://raw.githubusercontent.com/rkrug/ROriginStamp/master/inst/certificate.Bitcoin.pdf"
extract_hash(fn)


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