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
It's a common pattern to use Box<dyn std::error::Error> to represent any type of error. However, if you try to convert a frost_core::Error<C> into it, the compiler requires adding a 'static bound to the function (e.g. <C: Ciphersuite + 'static>. The reason is explained here.
We can simply add the 'static bound to Ciphersuite ourselves, which would then not require doing it in every function that uses that pattern. (This came up while converting the demo code to use generics).
This is a breaking change (and a simple one) so I think we can add it to the 2.0.0 release.
The text was updated successfully, but these errors were encountered:
mpguerra
changed the title
Add 'static to Ciphersuite trait
Add 'static to Ciphersuite trait
Jun 25, 2024
It's a common pattern to use
Box<dyn std::error::Error>
to represent any type of error. However, if you try to convert afrost_core::Error<C>
into it, the compiler requires adding a'static
bound to the function (e.g.<C: Ciphersuite + 'static>
. The reason is explained here.We can simply add the
'static
bound toCiphersuite
ourselves, which would then not require doing it in every function that uses that pattern. (This came up while converting the demo code to use generics).This is a breaking change (and a simple one) so I think we can add it to the 2.0.0 release.
The text was updated successfully, but these errors were encountered: