Skip to content

Commit c23f655

Browse files
committed
Support unsigned label cborgen for signature validation
1 parent b4f5785 commit c23f655

File tree

4 files changed

+499
-1
lines changed

4 files changed

+499
-1
lines changed

api/bsky/cbor_gen.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
lexutil "github.com/bluesky-social/indigo/lex/util"
1212
"github.com/bluesky-social/indigo/mst"
1313
"github.com/bluesky-social/indigo/repo"
14+
"github.com/bluesky-social/indigo/util/labels"
1415

1516
cbg "github.com/whyrusleeping/cbor-gen"
1617
)
@@ -32,6 +33,10 @@ func main() {
3233
panic(err)
3334
}
3435

36+
if err := cbg.WriteMapEncodersToFile("util/labels/cbor_gen.go", "labels", labels.UnsignedLabel{}, labels.SignedLabel{}); err != nil {
37+
panic(err)
38+
}
39+
3540
if err := cbg.WriteMapEncodersToFile("api/bsky/cbor_gen.go", "bsky",
3641
bsky.FeedPost{}, bsky.FeedRepost{}, bsky.FeedPost_Entity{},
3742
bsky.FeedPost_ReplyRef{}, bsky.FeedPost_TextSlice{}, bsky.EmbedImages{},

0 commit comments

Comments
 (0)