oydid 0.3.1 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/oydid.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 650a9932c8e9415475df701ed1586a7e62571ce1321882d2727d50afdb3a1310
|
4
|
+
data.tar.gz: '0097527fb39e8d7ffcb45600adee12e57fe75d6a38086f55f425c1ad8575324a'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 531da000b53c0badd365323041b3765b9e05cd1a53e5f7f2aa6afc83cf91c1c7f9e8cdb1ac3bcd88ac4c9a7c8fc9eea10ab43e02b260461a28e4b98aff4fcf03
|
7
|
+
data.tar.gz: 0e37c5cfa2212596750861a8c7854064974535341a39c177fd89cbadbfe48ff6e6839ee2dfd25997cfa0e0305ce05648cde958925ca11ed16a7315bde7198d88
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.5
|
data/lib/oydid.rb
CHANGED
@@ -275,7 +275,7 @@ class Oydid
|
|
275
275
|
pubRevoKey_old = public_key(revocationKey_old).first
|
276
276
|
did_key_old = publicKey_old + ":" + pubRevoKey_old
|
277
277
|
subDid = {"doc": did_old_doc, "key": did_key_old}.to_json
|
278
|
-
subDidHash = hash(subDid)
|
278
|
+
subDidHash = hash(canonical(subDid))
|
279
279
|
signedSubDidHash = sign(subDidHash, revocationKey_old).first
|
280
280
|
revocationLog = {
|
281
281
|
"ts": ts_old,
|
@@ -552,7 +552,7 @@ class Oydid
|
|
552
552
|
pubRevoKey_old = public_key(revocationKey_old).first
|
553
553
|
did_key_old = publicKey_old + ":" + pubRevoKey_old
|
554
554
|
subDid = {"doc": did_old_doc, "key": did_key_old}.to_json
|
555
|
-
subDidHash = hash(subDid)
|
555
|
+
subDidHash = hash(canonical(subDid))
|
556
556
|
signedSubDidHash = sign(subDidHash, revocationKey_old).first
|
557
557
|
revocationLog = {
|
558
558
|
"ts": ts_old,
|
@@ -708,9 +708,9 @@ class Oydid
|
|
708
708
|
end
|
709
709
|
newDidDoc << didDoc["service"]
|
710
710
|
newDidDoc = newDidDoc.flatten
|
711
|
+
else
|
712
|
+
newDidDoc = didDoc["service"]
|
711
713
|
end
|
712
|
-
else
|
713
|
-
newDidDoc = didDoc
|
714
714
|
end
|
715
715
|
else
|
716
716
|
newDidDoc = didDoc
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oydid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christoph Fabianek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dag
|