crypto

package
v0.0.0-...-e11dbd8 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWSNodeSignature

type JWSNodeSignature struct {
}

type NodeKey

type NodeKey interface {
	// Sign bytes with Node Key, return signature
	Sign(content []byte) (*NodeSignature, error)

	// Verify Signature
	Verify(signature []byte) bool
}

type NodeSignature

type NodeSignature interface {
	AsJWSEncoded() string
	AsJWS() *jwt.Token
}

func NodeSignatureFromJWS

func NodeSignatureFromJWS(jws *jwt.Token) (*NodeSignature, error)

func NodeSignatureFromJWSEncoded

func NodeSignatureFromJWSEncoded(encodedJws string) (*NodeSignature, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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