MCPcopy Create free account
hub / github.com/WizardOfMenlo/stir / auth_path_size

Method auth_path_size

scripts/protocol.py:40–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 self.len = length
39
40 def auth_path_size(self):
41 if self.queries() == 0:
42 return 0
43
44 total_path_size = self.params.rom.authentication_path_size(self.len, self.queries())
45
46 leaf_size = min(self.field_size(), self.hash_size())
47
48 return total_path_size + self.queries() * leaf_size
49
50 def opening_size(self):
51 return self.queries() * self.field_size()

Callers 2

argument_sizeMethod · 0.95
printMethod · 0.95

Calls 4

field_sizeMethod · 0.80
hash_sizeMethod · 0.80
queriesMethod · 0.45

Tested by

no test coverage detected