ecdsa

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ecdsa defines interfaces for ECDSA signing based on [SEC 1].

[SEC 1]: Standards for Efficient Cryptography, SEC 1: Elliptic Curve
  Cryptography, Certicom Research, https://www.secg.org/sec1-v2.pdf

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicKey

type PublicKey cecdsa.PublicKey

PublicKey holds a public key of the Signer.

func (*PublicKey) Marshal

func (pk *PublicKey) Marshal() []byte

Marshal serializes Public Key to bytes in uncompressed form as described in [SEC 1] section 2.3.3: `04 + <x coordinate> + <y coordinate>`

type Signature

type Signature struct {
	R          *big.Int
	S          *big.Int
	RecoveryID int
}

Signature holds a signature in a form of two big.Int `r` and `s` values and a recovery ID value in {0, 1, 2, 3}.

The signature is chain-agnostic. Some chains (e.g. Ethereum and BTC) requires `v` to start from 27. Please consult the documentation about what the particular chain expects.

Directories

Path Synopsis
tss
Package tss contains implementation of Threshold Multi-Party ECDSA Signature Scheme.
Package tss contains implementation of Threshold Multi-Party ECDSA Signature Scheme.
gen

Jump to

Keyboard shortcuts

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