Package pvss

Examples of pvss.PublishedShares


    BigInteger[] secretKeys = engine.generateSecretKeys();
    BigInteger[] publicKeys = new BigInteger[N];
    for (int i = 0; i < N; i++) {
      publicKeys[i] = engine.generatePublicKey(secretKeys[i]);
    }
    PublishedShares publishedShares = engine.generalPublishShares(
        secretkey, publicKeys, 1);//generate shares
    Share[] shares = new Share[N];
    for (int i = 0; i < N; i++) {
      shares[i] = publishedShares.getShare(i, secretKeys[i], info, publicKeys);
    }


    return shares;
  }
View Full Code Here

TOP

Related Classes of pvss.PublishedShares

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.