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); }
public BFUserPrivateKey(Point sk, BFMasterPublicKey param) { this.key = sk; this.param = param; }
public BFUserPrivateKey() { this.key = null; this.param = null; }
public BFUserPublicKey(String id, BFMasterPublicKey param) { this.id = id; this.param = param; }