verifier

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: ISC Imports: 13 Imported by: 4

Documentation

Index

Constants

View Source
const ExpectedSignatureLength = 65

All signed messages are expected to 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 main network.

func VerifyWithChain

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

VerifyWithChain 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