MCPcopy Create free account
hub / github.com/DOSNetwork/core / Set

Method Set

group/mod/int.go:154–159  ·  view source on GitHub ↗

Set both value and modulus to be equal to another Int. Since this method copies the modulus as well, it may be used as an alternative to Init().

(a kyber.Scalar)

Source from the content-addressed store, hash-verified

152// Since this method copies the modulus as well,
153// it may be used as an alternative to Init().
154func (i *Int) Set(a kyber.Scalar) kyber.Scalar {
155 ai := a.(*Int)
156 i.V.Set(&ai.V)
157 i.M = ai.M
158 return i
159}
160
161// Clone returns a separate duplicate of this Int.
162func (i *Int) Clone() kyber.Scalar {

Callers 4

InitMethod · 0.45
PickMethod · 0.45
RecoverSecretFunction · 0.45
RecoverPriPolyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected