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

Method Init

group/mod/int.go:78–83  ·  view source on GitHub ↗

Init a Int with a given big.Int value and modulus pointer. Note that the value is copied; the modulus is not.

(V *big.Int, m *big.Int)

Source from the content-addressed store, hash-verified

76// Init a Int with a given big.Int value and modulus pointer.
77// Note that the value is copied; the modulus is not.
78func (i *Int) Init(V *big.Int, m *big.Int) *Int {
79 i.M = m
80 i.BO = BigEndian
81 i.V.Set(V).Mod(&i.V, m)
82 return i
83}
84
85// Init64 creates an Int with an int64 value and big.Int modulus.
86func (i *Int) Init64(v int64, m *big.Int) *Int {

Callers 7

actionStartFunction · 0.45
TestServerFunction · 0.45
NewSerfNetFunction · 0.45
NewIntFunction · 0.45
CloneMethod · 0.45
TestPDKGFunction · 0.45
TestChoseSubmitterFunction · 0.45

Calls 1

SetMethod · 0.45

Tested by 3

TestServerFunction · 0.36
TestPDKGFunction · 0.36
TestChoseSubmitterFunction · 0.36