oydid 0.3.2 → 0.4.0

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 +5 -3
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fdd0883f0c8f620e7e0df179e0665ce3e5833dc50571e29ca9f2035a7336168
4
- data.tar.gz: 65588a5899cd069a8bd35d1ab56cf28753e3e3ec7ffcc0781820a1cd253fa701
3
+ metadata.gz: 9e715e178b3d9ea7da5fe0a47421740fec4b6e22f8e3355c9fb7e43a704c6b56
4
+ data.tar.gz: 8ba62acc964c24e22411a4e5e5287df54bdda9b1566f98c91a760d5853a3b826
5
5
  SHA512:
6
- metadata.gz: 3d8ed1a2114b02c387ad6db5602b82f5b2732be81072ed3f9ea294c036c3e0344eadd93a1aebac9c1321ff406d9e56d63f4e6e2bd126f34575ae64d7c6e092d7
7
- data.tar.gz: 6e635a8121304254b70f17a08315e9be4fc654d818e49be1246e2bea9aae24ab0d27548fb697c62dcc7eae6ba0ce9d6c09f75da291b6831dd603683a68c67639
6
+ metadata.gz: d656097d2b8ab1d9d9b19788cdf5051e397c13580de470cbce0d9f0c917dc5a2a9a3ec8c7eb7cfaf8b3ef8755f37275f0fee39ad27d7e87fcba16fc2bd9dea59
7
+ data.tar.gz: cb6ecf4797e57f43c15c401068966688be5fa1f84d8947f2fb5b65b75c96394b7d471cb5c2357f65f6734d0cb6e54f1ea1ded76a4bfa7eb4b2c251e98ba85898
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.4.0
data/lib/oydid.rb CHANGED
@@ -670,17 +670,17 @@ class Oydid
670
670
  wd = {}
671
671
  wd["@context"] = "https://www.w3.org/ns/did/v1"
672
672
  wd["id"] = did
673
- wd["verificationMethod"] = [{
673
+ wd["assertionMethod"] = [{
674
674
  "id": did,
675
675
  "type": "Ed25519VerificationKey2020",
676
676
  "controller": did,
677
- "publicKeyBase58": pubDocKey
677
+ "publicKeyMultibase": pubDocKey
678
678
  }]
679
679
  wd["keyAgreement"] = [{
680
680
  "id": did,
681
681
  "type": "Ed25519VerificationKey2020",
682
682
  "controller": did,
683
- "publicKeyBase58": pubRevKey
683
+ "publicKeyMultibase": pubRevKey
684
684
  }]
685
685
 
686
686
  if didDoc["@context"].to_s == "https://www.w3.org/ns/did/v1"
@@ -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.2
4
+ version: 0.4.0
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-28 00:00:00.000000000 Z
11
+ date: 2022-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dag