sign
Signs a HashIDPreimage and returns the signature.
The implementation should:
Convert the preimage to XDR bytes
Hash the bytes with SHA-256
Sign the hash with Ed25519
Return the public key and signature
Return
The signature containing public key and signature bytes
Parameters
preimage
The hash preimage to sign