File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,11 @@ import (
25
25
26
26
func Encode (data interface {}) ([]byte , error ) {
27
27
buf := bytes .NewBuffer (nil )
28
- em , err := _cbor .CoreDetEncOptions ().EncModeWithTags (customTagSet )
28
+ opts := _cbor.EncOptions {
29
+ // Make sure that maps have ordered keys
30
+ Sort : _cbor .SortCoreDeterministic ,
31
+ }
32
+ em , err := opts .EncModeWithTags (customTagSet )
29
33
if err != nil {
30
34
return nil , err
31
35
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ toolchain go1.21.5
7
7
require (
8
8
filippo.io/edwards25519 v1.1.0
9
9
github.com/blinklabs-io/ouroboros-mock v0.3.1
10
- github.com/fxamacker/cbor/v2 v2.6 .0
10
+ github.com/fxamacker/cbor/v2 v2.7 .0
11
11
github.com/jinzhu/copier v0.4.0
12
12
github.com/utxorpc/go-codegen v0.5.1
13
13
go.uber.org/goleak v1.3.0
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ github.com/blinklabs-io/ouroboros-mock v0.3.1 h1:oQiMgH0VgsJIGy4lJGaySegObq5FsVg
4
4
github.com/blinklabs-io/ouroboros-mock v0.3.1 /go.mod h1:6DosKZuBZ4mmvky3hXUzGZqqb/KhbwOiKOldwAtNoxc =
5
5
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM =
6
6
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
7
- github.com/fxamacker/cbor/v2 v2.6 .0 h1:sU6J2usfADwWlYDAFhZBQ6TnLFBHxgesMrQfQgk1tWA =
8
- github.com/fxamacker/cbor/v2 v2.6 .0 /go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ =
7
+ github.com/fxamacker/cbor/v2 v2.7 .0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E =
8
+ github.com/fxamacker/cbor/v2 v2.7 .0 /go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ =
9
9
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI =
10
10
github.com/google/go-cmp v0.6.0 /go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY =
11
11
github.com/jinzhu/copier v0.4.0 h1:w3ciUoD19shMCRargcpm0cm91ytaBhDvuRpz1ODO/U8 =
You can’t perform that action at this time.
0 commit comments