timestamp tsr request - part-cw/lambdanative GitHub Wiki
(timestamp-tsr-request tsq)
timestamp-tsr-request submits timestamp request to server to get timestamp response
Parameter | Description |
---|---|
tsq | Time stamp query to be submitted |
Example
Example 1, as used in the Timestamp response verification piece of modules/timestamp/timestamp.scm
(let* ((tsq (timestamp-tsq-generate filename))
(tsr (timestamp-tsr-request tsq)))
(if (and tsq tsr (timestamp-tsr-granted? tsr)
(fx= (timestamp-tsq-getnonce tsq) (timestamp-tsr-getnonce tsr))
(equal? (timestamp-tsq-getmessage tsq) (timestamp-tsr-getmessage tsr)))
(if (timestamp-tsr-save filename tsr)
tsr
#f
)
#f
)
)