crypto

package module
v0.0.0-...-be189af Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const SchemaED25519 = 0

Variables

This section is empty.

Functions

func EventInputVerifier

func EventInputVerifier(input *dapp.EventInput) bool

func NewAddress

func NewAddress(schema byte, publicKey []byte) dapp.Address

Types

type ED25519

type ED25519 struct {
	// contains filtered or unexported fields
}

func GenerateED25519

func GenerateED25519(r io.Reader) *ED25519

func NewED25519

func NewED25519(seed []byte) *ED25519

func (ED25519) Address

func (ed ED25519) Address() dapp.Address

func (ED25519) Auth

func (ed ED25519) Auth(msg []byte) dapp.AuthHeader

func (ED25519) Public

func (ed ED25519) Public() []byte

func (ED25519) Schema

func (ED25519) Schema() byte

func (ED25519) Sign

func (ed ED25519) Sign(msg []byte) []byte

type Signer

type Signer interface {
	Schema() byte
	Sign([]byte) []byte
	Public() []byte
	Address() dapp.Address
	Auth([]byte) dapp.AuthHeader
}

Jump to

Keyboard shortcuts

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