sign

package
v0.7.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TwoBigIntBytesLength = (expectedBigIntBytesLength * 2) + sizeBytesLength
)

Variables

This section is empty.

Functions

func DeserializeTwoBigInt added in v0.7.5

func DeserializeTwoBigInt(data []byte) (*big.Int, *big.Int, error)

func MustConvertPrivateKeyToEcdsa

func MustConvertPrivateKeyToEcdsa(privateKey crypto.PrivateKey) *ecdsa.PrivateKey

func MustConvertPublicKeyToEcdsa

func MustConvertPublicKeyToEcdsa(publicKey crypto.PublicKey) *ecdsa.PublicKey

func SerializeTwoBigInt added in v0.7.5

func SerializeTwoBigInt(one, two *big.Int) []byte

Types

type AlgorithmProvider

type AlgorithmProvider interface {
	Sign(crypto.PrivateKey) core.Signer
	Verify(crypto.PublicKey) core.Verifier
}

func NewECDSAProvider

func NewECDSAProvider() AlgorithmProvider

Jump to

Keyboard shortcuts

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