types

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvironmentName

type EnvironmentName string

EnvironmentName represents the environment for which the JWT token is generated

const (
	EnvironmentNameProductionMainnet EnvironmentName = "production_mainnet"
	EnvironmentNameProductionTestnet EnvironmentName = "production_testnet"
)

type NodeJWTClaims

type NodeJWTClaims struct {
	P2PId       string `json:"p2pId" validate:"required"`
	PublicKey   string `json:"public_key" validate:"required"`
	Environment string `json:"environment" validate:"required"`
	Digest      string `json:"digest" validate:"required"`
	jwt.RegisteredClaims
}

NodeJWTClaims represents the JWT claims payload for node-initiated requests.

Jump to

Keyboard shortcuts

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