Ejemplo n.º 1
0
        public string ScReduce32(string Input)
        {
            if (!IsKey(Input))
            {
                return(null);
            }

            byte[] tmp = HexStringToByteArray(Input);

            ED25519.sc_reduce32(ref tmp);

            return(ByteArrayToHexString(tmp));
        }
Ejemplo n.º 2
0
        public string HashToEllipticCurve(string Hash)
        {
            if (!IsKey(Hash))
            {
                return(null);
            }

            byte[] tmp = HexStringToByteArray(Hash);

            ge_p3 tmp3 = new ge_p3();

            KeyOps.HashToEllipticCurve(tmp3, tmp);

            byte[] output = new byte[32];
            ED25519.ge_p3_tobytes(ref output, tmp3);

            return(ByteArrayToHexString(output));
        }