crypto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2018 License: ISC Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetType

func GetType() int

Types

type PrivateKey

type PrivateKey interface {
	chainec.PrivateKey
	PublicKey() PublicKey
}

type PrivateKeyAdapter

type PrivateKeyAdapter struct {
}

func (PrivateKeyAdapter) GetD

func (pa PrivateKeyAdapter) GetD() *big.Int

func (PrivateKeyAdapter) GetType

func (pa PrivateKeyAdapter) GetType() int

func (PrivateKeyAdapter) Public

func (pa PrivateKeyAdapter) Public() (*big.Int, *big.Int)

func (PrivateKeyAdapter) PublicKey

func (pa PrivateKeyAdapter) PublicKey() PublicKey

func (PrivateKeyAdapter) Serialize

func (pa PrivateKeyAdapter) Serialize() []byte

PrivateKeyAdapter

func (PrivateKeyAdapter) SerializeSecret

func (pa PrivateKeyAdapter) SerializeSecret() []byte

type PublicKey

type PublicKey interface {
	chainec.PublicKey
}

type PublicKeyAdapter

type PublicKeyAdapter struct {
}

func (PublicKeyAdapter) GetCurve

func (pa PublicKeyAdapter) GetCurve() interface{}

func (PublicKeyAdapter) GetType

func (pa PublicKeyAdapter) GetType() int

func (PublicKeyAdapter) GetX

func (pa PublicKeyAdapter) GetX() *big.Int

func (PublicKeyAdapter) GetY

func (pa PublicKeyAdapter) GetY() *big.Int

func (PublicKeyAdapter) Serialize

func (pa PublicKeyAdapter) Serialize() []byte

PublicKeyAdapter

func (PublicKeyAdapter) SerializeCompressed

func (pa PublicKeyAdapter) SerializeCompressed() []byte

func (PublicKeyAdapter) SerializeHybrid

func (pa PublicKeyAdapter) SerializeHybrid() []byte

func (PublicKeyAdapter) SerializeUncompressed

func (pa PublicKeyAdapter) SerializeUncompressed() []byte

func (PublicKeyAdapter) ToECDSA

func (pa PublicKeyAdapter) ToECDSA() *ecdsa.PublicKey

type Signature

type Signature interface {
	chainec.Signature
}

type SignatureAdapter

type SignatureAdapter struct {
}

func (SignatureAdapter) GetR

func (s SignatureAdapter) GetR() *big.Int

func (SignatureAdapter) GetS

func (s SignatureAdapter) GetS() *big.Int

func (SignatureAdapter) Serialize

func (s SignatureAdapter) Serialize() []byte

SignatureAdapter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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