Congrats on reaching 1.0!
I realise this client is fairly new, but it'd be great to have some simple docs on usage in the README. So far I only have the tests to go on. A simple explanation on how to build a TSQ, send to server, verify certs + timestamping cert would be much appreciated!
This is about as far as I've got from trying to decipher the unit tests...
import requests
from rfc3161_client.base import HashAlgorithm, TimestampRequestBuilder, TimeStampRequest
from rfc3161_client.verify import VerifierBuilder
tsr: TimeStampRequest = TimestampRequestBuilder(
data="my message",
hash_algorithm=HashAlgorithm.SHA256,
nonce=True,
cert_req=True,
).build()
headers = {"Content-Type": "application/timestamp-query", "Accept": "application/timestamp-reply"}
res = requests.post("http://timestamp.digicert.com", headers=headers, data=tsr.dump())
verifier = VerifierBuilder().build()
...
Congrats on reaching 1.0!
I realise this client is fairly new, but it'd be great to have some simple docs on usage in the README. So far I only have the tests to go on. A simple explanation on how to build a TSQ, send to server, verify certs + timestamping cert would be much appreciated!
This is about as far as I've got from trying to decipher the unit tests...