Skip to content

Runtime configurable BLS crate#181

Draft
ArtiomTr wants to merge 1 commit intograndinetech:developfrom
ArtiomTr:Runtime-configurable-bls
Draft

Runtime configurable BLS crate#181
ArtiomTr wants to merge 1 commit intograndinetech:developfrom
ArtiomTr:Runtime-configurable-bls

Conversation

@ArtiomTr
Copy link
Copy Markdown
Collaborator

@ArtiomTr ArtiomTr commented Apr 17, 2025

So this is first attempt at making bls backend configurable in runtime.

With this approach, when running conversions from byte-types to backend-specific types Backend enum value must be specified. This leads to various issues, e.g.:

  • it is impossible to implement TryFrom<PublicKeyBytes> for PublicKey, as backend must be known before doing conversion.
  • impossible to implement Default for PublicKey - again, backend must be specified.
  • if some struct A has field with type PublicKey, it is impossible to implement Default trait for such struct - backend must be known to create proper PublicKey.

Another approach is described here #182

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant