Browse Source

test

feature/dockerfile-arm
Evan Feenstra 5 years ago
parent
commit
4ff9e4f097
  1. 2
      api/network/receive.ts
  2. 2
      dist/api/network/receive.js
  3. 2
      dist/api/network/receive.js.map

2
api/network/receive.ts

@ -137,6 +137,7 @@ async function parseAndVerifyPayload(data){
payload = JSON.parse(msg)
if(payload) {
const v = await verifyAscii(msg, sig+'a')
console.log(v)
if(v && v.valid && v.pubkey) {
payload.sender = payload.sender||{}
payload.sender.pub_key=v.pubkey
@ -146,6 +147,7 @@ async function parseAndVerifyPayload(data){
}
}
} catch(e) {
console.log(e)
return null
}
}

2
dist/api/network/receive.js

@ -157,6 +157,7 @@ function parseAndVerifyPayload(data) {
payload = JSON.parse(msg);
if (payload) {
const v = yield lightning_2.verifyAscii(msg, sig + 'a');
console.log(v);
if (v && v.valid && v.pubkey) {
payload.sender = payload.sender || {};
payload.sender.pub_key = v.pubkey;
@ -168,6 +169,7 @@ function parseAndVerifyPayload(data) {
}
}
catch (e) {
console.log(e);
return null;
}
});

2
dist/api/network/receive.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save