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

Method One

group/mod/int.go:175–178  ·  view source on GitHub ↗

One sets the Int to the value 1. The modulus must already be initialized.

()

Source from the content-addressed store, hash-verified

173
174// One sets the Int to the value 1. The modulus must already be initialized.
175func (i *Int) One() kyber.Scalar {
176 i.V.SetInt64(1)
177 return i
178}
179
180// SetInt64 sets the Int to an arbitrary 64-bit "small integer" value.
181// The modulus must already be initialized.

Callers 7

TestScalarOpsFunction · 0.45
basicPointTestFunction · 0.45
NegMethod · 0.45
RecoverSecretFunction · 0.45
xMinusConstFunction · 0.45
RecoverPriPolyFunction · 0.45
RecoverCommitFunction · 0.45

Calls 1

SetInt64Method · 0.45

Tested by 2

TestScalarOpsFunction · 0.36
basicPointTestFunction · 0.36