inside encrypt and sign an undefined property was referenced inside the ...

...private signing key

Hmm, the test for this must not be running in my original implementation! I am writing an app that uses this function and it failed with an undefined sec property inside the key!

In other news, when I try to run sign() now i get the following error: Object {ciphertext: null, signature: null, error: "Error: Could not complete encryptAndSign: NOT READY: generator isn't seeded"} 
I waited a bit and tried again, with the same problem.