The Digital Currency Group (DCG) and its distressed subsidiary Genesis have reached an agreement in principle on a restructuring plan with the firm's main creditors.