User identity verification with blockchains