Esempio n. 1
0
        public BFUserPrivateKey(SerializedPrivateKey key)
        {
            this.key = new Point(new BigInt(key.KeyX), new BigInt(key.KeyY));
            Fp            field = new Fp(new BigInt(key.CurveField));
            EllipticCurve curve = new EllipticCurve(field, new BigInt(key.CurveA), new BigInt(key.CurveB));
            Pairing       e     = new TatePairing(curve, new BigInt(key.PairingGroupOrder), new BigInt(key.PairingCofactor));
            Point         p     = new Point(new BigInt(key.PX), new BigInt(key.PY));
            Point         pPub  = new Point(new BigInt(key.PPubX), new BigInt(key.PPubY));

            this.param = new BFMasterPublicKey(e, p, pPub);
        }
Esempio n. 2
0
 public BFUserPrivateKey(Point sk, BFMasterPublicKey param)
 {
     this.key   = sk;
     this.param = param;
 }
Esempio n. 3
0
 public BFUserPrivateKey()
 {
     this.key   = null;
     this.param = null;
 }
Esempio n. 4
0
 public BFUserPublicKey(String id, BFMasterPublicKey param)
 {
     this.id    = id;
     this.param = param;
 }