nfcpy/ndeflib

Signature record can be only v2.0

merlokk opened this issue · 1 comments

Hi

https://github.com/haldean/ndef/blob/master/docs/NFCForum-TS-Signature_RTD-1.0.pdf

here the specification

here: 3028b2a i see change from byte to word. I don't have v2.0 specification but as for v.1 (or as in the decoder v0.1) here byte lengths.

i can modify the current Signature class to support v1 and v2 cases. Is this ok?

The length field is 16-bits in both version 1 and 2 of the Signature specification. It has been a bug in ndeflib to encode it as 8-bit.