def __init__(self, **kwargs):
        """Create an address for this color <color_set>
        and index <index> with the master key <master_key>.
        The address record returned for the same three variables
        will be the same every time, hence "deterministic".
        """
        super(DeterministicAddressRecord, self).__init__(**kwargs)

        if len(self.color_set.get_data()) == 0:
            color_string = "genesis block"
        else:
            color_string = self.color_set.get_hash_string()

        self.index = kwargs.get('index')
        h = hmac.new(str(kwargs['master_key']),
                     "%s|%s" % (color_string, self.index), hashlib.sha256)
        string = h.digest()
        self.rawPrivKey = from_bytes_32(string)
        self.publicPoint = BasePoint * self.rawPrivKey
        self.address = public_pair_to_bitcoin_address(
            self.publicPoint.pair(),
            compressed=False,
            address_prefix=self.prefix
        )
dataset/ETHPy150Open chromaway/ngcccbase/ngcccbase/deterministic.py/DeterministicAddressRecord.__init__/original