Add PublicKey and Signature types to daemonapi. Add more tests for crypto.nim
Add ed25519 and tests. Add some comments.