seal

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	Hash            []byte
	Signature       []byte
	SignerPublicKey []byte
	SignerAlgorithm string
}

func (*Entity) HexHash

func (e *Entity) HexHash() string

func (*Entity) HexPublicKey

func (e *Entity) HexPublicKey() string

func (*Entity) HexSignature

func (e *Entity) HexSignature() string

func (*Entity) IsPureEmpty

func (e *Entity) IsPureEmpty() bool

func (*Entity) Sign

func (e *Entity) Sign(orgData []byte, tools crypto.Tools, privateKey interface{}) (err error)

func (Entity) Verify

func (e Entity) Verify(orgData []byte, hashCalc hashes.IHashCalculator) (passed bool, err error)

Jump to

Keyboard shortcuts

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