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

Method __new__

bitcoin/core/key.py:577–583  ·  view source on GitHub ↗
(cls, buf, _cec_key=None)

Source from the content-addressed store, hash-verified

575 """
576
577 def __new__(cls, buf, _cec_key=None):
578 self = super(CPubKey, cls).__new__(cls, buf)
579 if _cec_key is None:
580 _cec_key = CECKey()
581 self._cec_key = _cec_key
582 self.is_fullyvalid = _cec_key.set_pubkey(self) is not None
583 return self
584
585 @classmethod
586 def recover_compact(cls, hash, sig): # pylint: disable=redefined-builtin

Callers

nothing calls this directly

Calls 2

set_pubkeyMethod · 0.95
CECKeyClass · 0.85

Tested by

no test coverage detected