signerCommon

package
v0.0.0-...-fdc5c16 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISigner

type ISigner interface {
	Type() string
	Sign(data []byte) (signature []byte, err error)
	Verify(data []byte, signature []byte) (passed bool, err error)
	RawKeyPair() (kp interface{})
	KeyPairData() (keyData []byte)

	PublicKeyString() (key string)
	PrivateKeyString() (key string)

	PublicKeyBytes() (key []byte)
	PrivateKeyBytes() (key []byte)

	PublicKeyCompare(k interface{}) (equal bool)
}

type KeyPair

type KeyPair struct {
	PrivateKey interface{}
	PublicKey  interface{}
}

Jump to

Keyboard shortcuts

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