Versions in this module Expand all Collapse all v0 v0.0.4 Jul 12, 2023 v0.0.3 Jul 4, 2023 v0.0.2 Jul 4, 2023 Changes in this version + var ErrGeneratorCancelled = fmt.Errorf("generator work cancelled") + var File_protob_signature_proto protoreflect.FileDescriptor + var Logger = log.Logger("tss-lib") + func BigIntsToBytes(bigInts []*big.Int) [][]byte + func GetRandomGeneratorOfTheQuadraticResidue(n *big.Int) *big.Int + func GetRandomPositiveInt(lessThan *big.Int) *big.Int + func GetRandomPositiveRelativelyPrimeInt(n *big.Int) *big.Int + func GetRandomPrimeInt(bits int) *big.Int + func IsNumberInMultiplicativeGroup(n, v *big.Int) bool + func ModInt(mod *big.Int) *modInt + func MultiBytesToBigInts(bytes [][]byte) []*big.Int + func MustGetRandomInt(bits int) *big.Int + func NonEmptyBytes(bz []byte) bool + func NonEmptyMultiBytes(bzs [][]byte, expectLen ...int) bool + func RejectionSample(q *big.Int, eHash *big.Int) *big.Int + func SHA512_256(in ...[]byte) []byte + func SHA512_256i(in ...*big.Int) *big.Int + func SHA512_256iOne(in *big.Int) *big.Int + type GermainSafePrime struct + func GetRandomSafePrimesConcurrent(ctx context.Context, bitLen, numPrimes int, concurrency int) ([]*GermainSafePrime, error) + func (sgp *GermainSafePrime) Prime() *big.Int + func (sgp *GermainSafePrime) SafePrime() *big.Int + func (sgp *GermainSafePrime) Validate() bool + type SignatureData struct + M []byte + R []byte + S []byte + Signature []byte + SignatureRecovery []byte + func (*SignatureData) Descriptor() ([]byte, []int) + func (*SignatureData) ProtoMessage() + func (x *SignatureData) GetM() []byte + func (x *SignatureData) GetR() []byte + func (x *SignatureData) GetS() []byte + func (x *SignatureData) GetSignature() []byte + func (x *SignatureData) GetSignatureRecovery() []byte + func (x *SignatureData) ProtoReflect() protoreflect.Message + func (x *SignatureData) Reset() + func (x *SignatureData) String() string