Skip to content

Commit

Permalink
use cbor.SortCoreDeterministic for CBOR encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Nov 4, 2022
1 parent 77e3f9f commit e432d07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cbor.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func init() {

// init encode mode
encOpts := cbor.EncOptions{
Sort: cbor.SortCanonical, // sort map keys
IndefLength: cbor.IndefLengthForbidden, // no streaming
Sort: cbor.SortCoreDeterministic, // sort map keys
IndefLength: cbor.IndefLengthForbidden, // no streaming
}
encMode, err = encOpts.EncMode()
if err != nil {
Expand Down

0 comments on commit e432d07

Please sign in to comment.