common

package
v0.0.0-...-88f3d36 Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HexToBigInt

func HexToBigInt(s string) *big.Int

Types

type Hash

type Hash struct {
	cmn.HexBytes
}

type Node

type Node struct {
	Index  int
	PubKey Point
}

type Point

type Point struct {
	X big.Int
	Y big.Int
}

func BigIntToPoint

func BigIntToPoint(x, y *big.Int) Point

type PrimaryPolynomial

type PrimaryPolynomial struct {
	Coeff     []big.Int
	Threshold int
}

type PrimaryShare

type PrimaryShare struct {
	Index int
	Value big.Int
}

type SigncryptedOutput

type SigncryptedOutput struct {
	NodePubKey       Point
	NodeIndex        int
	SigncryptedShare Signcryption
}

type Signcryption

type Signcryption struct {
	Ciphertext []byte
	R          Point
	Signature  big.Int
}

Jump to

Keyboard shortcuts

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