Page MenuHomePhabricator

[lib] Introduce `isValidPrimaryIdentityPublicKey`
ClosedPublic

Authored by atul on Dec 30 2022, 6:03 PM.
Tags
None
Referenced Files
F3393820: D6125.id20474.diff
Sat, Nov 30, 4:03 PM
F3390688: D6125.id20467.diff
Sat, Nov 30, 12:51 AM
F3390687: D6125.id.diff
Sat, Nov 30, 12:51 AM
F3390686: D6125.diff
Sat, Nov 30, 12:51 AM
Unknown Object (File)
Thu, Nov 28, 11:19 AM
Unknown Object (File)
Oct 26 2024, 10:55 PM
Unknown Object (File)
Oct 26 2024, 10:55 PM
Unknown Object (File)
Oct 26 2024, 10:55 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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

lib/utils/siwe-utils.js
16

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.