feat: prepare order generation tests

This commit is contained in:
nanov
2019-11-01 08:13:53 +02:00
parent 837fdaa08c
commit e40f79cee6
14 changed files with 6271 additions and 0 deletions

View File

@@ -174,6 +174,12 @@ module.exports = class Client {
});
}
async signOrder(order) {
const { version } = order;
const keys = await this.keys();
return signer.version(version).sign((await serializer.use(order, this)).toXML(), keys.x());
}
async keys() {
try {
const keysString = await this._readKeys();