mirror of
https://github.com/hackku21/loc-chain-backend.git
synced 2024-10-27 20:34:03 +00:00
Fix reference client implementation - swapped hash gen
This commit is contained in:
parent
0cb38027a1
commit
887a2afe77
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user