ElementsProject / ElementsProject/libwally-core

[feature request] Swappable sign/verify functions?

Open
#508 14 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
307
Forks
159
Avg merge
2h 56m
Merged PRs (30d)
4

Description

For embedded systems with hardware accelerated ECSDA engines, it would be useful to be able to expose swappable function pointers for signing and verifying.

**I have a fork which does this [here](https://github.com/ElementsProject/libwally-core/compare/master...jmecom:libwally-core:master).**

It's a little bit weird, because the `libsecp256k1` context is still initialized unconditionally. This is an okay tradeoff, IMO, because hardware accelerated Schnorr signing is extremely rare, so in practice a caller would likely still want `libsecp256k1` for Schnorr, even if they are accelerating ECDSA.

Is this something that makes sense for the project to support? If so, I'm happy to clean up and test my fork and PR it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.