timestamp tsr getstatusstr - part-cw/lambdanative GitHub Wiki
(timestamp-tsr-getstatusstr tsr)
timestamp-tsr-getstatusstr gets timestamp response status string
Parameter | Description |
---|---|
tsr | Timestamp response |
Example
Example 1: Obtain a trusted timestamp for a file containing the string "LambdaNative" and query the timestamp response code
> (define filename "LNtest")
> (u8vector->file (u8vector 76 97 109 98 100 97 78 97 116 105 118 101) filename)
> (define tsr (timestamp-gettimestamp filename))
> (timestamp-tsr-getstatus tsr)
0
> (timestamp-tsr-getstatusstr tsr)
"Granted"
> (timestamp-tsr-granted? tsr)
#t