Releases: ubirch/ubirch-protocol-go
Releases · ubirch/ubirch-protocol-go
v2.2.5
v2.2.4
Changed:
- renamed function
CheckChain
toCheckChainLink
CheckChainLink
now expects structured UPPs instead of bytes as arguments- adapted tests for new
CheckChainLink
function signature - minor refactoring and cleanup
v2.2.3
Added:
- validity check for ECDSA private and public keys in key setter methods
- tests for invalid ECDSA key values
v2.2.2
Added:
- public function
CheckChain(previousUPP []byte, subsequentUPP []byte)
which verifies the chain between a previous UPP and a subsequent UPP by comparing the signature of the previous UPP with the "prevSignature" field of the subsequent chained UPP
v2.2.1
Removed:
- validity check of UPP in verify method -> only verify signature
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
Initial Release
v1.0.0 fix signature generation, add test