Skip to content

v2.2.0

Compare
Choose a tag to compare
@leroxyl leroxyl released this 16 Feb 13:29
· 31 commits to master since this release
4e5f198

Changed:

  1. 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
  1. 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