Solutions to 51% Attacks and Double Spending