[lib] Introduce isValidPrimaryIdentityPublicKey
Summary:
Going to use this in landing-handler to validate siwe-primary-identity-public-key header value before "injecting" into page.
Depends on D6124
Test Plan: unit tests
Reviewers: ashoat, tomek
Reviewed By: ashoat
Differential Revision: https://phab.comm.dev/D6125