crypto

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSignatureData

func NewSignatureData(msgHash []byte, publicKey string, r, s *big.Int) (string, error)

func SignCompact

func SignCompact(curve *btcec.KoblitzCurve, r, s *big.Int, publicKey btcec.PublicKey, hash []byte, isCompressedKey bool) ([]byte, error)

SignCompact Calculate the signature string according to R and S

func SignToString

func SignToString(sign []byte) string

Types

This section is empty.

Directories

Path Synopsis
vrf
secp256k1
Package secp256k1 is an implementation of the kyber.{Group,Point,Scalar} //////////////////////////////////////////////////////////////////////////////
Package secp256k1 is an implementation of the kyber.{Group,Point,Scalar} //////////////////////////////////////////////////////////////////////////////
utils
* The MIT License (MIT)
* The MIT License (MIT)

Jump to

Keyboard shortcuts

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