MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / get_curve_by_id

Method get_curve_by_id

src/pyelliptic/openssl.py:455–466  ·  view source on GitHub ↗

returns the name of a elliptic curve with his id

(self, id)

Source from the content-addressed store, hash-verified

453 return self.curves[name]
454
455 def get_curve_by_id(self, id):
456 """
457 returns the name of a elliptic curve with his id
458 """
459 res = None
460 for i in self.curves:
461 if self.curves[i] == id:
462 res = i
463 break
464 if res is None:
465 raise Exception("Unknown curve")
466 return res
467
468 def rand(self, size):
469 """

Callers 1

get_curveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected