nearjwt

package
v0.0.0-...-269d6e4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SigningMethodNear

type SigningMethodNear struct {
	Name string
}

SigningMethodNear implements the NEAR signing method. Expects ed25519.Ed25519PrivateKey for signing and ed25519.Ed25519PublicKey for validation.

var SigningMethod *SigningMethodNear

SigningMethod is a specific instance of the NEAR signing method.

func (*SigningMethodNear) Alg

func (m *SigningMethodNear) Alg() string

Alg returns the name of this signing method.

func (*SigningMethodNear) Sign

func (m *SigningMethodNear) Sign(signingString string, key interface{}) (string, error)

Sign implements the Sign method from SigningMethod. For this signing method, must be a ed25519.Ed25519PrivateKey structure.

func (*SigningMethodNear) Verify

func (m *SigningMethodNear) Verify(signingString, signature string, key interface{}) error

Verify implements the Verify method from SigningMethod. For this signing method, must be a ed25519.PublicKey structure.

Jump to

Keyboard shortcuts

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