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

Method Equal

group/mod/int.go:142–144  ·  view source on GitHub ↗

Equal returns true if the two Ints are equal

(s2 kyber.Scalar)

Source from the content-addressed store, hash-verified

140
141// Equal returns true if the two Ints are equal
142func (i *Int) Equal(s2 kyber.Scalar) bool {
143 return i.V.Cmp(&s2.(*Int).V) == 0
144}
145
146// Nonzero returns true if the integer value is nonzero.
147func (i *Int) Nonzero() bool {

Callers 8

TestLoadConfigFunction · 0.45
TestOffChainReadConfigFunction · 0.45
TestOnChainReadConfigFunction · 0.45
TestOnChainUpdateFunction · 0.45
TestIntEndiannessFunction · 0.45
TestIntEndianBytesFunction · 0.45
TestInitsFunction · 0.45
TestIntCloneFunction · 0.45

Calls 1

CmpMethod · 0.80

Tested by 8

TestLoadConfigFunction · 0.36
TestOffChainReadConfigFunction · 0.36
TestOnChainReadConfigFunction · 0.36
TestOnChainUpdateFunction · 0.36
TestIntEndiannessFunction · 0.36
TestIntEndianBytesFunction · 0.36
TestInitsFunction · 0.36
TestIntCloneFunction · 0.36