LLFourn / secp256kfun

A pure-rust secp256k1 library optimised for fun
BSD Zero Clause License
101 stars 29 forks source link

Only tweak with the new tweak contribution #86

Closed nickfarrow closed 2 years ago

nickfarrow commented 2 years ago

self.agg_key already contains any previous self.tweak so we do not need to add self.tweak + tweak, just add the new tweak.

Tests for multiple tweak coming with FROST PR / MuSig rework PR.

There is probably a better way to do

let new_tweak = s!(0 + tweak).mark::<Public>();

which avoids

the trait bound impl ZeroChoice: DecideZero<_> is not satisfied the trait DecideZero<_> is not implemented for impl ZeroChoice