blind

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECDSAConfig

type ECDSAConfig struct {
	Key *ecdsa.PrivateKey
}

func NewECDSAConfig

func NewECDSAConfig() *ECDSAConfig

func (*ECDSAConfig) ECDH

func (c *ECDSAConfig) ECDH(foreignPublicKey *crypto.PublicKey) ([]byte, error)

func (*ECDSAConfig) Marshall

func (c *ECDSAConfig) Marshall() ([]byte, error)

func (*ECDSAConfig) Sign

func (c *ECDSAConfig) Sign(data []byte) ([]byte, error)

func (*ECDSAConfig) Unmarshall

func (c *ECDSAConfig) Unmarshall(data []byte) error

func (*ECDSAConfig) Verify

func (c *ECDSAConfig) Verify(foreignPublicKey *ECDSAConfig, signatureJson []byte) (bool, error)

type ECDSASignature

type ECDSASignature struct {
	R        *big.Int
	S        *big.Int
	DataHash []byte
}

func (*ECDSASignature) Marshall

func (c *ECDSASignature) Marshall() ([]byte, error)

func (*ECDSASignature) Unmarshall

func (c *ECDSASignature) Unmarshall(data []byte) error

Jump to

Keyboard shortcuts

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