feat(adaptor-sigs): import adaptor-sigs library#27
Conversation
delbonis
left a comment
There was a problem hiding this comment.
Concur with Aaron's comments. My additional comments are mostly about code/repo organization.
|
@manishbista28 please address review comments as appropriate. |
@nakkstar123, if N_INPUT_WIRES is in byte representation, what should be the expression for APPROX_MULS ? Cut-and-choose crypto used N_INPUT_WIRES * N_COEFFICIENTS * 3 where N_INPUT_WIRES is in bit representation, while you suggested N_INPUT_WIRES * N_COEFFICIENTS * 256 in the above comment. Hence the question. |
Earlier cut-and-choose crypto didn't handle wide labels so the total number of polynomials was in fact N_INPUT_WIRES * N_COEFFICIENTS * 2 (one for true, one for false). I used N_INPUT_WIRES * N_COEFFICIENTS * 3 as a safe upper bound but it isn't really needed, we should just use the total number of polynomials. So my answer is still N_INPUT_WIRES * N_COEFFICIENTS * 256 where N_INPUT_WIRES is in byte representation. FWIW, under the hood I believe there's a max window size (something like 11?) after which it doesn't matter what we enter as APPROX_MULS. I think we reach this ceiling already. If you test it with different APPROX_MUL sizes (anything bigger than 2^11) it should make no difference to performance. |
046327e to
5cd8ab6
Compare
07f15b3 to
e139813
Compare
e139813 to
069cbab
Compare
Description
Import adaptor signature library from cut-and-choose-crypto repo.
Library provides functionality for adaptor signature generation and verification.
Type of Change
Notes to Reviewers
Checklist
Related Issues