verifier

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: ISC Imports: 13 Imported by: 4

Documentation

Index

Constants

View Source
const ExpectedSignatureLength = 65

All signed messages must have a fixed signature length.

Variables

This section is empty.

Functions

func Verify

func Verify(sig SignedMessage) (bool, error)

Verify will verify a Signature based on the recovery flag on Bitcoin mainnet.

func VerifyWithChain

func VerifyWithChain(sig SignedMessage, net *chaincfg.Params) (bool, error)

Verify will either return true if the signature is valid or an error.

Types

type SignedMessage

type SignedMessage struct {
	Address   string
	Message   string
	Signature string
}

Jump to

Keyboard shortcuts

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