algorand / algorand/go-algorand

Msgpack bytestring/text encoding

未关闭
#1,968 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug good first issue / help wanted Team Carbon-11
主要语言
Go
星标
1.4k
派生
537
平均合并
1 天 6 小时
30 天内合并 PR
17

描述

### Subject of the issue

Hi! I attached msgpack encoding of block `9414973` from betanet (retrieved via [url](https://api.betanet.algoexplorer.io/v2/blocks/9414973?format=msgpack)). It doesn't meet [msgpack specification](https://github.com/msgpack/msgpack/blob/master/spec.md#str-format-family).

It encodes some address field of a transaction as string. However specification of messagepack clearly says that this encoding is for UTF-8 strings, not bytestring.

### Attachments

[file.zip](https://github.com/algorand/go-algorand/files/6135149/file.zip)

### Your environment

N/A

### Steps to reproduce

Try parsing attached file with some msgpack parser (e.g. this Haskell [library](https://github.com/TokTok/hs-msgpack-binary)).

### Expected behaviour

File is parsed.

### Actual behaviour

File is not parsed due to wrongly encoded bytestring field.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。