lib/poly_pseudo/pseudonym.rb in poly_pseudo-0.1.0 vs lib/poly_pseudo/pseudonym.rb in poly_pseudo-0.1.1
- old
+ new
@@ -9,10 +9,11 @@
closing_private_key = closing_key.ec.private_key
product = decryption_private_key.mod_mul(closing_private_key, PolyPseudo.config.group.order)
point_2_multiplied = point_2.mul(closing_private_key)
- pseudo_point = point_1.mul(product)
+ pseudo_point = point_1
+ .mul(product)
.invert!
.add(point_2_multiplied)
.make_affine!
@pseudonym = closing_key.recipient_key_set_version.to_s + pseudo_point.to_hex