bigint, crypto: not siginficant
Define some types and use them
A bit more refactoring