from __future__ import absolute_import

from signature import DSA
from random import randint

_SERIAL_NO_LOWER = 1 << 127
_SERIAL_NO_UPPER = (1 << 128) - 1

_SATOSHI_LOWER = 10
_SATOSHI_UPPER = 500

transaction_constants = {'title': '*** Bitcoin transaction ***',
                         'serial': 'Serial number: ',
                         'p': 'p: ',
                         'q': 'q: ',