ecdsa

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 2 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 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.

func (*Signature) String added in v1.8.0

func (s *Signature) String() string

String formats Signature to a string that contains R and S values as hexadecimals.

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