SignJSON signs the provided json at the optional time t. If t is the zero Time, the current time is used.
(ctx context.Context, json string, t time.Time)
| 109 | // SignJSON signs the provided json at the optional time t. |
| 110 | // If t is the zero Time, the current time is used. |
| 111 | func (s *Signer) SignJSON(ctx context.Context, json string, t time.Time) (string, error) { |
| 112 | sr := s.baseSigReq |
| 113 | sr.UnsignedJSON = json |
| 114 | sr.SignatureTime = t |
| 115 | return sr.Sign(ctx) |
| 116 | } |
| 117 | |
| 118 | type memoryBlobFetcher map[blob.Ref]func() (size uint32, rc io.ReadCloser) |
| 119 |