cryptosuit

package
v1.5.33 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ETHSignType uint8 = 0 + iota
)

Variables

This section is empty.

Functions

func NewETHSignIdentity

func NewETHSignIdentity() ethsignimp

Types

type SignIdentity

type SignIdentity interface {
	// 签名
	Sign(msg []byte, identity []byte) ([]byte, error)

	Verifier(msg []byte, signature []byte, pub []byte, address []byte) (bool, error)

	GetPubKey([]byte) ([]byte, error)
}

Jump to

Keyboard shortcuts

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