We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f2885d commit 05f4dfeCopy full SHA for 05f4dfe
lib/didkit/did.rb
@@ -29,6 +29,10 @@ def initialize(did, resolved_by = nil)
29
30
alias to_s did
31
32
+ def document
33
+ @document ||= get_document
34
+ end
35
+
36
def get_document
37
Resolver.new.resolve_did(self)
38
end
@@ -70,7 +74,7 @@ def is_known_by_relay?(relay, options = {})
70
74
71
75
72
76
def account_status
73
- doc = get_document
77
+ doc = self.document
78
return nil if doc.pds_endpoint.nil?
79
80
pds_host = URI(doc.pds_endpoint).origin
@@ -99,7 +103,7 @@ def account_status
99
103
100
104
101
105
def account_exists?
102
106
107
return false if doc.pds_endpoint.nil?
108
109
0 commit comments