fix: peer record interop with go (#739)

* test: add go peer record interop test

* fix: correct the payload type of peer records

* chore: fix linting

* test: fix envelope test
This commit is contained in:
Jacob Heun
2020-08-27 12:44:09 +02:00
parent cfbd52d7f7
commit 93dda74085
5 changed files with 30 additions and 10 deletions

View File

@ -140,7 +140,7 @@ Envelope.createFromProtobuf = async (data) => {
*/
Envelope.seal = async (record, peerId) => {
const domain = record.domain
const payloadType = uint8arraysFromString(record.codec)
const payloadType = record.codec
const payload = record.marshal()
const signData = formatSignaturePayload(domain, payloadType, payload)