converted bitcoin methods to module