Timestamping
Creating a timestamp request
Create an RFC 3161 timestamp request for the hash of some data, and parse it as a time-stamping authority (TSA) would.
Creating a timestamp response
Issue a timestamp as a time-stamping authority, then verify it as the client: check the token's signature, that it covers the client's data, and that it answers the client's request.