oydid 0.3.1 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/oydid.rb +4 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac6225dd965dafae4c9a9013d023882dd0ffe6408eb8922ef4179b8c0be96e10
4
- data.tar.gz: ec26220fc09876cef2fb554ebc8cb16b03485cd31d019514384831188addd645
3
+ metadata.gz: a5db43c42e4c33a5f4f5d02925f997d33d5d04fbce571a58c1b5a90211a6512d
4
+ data.tar.gz: d438b20abf433681fc7615c495f2759f4d75f4415404b9877d3cc51fdf3a5578
5
5
  SHA512:
6
- metadata.gz: b982abdf30a063066e8d6d636cff2b144b80d25aca19aaadc13b2c9aa8f05a794f51362cd03877ad1113be6d08e4f0a038308eafed9c00a6aea25d10ef59db89
7
- data.tar.gz: f783d819dea7744cfe54a1a7575cbf7657b56c0f836822a61eeb4b658e8e1eead2cc3cc1f2d120f06cca6e22e2c6ebda1d83ea3ce50a2050e5e37e2aa58fc4ee
6
+ metadata.gz: 7b19d63e7ce1a670b6530a4574df68004b2503440b18bdab7fa22de6005df4a51212c3674d21a3cffdf9556d18f8834fd9fe9f7ad464a1243fddc90452886366
7
+ data.tar.gz: 16d55752155ece7c432bc40011731b115719f9d512fe35185329ab024ebf0fd6ab9ec46dbf45745f11279983ff13258bc3747c7f288c1fc277296967b1a8def9
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.6
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,6 +708,8 @@ 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
714
  else
713
715
  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.1
4
+ version: 0.3.6
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-04-05 00:00:00.000000000 Z
11
+ date: 2022-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dag