Fix reference client implementation - swapped hash gen

This commit is contained in:
Garrett Mills 2021-04-10 05:50:51 -05:00
parent 0cb38027a1
commit 887a2afe77
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -17,7 +17,7 @@ class TestClient {
} }
async interactWith(otherClient) { async interactWith(otherClient) {
const hash = this.getHash(otherClient.id) const hash = otherClient.getHash(this.id)
const message = openpgp.Message.fromText(hash) const message = openpgp.Message.fromText(hash)
const signature = (await openpgp.sign({ const signature = (await openpgp.sign({
message, privateKeys: await openpgp.readKey({ message, privateKeys: await openpgp.readKey({