public void TestIdemixNullEnrollment() { HFCAClient client = HFCAClient.Create("client", "http://localhost:99", null); client.CryptoSuite = crypto; client.IdemixEnroll(null, "idemixMSP"); }
public void TestIdemixWrongEnrollment() { HFCAClient client = HFCAClient.Create("client", "http://localhost:99", null); client.CryptoSuite = crypto; IEnrollment enrollment = new IdemixEnrollment(null, null, "mspid", null, null, null, "ou", IdemixRoles.MEMBER); client.IdemixEnroll(enrollment, "mspid"); }
public void TestIdemixMissingMSPID() { HFCAClient client = HFCAClient.Create("client", "http://localhost:99", null); client.CryptoSuite = crypto; var gen = new ECKeyPairGenerator(); var keyGenParam = new KeyGenerationParameters(new SecureRandom(), 256); gen.Init(keyGenParam); KeyPair pair = KeyPair.Create(gen.GenerateKeyPair()); IEnrollment enrollment = new X509Enrollment(pair, ""); client.IdemixEnroll(enrollment, null); }