v2.2.0
Changed:
- Protocol Implementation:
- verify-method can be used without specifying protocol version of UPP (signed or chained)
method signature changed from
func (p *Protocol) Verify(name string, value []byte, protocol ProtocolType) (bool, error)
to
func (p *Protocol) Verify(name string, upp []byte) (bool, error)
- decoding functions for signed and chained UPPs now return pointer to object instead of copy of object
- deprecated "plain" message support
- renamed type "ProtocolType" -> "ProtocolVersion" (alignment with naming in UPP documentation/definition: https://developer.ubirch.com/utp.html)
- added more sanity checks
- Tests:
- added more tests for UPP interface decoding function 'Decode()'
- added tests for signed and chained UPP decoding functions 'DecodeSigned()' and 'DecodeChained()'
- test UPP interface methods after decoding