tangled
alpha
login
or
join now
mackuba.eu
/
didkit
1
fork
atom
A library for handling DID identifiers used in Bluesky AT Protocol
1
fork
atom
overview
issues
pulls
pipelines
renamed pick_verified_handle
mackuba.eu
3 months ago
1ad18cc1
fa9d6f99
+2
-2
1 changed file
expand all
collapse all
unified
split
lib
didkit
resolver.rb
+2
-2
lib/didkit/resolver.rb
···
92
92
def get_verified_handle(subject)
93
93
document = subject.is_a?(Document) ? subject : resolve_did(subject)
94
94
95
95
-
pick_verified_handle(document.did, document.handles)
95
95
+
first_verified_handle(document.did, document.handles)
96
96
end
97
97
98
98
-
def pick_verified_handle(did, handles)
98
98
+
def first_verified_handle(did, handles)
99
99
handles.detect { |h| resolve_handle(h) == did.to_s }
100
100
end
101
101
end