Skip to content

Releases: ubirch/ubirch-protocol-go

v2.2.5

15 Mar 08:32
4e2042e
Compare
Choose a tag to compare

Added:

  • constants for update operation hints: delete, disable and enable
  • type Hint (uint8)
  • extended SignHash method with parameter for hint:
    SignHashExtended(name string, hash []byte, protocol ProtocolVersion, hint Hint)

v2.2.4

07 Mar 18:30
1842f54
Compare
Choose a tag to compare

Changed:

  • renamed function CheckChain to CheckChainLink
  • CheckChainLink now expects structured UPPs instead of bytes as arguments
  • adapted tests for new CheckChainLinkfunction signature
  • minor refactoring and cleanup

v2.2.3

02 Mar 18:45
5014da3
Compare
Choose a tag to compare

Added:

  • validity check for ECDSA private and public keys in key setter methods
  • tests for invalid ECDSA key values

v2.2.2

19 Feb 17:42
6a5a59b
Compare
Choose a tag to compare

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

18 Feb 17:29
42ba4eb
Compare
Choose a tag to compare

Removed:

  • validity check of UPP in verify method -> only verify signature

v2.2.0

16 Feb 13:29
4e5f198
Compare
Choose a tag to compare

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

Initial Release

04 Oct 12:02
Compare
Choose a tag to compare
v1.0.0

fix signature generation, add test