Comment about G value moved to ThresholdKey
G is no longer a parameter of PublicKey.
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -7,7 +7,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type PublicKey struct {
|
type PublicKey struct {
|
||||||
N *big.Int // usually G is set to N+1
|
N *big.Int
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *PublicKey) GetBSON() (interface{}, error) {
|
func (this *PublicKey) GetBSON() (interface{}, error) {
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ type ThresholdKey struct {
|
|||||||
Threshold int
|
Threshold int
|
||||||
V *big.Int
|
V *big.Int
|
||||||
Vi []*big.Int
|
Vi []*big.Int
|
||||||
G *big.Int
|
G *big.Int // usually G is set to N+1
|
||||||
}
|
}
|
||||||
|
|
||||||
// returns the value of (4*delta**2)** -1 mod n
|
// returns the value of (4*delta**2)** -1 mod n
|
||||||
|
|||||||
Reference in new issue
Block a user