#74 refactoring Ecdsa: finished