ecdsa

package
v0.16.0-rc Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: MIT Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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