Add typeclasses for elliptic curve framework