Title: | Create Trusted Timestamps of Datasets and Files |
---|---|
Description: | Trusted Timestamps (tts) are created by incorporating a hash of a file or dataset into a transaction on the decentralized blockchain (Stellar network). The package makes use of a free service provided by <https://stellarapi.io>. |
Authors: | Peter Muller [aut, cre] |
Maintainer: | Peter Muller <[email protected]> |
License: | AGPL-3 |
Version: | 0.2.6 |
Built: | 2025-03-01 03:20:05 UTC |
Source: | https://github.com/ttspackage/tts |
Convert hash on STELLAR network (base64 encoded) to standard hexadecimal value
convert_stellarHash(data)
convert_stellarHash(data)
data |
base64 encoded hash |
hex hexadecimal hash
convert_stellarHash("KMVvhSYRAquk3lPpzljU4SytQSawsTz1aeB+PoKFaf0=")
convert_stellarHash("KMVvhSYRAquk3lPpzljU4SytQSawsTz1aeB+PoKFaf0=")
Create sha256 hash of a file
create_hashFile(path)
create_hashFile(path)
path |
filename (and path, if outside working directory) of a file |
hash
create_hashFile("test.rds")
create_hashFile("test.rds")
Create sha256 hash of an object/dataset
create_hashObject(data)
create_hashObject(data)
data |
any dataset or object |
hash
create_hashObject(data)
create_hashObject(data)
Create trusted timestamp of a file
create_ttsFile(path, proxy_ip = NULL, proxy_port = NULL)
create_ttsFile(path, proxy_ip = NULL, proxy_port = NULL)
path |
filename (and path, if outside working directory) |
proxy_ip |
if needed, provide proxy ip |
proxy_port |
if needed, provide proxy port |
url
create_ttsFile("test.rds")
create_ttsFile("test.rds")
Create trusted timestamp of an object/dataset
create_ttsObject(data, proxy_ip = NULL, proxy_port = NULL)
create_ttsObject(data, proxy_ip = NULL, proxy_port = NULL)
data |
any dataset or object |
proxy_ip |
if needed, provide proxy ip |
proxy_port |
if needed, provide proxy port |
url
create_ttsObject(data)
create_ttsObject(data)
Retrieve hash from STELLAR network
get_hash(url, proxy_ip = NULL, proxy_port = NULL)
get_hash(url, proxy_ip = NULL, proxy_port = NULL)
url |
url |
proxy_ip |
if needed, provide proxy ip |
proxy_port |
if needed, provide proxy port |
hash
get_hash("https://horizon.stellar.org/transactions/ea0ae0etc")
get_hash("https://horizon.stellar.org/transactions/ea0ae0etc")
Retrieve timestamp from STELLAR network
get_timestamp(url, proxy_ip = NULL, proxy_port = NULL)
get_timestamp(url, proxy_ip = NULL, proxy_port = NULL)
url |
url |
proxy_ip |
if needed, provide proxy ip |
proxy_port |
if needed, provide proxy port |
GMT GMT-timestamp
get_timestamp("https://horizon.stellar.org/transactions/ea0ae0etc")
get_timestamp("https://horizon.stellar.org/transactions/ea0ae0etc")
Get url of the transaction on STELLAR network (stellarchain.io (non-json))
get_url_blockchaintransaction(url)
get_url_blockchaintransaction(url)
url |
url |
url url of blockchain transaction
get_url_blockchaintransaction("https://horizon.stellar.org/transactions/ea0ae0etc")
get_url_blockchaintransaction("https://horizon.stellar.org/transactions/ea0ae0etc")
Validate hash of a file (created on the fly) with hash on STELLAR network p.s. stellar transactions take between 5-7 seconds. If you validate to soon after creating a timestamp, it will fail...
validate_hashFile(url, path, proxy_ip = NULL, proxy_port = NULL)
validate_hashFile(url, path, proxy_ip = NULL, proxy_port = NULL)
url |
url |
path |
filename (and path, if outside working directory) |
proxy_ip |
if needed, provide proxy ip |
proxy_port |
if needed, provide proxy port |
res result of validation
validate_hashFile("https://horizon.stellar.org/transactions/ea0ae0etc", "test.rds")
validate_hashFile("https://horizon.stellar.org/transactions/ea0ae0etc", "test.rds")
Validate hash of an object/dataset (created on the fly) with hash on STELLAR network p.s. stellar transactions take between 5-7 seconds. If you validate to soon after creating a timestamp, it will fail...
validate_hashObject(url, data, proxy_ip = NULL, proxy_port = NULL)
validate_hashObject(url, data, proxy_ip = NULL, proxy_port = NULL)
url |
url |
data |
any dataset or object |
proxy_ip |
if needed, provide proxy ip |
proxy_port |
if needed, provide proxy port |
res result of validation
validate_hashObject("https://horizon.stellar.org/transactions/ea0ae0etc", data)
validate_hashObject("https://horizon.stellar.org/transactions/ea0ae0etc", data)