Skip to content

Commit

Permalink
Chase change in indigo re: public keys
Browse files Browse the repository at this point in the history
  • Loading branch information
lxcode committed Mar 23, 2024
1 parent d7f6e2f commit fbe3b23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/hydrator/hydrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (

"github.com/bluesky-social/indigo/api/atproto"
"github.com/bluesky-social/indigo/api/bsky"
"github.com/bluesky-social/indigo/atproto/crypto"
"github.com/bluesky-social/indigo/atproto/identity"
atpidentity "github.com/bluesky-social/indigo/atproto/identity"
"github.com/bluesky-social/indigo/atproto/syntax"
Expand Down Expand Up @@ -168,9 +169,12 @@ func (h *Hydrator) flattenIdentity(identity *atpidentity.Identity) (result map[s

result = make(map[string]interface{})

var pk crypto.PublicKey
pk, _ = identity.PublicKey()

result["DID"] = identity.Handle.String()
result["Handle"] = identity.Handle
result["DIDKey"] = identity.ParsedPublicKey.DIDKey()
result["DIDKey"] = pk.DIDKey()
result["PDS"] = identity.PDSEndpoint()

return
Expand Down

0 comments on commit fbe3b23

Please sign in to comment.