Closed josediegorobles closed 2 years ago
Hmm the doc tests works for me if I run cargo test
^1
Are you using sha2 = 0.9
? We haven't upgraded to 0.10 yet see #83
^1 actually they don't but that's a separate issue with secp256k1 breaking upstream it looks like. I'll fix that soon.
Oh, sorry. It works with 0.9 version of sha2. Thanks!
I get same error with the main and the adaptor examples:
error[E0599]: the function or associated item
newexists for struct
Schnorr<CoreWrapper<CtVariableCoreWrapper<Sha256VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>>, _>`, but its trait bounds were not satisfied --> src/main.rs:12:41Schnorr<CoreWrapper<CtVariableCoreWrapper<Sha256VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>>, _>
due to unsatisfied trait bounds_: Default
_: schnorr_fun::secp256kfun::digest::Digest
_: schnorr_fun::secp256kfun::digest::FixedOutput
_: schnorr_fun::secp256kfun::digest::Reset
_: schnorr_fun::secp256kfun::digest::Update
<_ as schnorr_fun::secp256kfun::digest::Digest>::OutputSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>