Register a minter.

        :param name: Minter name.
        :param minter: The new minter.

def register_minter(self, name, minter):
        """Register a minter.

        :param name: Minter name.
        :param minter: The new minter.
        """
        assert name not in self.minters
        self.minters[name] = minter