Beispiel #1
0
 def from_hex(cls, hexed):
     """
     :param hexed: A private key previously encoded as hex.
     :type hexed: ``str``
     :rtype: :class:`~bitsv.PrivateKeyTestnet`
     """
     return PrivateKeyTestnet(ECPrivateKey.from_hex(hexed))
Beispiel #2
0
 def from_hex(cls, hexed, network='main'):
     """
     :param hexed: A private key previously encoded as hex.
     :type hexed: ``str``
     :param network: 'main', 'test' or 'stn'
     :type network: ``str``
     :rtype: :class:`~bitsv.PrivateKey`
     """
     return PrivateKey(ECPrivateKey.from_hex(hexed), network=network)