Exemplo n.º 1
0
        public void TestIdemixNullEnrollment()
        {
            HFCAClient client = HFCAClient.Create("client", "http://localhost:99", null);

            client.CryptoSuite = crypto;
            client.IdemixEnroll(null, "idemixMSP");
        }
Exemplo n.º 2
0
        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");
        }
Exemplo n.º 3
0
        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);
        }