Page MenuHomePhabricator

[lib] Introduce `isValidPrimaryIdentityPublicKey`
ClosedPublic

Authored by atul on Dec 30 2022, 6:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 17, 4:00 PM
Unknown Object (File)
Thu, Apr 17, 7:42 AM
Unknown Object (File)
Thu, Apr 17, 4:56 AM
Unknown Object (File)
Wed, Apr 16, 8:57 PM
Unknown Object (File)
Wed, Apr 16, 10:45 AM
Unknown Object (File)
Wed, Apr 9, 6:05 AM
Unknown Object (File)
Wed, Apr 9, 12:26 AM
Unknown Object (File)
Feb 20 2025, 8:24 PM
Subscribers
None

Details

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

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lib/utils/siwe-utils.js
16 ↗(On Diff #20467)

43 "base64 alphabet" characters, uses + and / instead of - and _ based on the following key I generated: 98+/eB2MUVvYCpkESOS1zuWnWttsYWDKeDXl8T3o8LY

atul published this revision for review.Dec 30 2022, 6:08 PM
This revision is now accepted and ready to land.Dec 30 2022, 8:55 PM
This revision was landed with ongoing or failed builds.Dec 30 2022, 9:20 PM
This revision was automatically updated to reflect the committed changes.