Keeping Your Bitcoins Safe: Hot Wallets vs. Cold Wallets