File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,11 @@ impl Party {
165165 /// Verify a certificate
166166 pub fn verify_message ( & self , message : & Bytes ) -> Result < ( ) , String > {
167167 match self . get_aggregate ( message) {
168- Some ( msig) => match self . clerk . as_ref ( ) . unwrap ( ) . verify_msig ( msig, message) {
168+ Some ( msig) => match msig. verify (
169+ message,
170+ & self . clerk . as_ref ( ) . unwrap ( ) . compute_avk ( ) ,
171+ & self . params . unwrap ( ) ,
172+ ) {
169173 Ok ( _) => {
170174 println ! (
171175 "Party #{}: aggregate signature successfully verified for {}!" ,
@@ -253,7 +257,11 @@ impl Verifier {
253257 message : & Bytes ,
254258 msig : & ProtocolMultiSignature ,
255259 ) -> Result < ( ) , String > {
256- match self . clerk . as_ref ( ) . unwrap ( ) . verify_msig ( msig, message) {
260+ match msig. verify (
261+ message,
262+ & self . clerk . as_ref ( ) . unwrap ( ) . compute_avk ( ) ,
263+ & self . params . unwrap ( ) ,
264+ ) {
257265 Ok ( _) => {
258266 println ! (
259267 "Verifier: aggregate signature successfully verified for {}!" ,
You can’t perform that action at this time.
0 commit comments