blind

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ED25519Config

type ED25519Config struct {
	PublicKey  *ed25519.PublicKey
	PrivateKey *ed25519.PrivateKey
}

func NewED25519Config

func NewED25519Config() *ED25519Config

func (*ED25519Config) Marshall

func (c *ED25519Config) Marshall() ([]byte, error)

func (*ED25519Config) Sign

func (c *ED25519Config) Sign(data []byte) ([]byte, error)

func (*ED25519Config) Unmarshall

func (c *ED25519Config) Unmarshall(data []byte) error

func (*ED25519Config) Verify

func (c *ED25519Config) Verify(foreignPublicKey *ED25519Config, signatureJson []byte) (bool, error)

type ED25519Signature

type ED25519Signature struct {
	Message   []byte
	Signature []byte
}

func (*ED25519Signature) Marshall

func (c *ED25519Signature) Marshall() ([]byte, error)

func (*ED25519Signature) Unmarshall

func (c *ED25519Signature) Unmarshall(data []byte) error

Jump to

Keyboard shortcuts

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