MCPcopy
hub / github.com/canopy-network/canopy / NewClassGroup

Function NewClassGroup

lib/crypto/classgroup.go:44–44  ·  view source on GitHub ↗

NewClassGroup() is a constructor for the class group object

(a, b, c *big.Int)

Source from the content-addressed store, hash-verified

42
43// NewClassGroup() is a constructor for the class group object
44func NewClassGroup(a, b, c *big.Int) *ClassGroup { return &ClassGroup{a: a, b: b, c: c} }
45
46// CloneClassGroup() creates a shallow copy of the class group
47func CloneClassGroup(cg *ClassGroup) *ClassGroup { return &ClassGroup{a: cg.a, b: cg.b, c: cg.c} }

Callers 14

TestClassDiscriminantFunction · 0.85
TestNormalizedFunction · 0.85
TestReducedFunction · 0.85
TestMultiplication1Function · 0.85
TestMultiplication2Function · 0.85
TestMultiplication3Function · 0.85
TestMultiplication4Function · 0.85
TestSquare1Function · 0.85
TestSquare2Function · 0.85
newClassGroupFunction · 0.85
MultiplyMethod · 0.85
SquareMethod · 0.85

Calls

no outgoing calls

Tested by 9

TestClassDiscriminantFunction · 0.68
TestNormalizedFunction · 0.68
TestReducedFunction · 0.68
TestMultiplication1Function · 0.68
TestMultiplication2Function · 0.68
TestMultiplication3Function · 0.68
TestMultiplication4Function · 0.68
TestSquare1Function · 0.68
TestSquare2Function · 0.68