Skip to content

Commit

Permalink
Use cbor.SortCoreDeterministic for CBOR encoding (#113)
Browse files Browse the repository at this point in the history
Signed-off-by: qmuntal <qmuntaldiaz@microsoft.com>
  • Loading branch information
qmuntal authored Nov 14, 2022
1 parent 77e3f9f commit f72b6bc
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 f72b6bc

Please sign in to comment.