GuillaumeCisco opened a new issue #38: Python wrappers
URL: https://github.com/apache/incubator-milagro-crypto-c/issues/38
 
 
   Hello there.
   
   I'm trying to implement some idemix support for the fabric hyperledger tool.
   Main thread here: https://lists.hyperledger.org/g/fabric/message/6625
   
   I wonder if all the python wrappers are available for the milagro crypto c 
libreary.
   For exemple. I need to translate this:
   go implementation:
   ```go
   // RandModOrder returns a random element in 0, ..., GroupOrder-1
   func RandModOrder(rng *amcl.RAND) *FP256BN.BIG {
      // curve order q
      q := FP256BN.NewBIGints(FP256BN.CURVE_Order)
   
      // Take random element in Zq
      return FP256BN.Randomnum(q, rng)
   }
   ```
   or 
   java implementation
   ```java
   public static BIG randModOrder(RAND rng) {
       BIG q = new BIG(ROM.CURVE_Order);
   
       // Takes random element in this Zq.
       return BIG.randomnum(q, rng);
   }
   ```
   
   to python code.
   Is this achievable right now?
    
   Thanks,

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@milagro.apache.org
For additional commands, e-mail: issues-h...@milagro.apache.org

Reply via email to