Documentation ¶
Index ¶
- Variables
- func ComputeHash256(nums ...*big.Int) *big.Int
- func GetBip340E(Px, Py *big.Int, rX []byte, m [32]byte) *big.Int
- func GetId(certificate *x509.Certificate) int32
- func GetIdofCert(name string) int32
- func GetRandomInZnStar(n *big.Int, random io.Reader) (*big.Int, error)
- func GetScalarETH(message []byte, Rx, Ry, Px, Py *big.Int) *big.Int
- func GetSortedPartyID(ids []int) tss.SortedPartyIDs
- func HashWithTag(tag string, msg []byte) []byte
- func IntToBytes(i *big.Int) []byte
- func IsEven(b *big.Int) bool
- func LiftX(curve elliptic.Curve, x *big.Int) (*big.Int, *big.Int, error)
- func LiftXEvenY(curve elliptic.Curve, x *big.Int) (*big.Int, *big.Int, error)
- func LoadCertificateFromFilePath(certFilePath string) (*x509.Certificate, error)
- func LoadPrivateKeyPemFilePath(password, keyFilePath string) (*ecdsa.PrivateKey, error)
- func MarshalMessage(msg tss.Message) ([]byte, error)
- func MarshalMessageArray(msg []tss.Message) ([][]byte, error)
- func ParseCertificate(certPEM []byte) (*x509.Certificate, error)
- func ParseCertificateKeyPem(password string, certKeyPEM []byte) (*ecdsa.PrivateKey, error)
- func ParsePoly(buffer []byte) (vss.Vs, error)
- func ParseShare(buffer []byte) (*vss.Share, error)
- func ReConstructSecret(shares ...*vss.Share) (*big.Int, error)
- func ToBytes(data interface{}) []byte
- func ToPoint(curve elliptic.Curve, x []byte) (*big.Int, *big.Int, error)
- func UnMarshalMessage(msg []byte) (tss.Message, error)
- func UnMarshalMessageArray(msg [][]byte) ([]tss.Message, error)
- func VerifyCert(childCert, rootCert *x509.Certificate) bool
- func VerifyCertificate(childCertPem, rootCertPem []byte) bool
- type CLMessage
- type CertificateAsPem
- type Point
Constants ¶
This section is empty.
Variables ¶
View Source
var ONE = big.NewInt(1)
View Source
var ZERO = big.NewInt(0)
Functions ¶
func GetId ¶
func GetId(certificate *x509.Certificate) int32
func GetIdofCert ¶
func GetRandomInZnStar ¶
Generate a random element in the group of all the elements in Z/nZ that has a multiplicative inverse.
func GetSortedPartyID ¶
func GetSortedPartyID(ids []int) tss.SortedPartyIDs
func HashWithTag ¶
func IntToBytes ¶
func LoadCertificateFromFilePath ¶
func LoadCertificateFromFilePath(certFilePath string) (*x509.Certificate, error)
func LoadPrivateKeyPemFilePath ¶
func LoadPrivateKeyPemFilePath(password, keyFilePath string) (*ecdsa.PrivateKey, error)
func ParseCertificate ¶
func ParseCertificate(certPEM []byte) (*x509.Certificate, error)
func ParseCertificateKeyPem ¶
func ParseCertificateKeyPem(password string, certKeyPEM []byte) (*ecdsa.PrivateKey, error)
func VerifyCert ¶
func VerifyCert(childCert, rootCert *x509.Certificate) bool
func VerifyCertificate ¶
Types ¶
type CertificateAsPem ¶
func CreateCARoot ¶
func CreateCARoot(password, commonName, country, location, company, ounit string, year, serial int) (*CertificateAsPem, error)
func CreatePlainServerCert ¶
Click to show internal directories.
Click to hide internal directories.