fix bug wrt zero padding of hashes
refactor: separate calculations from session
refactor: rename constants to calculate and clean up hash usage
refactor: separate account from session