Remove crypto hash transistions

This removes some unnecessary/unused/deprecated code from `ec.js`.

Branches from #189.