Page MenuHomePhabricator

[keyserver] Pull `primaryIdentityPublicKey` out of SIWE statement and pass to `siweAccountCreationRequest`
ClosedPublic

Authored by atul on Dec 31 2022, 4:04 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 17, 9:44 AM
Unknown Object (File)
Fri, Jan 17, 8:12 AM
Unknown Object (File)
Fri, Jan 17, 6:04 AM
Unknown Object (File)
Mon, Jan 13, 2:54 PM
Unknown Object (File)
Thu, Dec 26, 8:57 PM
Unknown Object (File)
Thu, Dec 26, 3:25 PM
Unknown Object (File)
Thu, Dec 26, 1:08 PM
Unknown Object (File)
Thu, Dec 26, 12:58 PM
Subscribers
None

Details

Summary

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

Test Plan
  1. public key appears in signing request:

IMG_2684.PNG (2×1 px, 769 KB)

  1. public key properly extracted on keyserver:

1f2f8c.png (362×3 px, 196 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Dec 31 2022, 4:07 AM
This revision is now accepted and ready to land.Jan 1 2023, 8:02 PM
This revision was landed with ongoing or failed builds.Jan 3 2023, 2:49 PM
This revision was automatically updated to reflect the committed changes.