signer

package
v0.0.0-...-1d04f91 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FixedKSigner

type FixedKSigner struct {
	// contains filtered or unexported fields
}

FixedKSigner is a ethereum ECDSA signer who always sign payload with the given K value. In theory K value is randomly selected in ECDSA algorithm's step 3: https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm, but here we use a fixed K value instead.

func NewFixedKSigner

func NewFixedKSigner(privKey string) (*FixedKSigner, error)

func (*FixedKSigner) SignWithK

func (s *FixedKSigner) SignWithK(k *secp256k1.ModNScalar) func(hash []byte) ([]byte, bool)

SignWithK signs the given hash using fixed K.

Jump to

Keyboard shortcuts

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