crypto

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Verify

func Verify(pk PublicKey, sig Signature, m Message) (valid bool, err error)

Verify validates the statement: only `M` could have generated `sig` given the validator has a message `m`, a signature `sig`, and a public key `pk`.

Out:

valid - a boolean value indicating the signature is valid
err - a standard error message indicating any process issues

In:

pk - the public key belonging to the signer `M`
m - a series of bytes representing the signed message

Types

This section is empty.

Jump to

Keyboard shortcuts

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