private static IEnumerable <Fr> DecryptRow(byte[] encryptedRow, ECDSAPrivateKey privateKey) { return(Crypto.Secp256K1Decrypt(privateKey.Encode(), encryptedRow) .Batch(Fr.ByteSize) .Select(b => Fr.FromBytes(b.ToArray()))); }
public static ECDSAPublicKey GetPublicKey(this ECDSAPrivateKey key) { return(Crypto.ComputePublicKey(key.Encode(), true).ToPublicKey()); }