Versions in this module Expand all Collapse all v2 v2.1.4 Nov 26, 2024 v2.1.3 Oct 14, 2024 Changes in this version type SignatureData + func (x *SignatureData) GetSignatureObject() *secp256k1.Signature v2.1.2 Jun 4, 2024 v2.1.1 May 11, 2024 v2.1.0 May 11, 2024 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 AppendBigIntToBytesSlice(commonBytes []byte, appended *big.Int) []byte + func BigIntsToBytes(bigInts []*big.Int) [][]byte + func GetRandomBytes(rand io.Reader, length int) ([]byte, error) + func GetRandomGeneratorOfTheQuadraticResidue(rand io.Reader, n *big.Int) *big.Int + func GetRandomPositiveInt(rand io.Reader, lessThan *big.Int) *big.Int + func GetRandomPositiveRelativelyPrimeInt(rand io.Reader, n *big.Int) *big.Int + func GetRandomPrimeInt(rand io.Reader, bits int) *big.Int + func GetRandomQuadraticNonResidue(rand io.Reader, n *big.Int) *big.Int + func IsInInterval(b *big.Int, bound *big.Int) bool + func IsNumberInMultiplicativeGroup(n, v *big.Int) bool + func ModInt(mod *big.Int) *modInt + func MultiBytesToBigInts(bytes [][]byte) []*big.Int + func MustGetRandomInt(rand io.Reader, bits int) *big.Int + func NonEmptyBytes(bz []byte) bool + func NonEmptyMultiBytes(bzs [][]byte, expectLen ...int) bool + func PadToLengthBytesInPlace(src []byte, length int) []byte + 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 + func SHA512_256i_TAGGED(tag []byte, in ...*big.Int) *big.Int + type GermainSafePrime struct + func GetRandomSafePrimesConcurrent(ctx context.Context, bitLen, numPrimes int, concurrency int, rand io.Reader) ([]*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