You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we try to encrypt something using an expired ritual, we will get something similar to:
/Users/manumonti/Projects/nucypher/taco-web/packages/taco/src/dkg.ts:169
throw new Error(ERR_RITUAL_NOT_FINALIZED(ritualId, ritual));
^
Error: Ritual 0 is not finalized. State: 6
But the state number 6 corresponds to an expired ritual.
The suggested solution
Rename this error from ERR_RITUAL_NOT_FINALIZED to ERR_RITUAL_NOT_VALID.
Change the error description from Ritual ${ritualId} is not finalized. State: ${ritual.state} to Ritual ${ritualId} is not valid. State: ${ritual.state}
[Optional] Parse the ritual state to a description: 6 -> EXPIRED, 4-> DKG_INVALID, etc.
The text was updated successfully, but these errors were encountered:
The problem
If we try to encrypt something using an expired ritual, we will get something similar to:
But the state number 6 corresponds to an expired ritual.
The suggested solution
ERR_RITUAL_NOT_FINALIZED
toERR_RITUAL_NOT_VALID
.Ritual ${ritualId} is not finalized. State: ${ritual.state}
toRitual ${ritualId} is not valid. State: ${ritual.state}
The text was updated successfully, but these errors were encountered: