Fixed lint issues and require issue for pubkey