crypto

package module
v0.0.0-...-10bda43 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddress

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

Types

type Header struct {
	Schema    Schema
	PublicKey []byte
	Signature []byte
}

func (Header) Address

func (h Header) Address() demaybu.Address

func (Header) Verify

func (h Header) Verify(message []byte) bool

type Schema

type Schema = byte
const SchemaED25519 Schema = 1 + iota

Jump to

Keyboard shortcuts

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