fixed signNote and createKeys