@@ -174,12 +174,12 @@ where
174174 r#"
175175 INSERT
176176 INTO blind_signature
177- (y , amount, keyset_id, c)
177+ (blinded_message , amount, keyset_id, c)
178178 VALUES
179- (:y , :amount, :keyset_id, :c)
179+ (:blinded_message , :amount, :keyset_id, :c)
180180 "# ,
181181 ) ?
182- . bind ( "y " , message. to_bytes ( ) . to_vec ( ) )
182+ . bind ( "blinded_message " , message. to_bytes ( ) . to_vec ( ) )
183183 . bind ( "amount" , u64:: from ( signature. amount ) as i64 )
184184 . bind ( "keyset_id" , signature. keyset_id . to_string ( ) )
185185 . bind ( "c" , signature. c . to_bytes ( ) . to_vec ( ) )
@@ -353,17 +353,17 @@ where
353353 c,
354354 dleq_e,
355355 dleq_s,
356- y
356+ blinded_message,
357357 FROM
358358 blind_signature
359- WHERE y IN (:y )
359+ WHERE blinded_message IN (:blinded_message )
360360 "# ,
361361 ) ?
362362 . bind_vec (
363- "y " ,
363+ "blinded_message " ,
364364 blinded_messages
365365 . iter ( )
366- . map ( |y| y . to_bytes ( ) . to_vec ( ) )
366+ . map ( |bm| bm . to_bytes ( ) . to_vec ( ) )
367367 . collect ( ) ,
368368 )
369369 . fetch_all ( & * conn)
@@ -382,7 +382,7 @@ where
382382 . collect :: < Result < HashMap < _ , _ > , Error > > ( ) ?;
383383 Ok ( blinded_messages
384384 . iter ( )
385- . map ( |y | blinded_signatures. remove ( y ) )
385+ . map ( |bm | blinded_signatures. remove ( bm ) )
386386 . collect ( ) )
387387 }
388388
0 commit comments