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