Exemplo n.º 1
0
        public static void PublicKeyFromPrehashedPrivateKey(out byte[] publicKey, byte[] prehashedPrivateKey)
        {
            Contract.Requires <ArgumentNullException>(prehashedPrivateKey != null);
            Contract.Requires <ArgumentException>(prehashedPrivateKey.Length == ExpandedPrivateKeySize);

            var pk = new byte[PublicKeySize];

            Ed25519Operations.crypto_sign_keypair_prehashed(pk, 0, prehashedPrivateKey, 0);
            publicKey = pk;
        }