use scrypt for x calculation