ecdsa

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signature

type Signature struct {
	R curve.Point
	S curve.Scalar
}

func EmptySignature

func EmptySignature(group curve.Curve) Signature

EmptySignature returns a new signature with a given curve, ready to be unmarshalled.

func ParseSignature

func ParseSignature(group curve.Curve, b []byte) (*Signature, error)

func (*Signature) Serialize

func (sig *Signature) Serialize() []byte

func (*Signature) SerializeDER

func (sig *Signature) SerializeDER() []byte

func (*Signature) SerializeEthereum

func (sig *Signature) SerializeEthereum() []byte

func (Signature) Verify

func (sig Signature) Verify(X curve.Point, hash []byte) bool

Verify is a custom signature format using curve data.

Jump to

Keyboard shortcuts

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