An example of using tweetnacl from Val Town - this uses the keyPair method and then encodes the keypair using hex encoding.
keyPair