Class BLSPrivateKeyParameters

  • All Implemented Interfaces:
    CipherParameters

    public class BLSPrivateKeyParameters
    extends BLSKeyParameters
    Private-key parameters for a BLS signature scheme. The underlying secret is an integer in [1, r - 1], where r is the suite's G1 / G2 subgroup order.
    • Constructor Detail

      • BLSPrivateKeyParameters

        public BLSPrivateKeyParameters​(BLSParameters params,
                                       java.math.BigInteger sk)
    • Method Detail

      • getSecret

        public java.math.BigInteger getSecret()
        Returns:
        the BLS secret scalar.
      • getEncoded

        public byte[] getEncoded()
        Returns:
        the canonical 32-byte big-endian encoding of the secret scalar, matching the sk_to_lebytes/os2ip convention used by draft-irtf-cfrg-bls-signature KeyGen.