Ejemplo n.º 1
0
 def from_int(cls, num):
     """
     :param num: A private key in raw integer form.
     :type num: ``int``
     :rtype: :class:`~bitsv.PrivateKeyTestnet`
     """
     return PrivateKeyTestnet(ECPrivateKey.from_int(num))
Ejemplo n.º 2
0
 def from_int(cls, num, network='main'):
     """
     :param num: A private key in raw integer form.
     :type num: ``int``
     :param network: 'main', 'test' or 'stn'
     :type network: ``str``
     :rtype: :class:`~bitsv.PrivateKey`
     """
     return PrivateKey(ECPrivateKey.from_int(num), network=network)