dat-ecosystem-archive / DEPs

Dat Enhancement Proposals. Contains all specs for the Dat protocol, including drafts. [ DEPRECATED - see https://github.com/hypercore-protocol/hypercore-proposals for similar functionality. More info on active projects and modules at https://dat-ecosystem.org/ ]
https://dat-ecosystem.github.io/DEPs
166 stars 17 forks source link

DEP-9: fix padding size math #67

Open zxcat opened 3 years ago

zxcat commented 3 years ago

doc says padding is 21 bytes for signatures and tree, but it should be 17:

      <3 byte magic string: 0x050257>
      <1 byte header type: 0x02>
      <1 byte version number: 0>
      <2 byte entry size: 40>
      <1 byte algorithm name length prefix: 7>
      <7 byte algorithm name: BLAKE2b>
      <17 byte padding>

3+1+1+2+1 + 7+17 = 32

RangerMauve commented 3 years ago

ping @mafintosh @pfrazee

mafintosh commented 3 years ago

👍