cardano-crypto-praos/cbits/vrf10_batchcompat/convert.c
int
_vrf_ietfdraft10_string_to_point(ge25519_p3 *point, const unsigned char string[crypto_core_ed25519_BYTES])
{
    if (ge25519_is_canonical(string) == 0 ||
        ge25519_frombytes(point, string) != 0) {
        return -1;
    }
    return 0;
}
/* Decode elliptic curve point from 32-byte octet string per RFC8032 section
 * 5.1.3.
 *
 * In particular we must reject non-canonical encodings (i.e., when the encoded
 * y coordinate is not reduced mod p). We do not check whether the point is on
 * the main subgroup or whether it is of low order. Returns 0 on success (and
 * stores decoded point in *point), nonzero if decoding fails.
 */
Decode elliptic curve point from 32-byte octet string per RFC8032 section
5.1.3.

In particular we must reject non-canonical encodings . We do not check whether the point is on
the main subgroup or whether it is of low order. Returns 0 on success (and
stores decoded point in *point), nonzero if decoding fails.
Decode elliptic curve point from 32 - byte octet string per RFC8032 section 5 . 1 . 3 . In particular we must reject non - canonical encodings . We do not check whether the point is on the main subgroup or whether it is of low order . Returns 0 on success ( and stores decoded point in * point ) nonzero if decoding fails .
int
_vrf_ietfdraft10_string_to_point(ge25519_p3 *point, const unsigned char string[crypto_core_ed25519_BYTES])
{
    if (ge25519_is_canonical(string) == 0 ||
        ge25519_frombytes(point, string) != 0) {
        return -1;
    }
    return 0;
}
int _vrf_ietfdraft10_string_to_point ( ge25519_p3 * point , const unsigned char string [ crypto_core_ed25519_BYTES ] ) { if ( ge25519_is_canonical ( string ) == 0 || ge25519_frombytes ( point , string ) != 0 ) { return -1 ; } return 0 ; }
Decode elliptic curve point from 32-byte octet string per RFC8032 section
 5.1.3.
Decode elliptic curve point from 32 - byte octet string per RFC8032 section 5 . 1 . 3 .