HomePhabricator
Diffusion Comm 3142750b0b85

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

Description

[lib] Introduce getSIWEStatementForPublicKey(...)

Summary:
Given a public key, getSIWEStatementForPublicKey(...) generates a statement for SIWE message that conforms to what is described in the whitepaper:

https://blob.sh/a3d138.png


Depends on D6128

Test Plan: included a unit test

Reviewers: ashoat, tomek

Reviewed By: ashoat

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

Details

Provenance
atulAuthored on Jan 3 2023, 1:34 PM
Reviewer
ashoat
Differential Revision
D6129: [lib] Introduce `getSIWEStatementForPublicKey(...)`
Parents
rCOMM5025b404144a: [landing] Add `siwePrimaryIdentityPublicKey` to `SIWEContext`
Branches
Unknown
Tags
Unknown