sidetree 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sidetree/model/core_proof_file.rb +5 -2
- data/lib/sidetree/version.rb +1 -1
- 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: 9d82e9b251c67c82450b5e76b413a69a660f8b941799c66692a731621213cd8d
|
4
|
+
data.tar.gz: a0a28978b8dcd21c631e6a1a2e0ff102c96ac22898485bce9e3877e9a558b13d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc74695690231772786246306b93d0a674ee2da899cd953edcef91997bc778acab7d624a817e0274a0c1157ee1abe48e00d4e00626a818c485141216947b01dc
|
7
|
+
data.tar.gz: 678b4c0013e26cdca615f48669b373d82ff2d669be9b8190680b75704a68b1c0476f73c75d9aa3dca362b2e0f9131aa8f04fc8d6d59c45d7d084d2038be7744b
|
@@ -5,7 +5,7 @@ module Sidetree
|
|
5
5
|
attr_reader :recover_proofs
|
6
6
|
attr_reader :deactivate_proofs
|
7
7
|
|
8
|
-
def initialize(recover_proofs, deactivate_proofs)
|
8
|
+
def initialize(recover_proofs: [], deactivate_proofs: [])
|
9
9
|
@recover_proofs = recover_proofs
|
10
10
|
@deactivate_proofs = deactivate_proofs
|
11
11
|
end
|
@@ -78,7 +78,10 @@ module Sidetree
|
|
78
78
|
if recover_proofs.length + deactivate_proofs.length == 0
|
79
79
|
raise Sidetree::Error, "Core proof file has no proof"
|
80
80
|
end
|
81
|
-
CoreProofFile.new(
|
81
|
+
CoreProofFile.new(
|
82
|
+
recover_proofs: recover_proofs,
|
83
|
+
deactivate_proofs: deactivate_proofs
|
84
|
+
)
|
82
85
|
rescue JSON::ParserError
|
83
86
|
raise Sidetree::Error, "Core proof file is not json"
|
84
87
|
end
|
data/lib/sidetree/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidetree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- azuchi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ecdsa
|