As discussed in #1015
Adding a way to serialize/deserialize keypair would help with libraries that call from WASM etc.
Maybe it's just as simple as committing to the format of the 96 bytes it takes in memory.
seckey(32) || P.x (32) || P.y (32)
By committing to this format we could remove the comment: The exact representation of data inside is implementation defined and not guaranteed to be portable between different platforms or versions.