From 997f267c2776170339d2ff3d5cbb25f4ef83258b Mon Sep 17 00:00:00 2001 From: Rein Krul Date: Fri, 29 Sep 2023 08:38:40 +0200 Subject: [PATCH] raw() --- vc/vp.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vc/vp.go b/vc/vp.go index b9f15cc..e7c7cc3 100644 --- a/vc/vp.go +++ b/vc/vp.go @@ -117,6 +117,11 @@ func (vp VerifiablePresentation) JWT() jwt.Token { return token } +// Raw returns the source of the presentation as it was parsed. +func (vp VerifiablePresentation) Raw() string { + return vp.raw +} + // Proofs returns the basic proofs for this presentation. For specific proof contents, UnmarshalProofValue must be used. func (vp VerifiablePresentation) Proofs() ([]Proof, error) { var (