didjwt

package
v0.0.0-...-cda998f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is a service object for parsing didtype jwts

func NewService

func NewService(didService *did.Service) *Service

NewService returns a new service

func (*Service) ParseJWT

func (s *Service) ParseJWT(tokenString string) (*jwt.Token, error)

ParseJWT takes a jwt token finds the correct key to verify it and returns the token

type VCClaimsJWT

type VCClaimsJWT struct {
	Data string `json:"data"`
	jwt.StandardClaims
}

VCClaimsJWT is a jwt claims struct with a data field for vc data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL