secp256k1

package
v3.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PaddedBytes added in v3.5.0

func PaddedBytes(i *big.Int, length int) []byte

Helper function to ensure byte arrays are properly padded to specified length

Types

type ECDSASignature

type ECDSASignature struct {
	R, S *big.Int
}

ECDSASignature represents the R and S components of a signature.

type Keys

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

func DeriveKeysFromMasterPrivateKey

func DeriveKeysFromMasterPrivateKey(masterPrivateKey []byte) (k *Keys, err error)

func (*Keys) GetFormattedPublicKey

func (k *Keys) GetFormattedPublicKey() []byte

func (*Keys) Sign

func (k *Keys) Sign(message []byte) ([]byte, error)

func (*Keys) Verify

func (k *Keys) Verify(message, signature []byte) (bool, error)

Jump to

Keyboard shortcuts

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