did_resolver 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/lib/did_resolver/did_document.rb +6 -1
- data/lib/did_resolver/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc35726a7175752b36fd922d71d8a5155e726eb0fbcab7988423ba4350c081b2
|
|
4
|
+
data.tar.gz: 97e147766d8910e298329bb78997ab8de6d62da6d13ebe5576f76428a0bfb05b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2436b491b7685e3bc8e0eb42e240a6298f85615ac20ae74bdca855943e9ad254ed9da4f1fecfb9ff520a89dcd73b52e814ca35c70ec6ecdac0993b3bd363181e
|
|
7
|
+
data.tar.gz: 470034d44b5eb5a99caf71f34443a369774e5f85234d23022b98f4e0e9d3cfbc7c34bae75c5afedbabfde89128953afc1ed850630bdcac078fa6c053b1ae31d0
|
data/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,14 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [0.1.
|
|
8
|
+
## [0.1.1] - 2026-02-02
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Fixed `find_verification_method` to match keys stored with fragment-only IDs (e.g., `#key-1` instead of `did:web:example.com#key-1`)
|
|
13
|
+
- Improved key lookup to handle various DID document formats where verification method IDs may be stored as relative references
|
|
14
|
+
|
|
15
|
+
## [0.1.0] - 2026-02-02
|
|
9
16
|
|
|
10
17
|
### Added
|
|
11
18
|
|
|
@@ -43,8 +43,13 @@ module DidResolver
|
|
|
43
43
|
def find_verification_method(id_or_ref)
|
|
44
44
|
# Normalize reference - could be full ID or just fragment
|
|
45
45
|
target_id = id_or_ref.start_with?("#") ? "#{@id}#{id_or_ref}" : id_or_ref
|
|
46
|
+
# Also extract just the fragment for comparison
|
|
47
|
+
fragment = id_or_ref.include?("#") ? "##{id_or_ref.split('#').last}" : nil
|
|
46
48
|
|
|
47
|
-
verification_method.find
|
|
49
|
+
verification_method.find do |vm|
|
|
50
|
+
vm_id = vm[:id] || vm["id"]
|
|
51
|
+
vm_id == target_id || vm_id == id_or_ref || (fragment && vm_id == fragment)
|
|
52
|
+
end
|
|
48
53
|
end
|
|
49
54
|
|
|
50
55
|
# Get verification methods for a specific purpose
|
data/lib/did_resolver/version.rb
CHANGED