You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@milagro.apache.org by km...@apache.org on 2020/05/05 06:38:14 UTC

[incubator-milagro-crypto-rust] branch develop updated: Fix ecp tostring

This is an automated email from the ASF dual-hosted git repository.

kmccusker pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-milagro-crypto-rust.git


The following commit(s) were added to refs/heads/develop by this push:
     new aac3576  Fix ecp tostring
     new c492975  Merge pull request #23 from sigp/ecp-to-string
aac3576 is described below

commit aac35764784b22fd1235051337a0290c64ca46a4
Author: Kirk Baird <ba...@outlook.com>
AuthorDate: Mon May 4 16:40:08 2020 +1000

    Fix ecp tostring
    
    Signed-off-by: Kirk Baird <ba...@outlook.com>
---
 src/ecp.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/ecp.rs b/src/ecp.rs
index 77ce689..49a478e 100644
--- a/src/ecp.rs
+++ b/src/ecp.rs
@@ -431,6 +431,7 @@ impl ECP {
     /* convert to hex string */
     pub fn tostring(&self) -> String {
         let W = self.clone();
+        W.affine();
         if W.is_infinity() {
             return String::from("infinity");
         }