LIT-Protocol / js-sdk

The Lit Protocol SDK provides developers with a framework for implementing Lit functionality into their own applications.
https://developer.litprotocol.com
MIT License
92 stars 55 forks source link

Feature/lit 3379 investigate bls signed session bug #500

Closed joshLong145 closed 3 weeks ago

joshLong145 commented 3 weeks ago

Adds BLS signature verification for checkToResignSessionKey as we will use the siwe verify implementation for ed25519 keys.

Currently we will effectively retry the operation if the BLS verification fails. The retried operation has a low likelihood of success as we will be performing a retry with the same network key which means that it will fail to verify as the same signing key will be used with the same message which produced the original error.

It is out of scope of this pr to address the resigning issues for BLS signatures but mentioning it as it is a follow up task to address