modulepackage
2.0.0-20240826091242-278a6b4eee33
Repository: https://github.com/mysteriumnetwork/token.git
Documentation: pkg.go.dev
# README
token
Mysterium owned Sentinel
services issues tokens which can be validated using this token
package.
Keys
To generate new public/private key pair for issuer and validator use nex command:
ssh-keygen -t rsa -b 4096 -m pem
To get public key from private key in pem format
openssl rsa -in id_rsa -pubout -out id_rsa.pub.pem
# Functions
NewIssuerJWT returns a new IssuerJWT object.
NewJWT returns a new JWT object.
NewValidatorJWT returns a new JWT validator.
# Constants
No description provided by the author
IssuerName is the expected name of the issuer for any token issued by sentinel.
# Variables
ErrTokenInvalid is returned if a given token is considered invalid by the JWT Validator.
# Structs
ClaimData can be retrieved from a token for further verification.
IssuerJWT issues JWT tokens.
JWT wraps both an issuer and validator inside a single object for easier handling.
ValidatorJWT validates given tokens.