MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / set_compressed

Method set_compressed

bitcoin/core/key.py:455–460  ·  view source on GitHub ↗
(self, compressed)

Source from the content-addressed store, hash-verified

453 return _ssl.ECDSA_verify(0, hash, len(hash), norm_der, derlen, self.k) == 1
454
455 def set_compressed(self, compressed):
456 if compressed:
457 form = self.POINT_CONVERSION_COMPRESSED
458 else:
459 form = self.POINT_CONVERSION_UNCOMPRESSED
460 _ssl.EC_KEY_set_conv_form(self.k, form)
461
462 def recover(self, sigR, sigS, msg, msglen, recid, check):
463 """

Callers 3

sign_compactMethod · 0.95
recover_compactMethod · 0.95
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected