MCPcopy Create free account
hub / github.com/encodeous/nylon / IsZero

Method IsZero

polyamide/device/noise-types.go:67–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67func (key NoisePublicKey) IsZero() bool {
68 var zero NoisePublicKey
69 return key.Equals(zero)
70}
71
72func (key NoisePublicKey) Equals(tar NoisePublicKey) bool {
73 return subtle.ConstantTimeCompare(key[:], tar[:]) == 1

Callers 4

exchangeMethod · 0.45
partialDeadlineFunction · 0.45
IpcGetOperationMethod · 0.45
setMethod · 0.45

Calls 1

EqualsMethod · 0.95

Tested by

no test coverage detected