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

Method HideLen

group/mod/int.go:413–415  ·  view source on GitHub ↗

HideLen returns the length in bytes of a uniform byte-string encoding of this Int, satisfying the requirements of the Hiding interface. For a Int this is always the same length as the normal encoding.

()

Source from the content-addressed store, hash-verified

411// satisfying the requirements of the Hiding interface.
412// For a Int this is always the same length as the normal encoding.
413func (i *Int) HideLen() int {
414 return i.MarshalSize()
415}
416
417// HideEncode a Int such that it appears indistinguishable
418// from a HideLen()-byte string chosen uniformly at random,

Callers 2

HideEncodeMethod · 0.95
HideDecodeMethod · 0.95

Calls 1

MarshalSizeMethod · 0.95

Tested by

no test coverage detected