jsonsign: comment updates

Change-Id: I32ca3fc47b7f2ee4208aa69b05cf3cd1fcc57696
This commit is contained in:
Brad Fitzpatrick 2011-06-22 18:04:20 -07:00
parent 3ee6467176
commit a49ffa1239
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,7 @@ type VerifyRequest struct {
// set if Verify() returns true:
PayloadMap map[string]interface{} // The JSON values from BPJ
SignerKeyId string
SignerKeyId string // e.g. "2931A67C26F5ABDA"
Err os.Error // last error encountered
}
@ -204,6 +204,7 @@ func NewVerificationRequest(sjson string, fetcher blobref.StreamingFetcher) (vr
return
}
// TODO: turn this into (bool, os.Error) return, probably, or *Details, os.Error.
func (vr *VerifyRequest) Verify() bool {
if vr.Err != nil {
return false