From bddc1a38bad3eceb51b0b91aabfe22f951fe9c7f Mon Sep 17 00:00:00 2001 From: Rein Krul Date: Fri, 29 Sep 2023 07:16:41 +0200 Subject: [PATCH] godoc --- vc/vc.go | 1 + vc/vp.go | 1 + 2 files changed, 2 insertions(+) diff --git a/vc/vc.go b/vc/vc.go index a0bc2b0..505f8ad 100644 --- a/vc/vc.go +++ b/vc/vc.go @@ -46,6 +46,7 @@ var errCredentialSubjectWithoutID = errors.New("credential subjects have no ID") // ParseVerifiableCredential parses a Verifiable Credential from a string, which can be either in JSON-LD or JWT format. // If the format is JWT, the parsed token can be retrieved using JWT(). +// Note that it does not do any signature checking. func ParseVerifiableCredential(raw string) (*VerifiableCredential, error) { raw = strings.TrimSpace(raw) if strings.HasPrefix(raw, "{") { diff --git a/vc/vp.go b/vc/vp.go index e62fbc2..f2f1e6f 100644 --- a/vc/vp.go +++ b/vc/vp.go @@ -47,6 +47,7 @@ type VerifiablePresentation struct { // ParseVerifiablePresentation parses a Verifiable Presentation from a string, which can be either in JSON-LD or JWT format. // If the format is JWT, the parsed token can be retrieved using JWT(). +// Note that it does not do any signature checking. func ParseVerifiablePresentation(raw string) (*VerifiablePresentation, error) { if strings.HasPrefix(raw, "{") { // Assume JSON-LD format