Bitcoin-based altcurrency Protocols : A Survey