HomePhabricator
Diffusion Comm 7e3a7434220c

[lib] Introduce `isValidSIWEStatementWithPublicKey(...)`

Description

[lib] Introduce isValidSIWEStatementWithPublicKey(...)

Summary:
Introduce isValidSIWEStatementWithPublicKey(...) to check if SIWE statement is valid statement that includes the Device IdPubKey as described in the whitepaper: https://blob.sh/a3d138.png


Depends on D6129

Test Plan: included a unit test (will include more later)

Reviewers: ashoat, tomek

Reviewed By: ashoat

Differential Revision: https://phab.comm.dev/D6130

Details

Provenance
atulAuthored on Jan 3 2023, 1:44 PM
Reviewer
ashoat
Differential Revision
D6130: [lib] Introduce `isValidSIWEStatementWithPublicKey(...)`
Parents
rCOMM3142750b0b85: [lib] Introduce `getSIWEStatementForPublicKey(...)`
Branches
Unknown
Tags
Unknown