# README
tspclient-go
tspclient-go provides implementation of the Time-Stamp Protocol (TSP) client as specified in RFC 3161.
Table of Contents
Documentation
Library documentation is available at Go Reference.
Code of Conduct
This project has adopted the CNCF Code of Conduct.
License
This project is covered under the Apache 2.0 license. You can read the license here.
# Packages
Package pki contains Status of a timestamping response defined in RFC 3161.
# Functions
NewHTTPTimestamper creates a HTTP-based timestamper with the endpoint provided by the TSA.
NewRequest creates a timestamp request based on caller provided options.
ParseSignedToken parses ASN.1 BER-encoded structure to SignedToken without verification.
# Constants
MediaTypeTimestampQuery is the content-type of timestamp query.
MediaTypeTimestampReply is the content-type of timestamp reply RFC 3161 3.4.
# Structs
Accuracy ::= SEQUENCE { seconds INTEGER OPTIONAL, millis [0] INTEGER (1..999) OPTIONAL, micros [1] INTEGER (1..999) OPTIONAL }.
InvalidResponseError is used when timestamping response is invalid.
MalformedRequestError is used when timestamping request is malformed.
MessageImprint contains the hash of the datum to be time-stamped.
Request is a time-stamping request.
RequestOptions provides options for caller to create a new timestamp request.
Response is a time-stamping response.
SignedTokenVerificationError is used when fail to verify signed token.
Timestamp denotes the time at which the timestamp token was created by the TSA
Reference: RFC 3161 2.4.2.
TSTInfo ::= SEQUENCE { version INTEGER { v1(1) }, policy TSAPolicyId, messageImprint MessageImprint, serialNumber INTEGER, genTime GeneralizedTime, accuracy Accuracy OPTIONAL, ordering BOOLEAN DEFAULT FALSE, nonce INTEGER OPTIONAL, tsa [0] GeneralName OPTIONAL, extensions [1] IMPLICIT Extensions OPTIONAL }.
TSTInfoError is used when fail a TSTInfo is invalid.
# Interfaces
Timestamper stamps the time.
# Type aliases
CertificateNotFoundError is used when identified certificate is not found in the timestampe token.
SignedToken is a parsed timestamp token with signatures.