Use the utility functions introduced earlier in the stack to pull primaryIdentityPublicKey out of the signed SIWE message statement (if it exists).
For native clients we expect the value of primaryIdentityPublicKey to be a string that conforms to primaryIdentityPublicKeyRegex and for web clients we expect null.
Depends on D6132