Based on #461 + some things I suggested for that PR.
I think it’d be a good idea to have some example code to show how to use the aggsig module. For example, the seed of the nonce RNG could be misused and it’s not all that intuitive how a scratch space is used. This PR addresses this by adding an aggsig.c
file into an examples/
directory and building it as example_aggsig
(it’s also run as part of make check
).
Since #461 does not allow for multi party signing at the moment, aggsig.c
demonstrates single user signing and verification for now.