oydid 0.4.4 → 0.5.3
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/basic.rb +149 -33
- data/lib/oydid/didcomm.rb +9 -9
- data/lib/oydid/log.rb +14 -7
- data/lib/oydid/vc.rb +264 -0
- data/lib/oydid.rb +283 -113
- data/spec/input/basic/sample_b16_dec.doc +1 -0
- data/spec/input/basic/{sample_enc.doc → sample_b16_enc.doc} +0 -0
- data/spec/input/basic/sample_b17_edec.doc +1 -0
- data/spec/input/basic/{sample_hash.doc → sample_b17_enc.doc} +0 -0
- data/spec/input/basic/sample_b32_dec.doc +1 -0
- data/spec/{output/basic/sample_dec.doc → input/basic/sample_b32_enc.doc} +0 -0
- data/spec/input/basic/{sample_dec.doc → sample_b58_dec.doc} +0 -0
- data/spec/input/basic/sample_b58_enc.doc +1 -0
- data/spec/input/basic/sample_b64_dec.doc +1 -0
- data/spec/input/basic/sample_b64_enc.doc +1 -0
- data/spec/input/basic/sample_blake2b-16_b16_hash.doc +1 -0
- data/spec/input/basic/sample_blake2b-32_b32_hash.doc +1 -0
- data/spec/input/basic/sample_blake2b-64_b58_hash.doc +1 -0
- data/spec/input/basic/sample_invalid2_readkey.doc +1 -1
- data/spec/input/basic/sample_invalid3_readkey.doc +1 -1
- data/spec/input/basic/sample_readkey.doc +1 -1
- data/spec/input/basic/sample_sha2-256_b58_hash.doc +1 -0
- data/spec/input/basic/sample_sha2-512_b58_hash.doc +1 -0
- data/spec/input/basic/sample_sha3-224_b64_hash.doc +1 -0
- data/spec/output/basic/sample_b16_dec.doc +1 -0
- data/spec/output/basic/sample_b16_enc.doc +1 -0
- data/spec/output/basic/sample_b17_edec.doc +2 -0
- data/spec/output/basic/sample_b17_enc.doc +1 -0
- data/spec/output/basic/sample_b32_dec.doc +1 -0
- data/spec/output/basic/sample_b32_enc.doc +1 -0
- data/spec/output/basic/sample_b58_dec.doc +1 -0
- data/spec/output/basic/{sample_enc.doc → sample_b58_enc.doc} +0 -0
- data/spec/output/basic/sample_b64_dec.doc +1 -0
- data/spec/output/basic/sample_b64_enc.doc +1 -0
- data/spec/output/basic/sample_blake2b-16_b16_hash.doc +1 -0
- data/spec/output/basic/sample_blake2b-32_b32_hash.doc +1 -0
- data/spec/output/basic/sample_blake2b-64_b58_hash.doc +1 -0
- data/spec/output/basic/{sample_hash.doc → sample_sha2-256_b58_hash.doc} +0 -0
- data/spec/output/basic/sample_sha2-512_b58_hash.doc +1 -0
- data/spec/output/basic/sample_sha3-224_b64_hash.doc +1 -0
- data/spec/oydid_spec.rb +95 -13
- metadata +72 -19
@@ -0,0 +1 @@
|
|
1
|
+
f68656c6c6f20776f726c64
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
0x0
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
bnbswy3dpeb3w64tmmq
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
hello world
|
@@ -0,0 +1 @@
|
|
1
|
+
maGVsbG8gd29ybGQ
|
@@ -0,0 +1 @@
|
|
1
|
+
hello world
|
@@ -0,0 +1 @@
|
|
1
|
+
hello world
|
@@ -0,0 +1 @@
|
|
1
|
+
hello world
|
@@ -0,0 +1 @@
|
|
1
|
+
hello world
|
@@ -1 +1 @@
|
|
1
|
-
./spec/input/basic/sample_invalid_readkey.
|
1
|
+
./spec/input/basic/sample_invalid_readkey.enc
|
@@ -1 +1 @@
|
|
1
|
-
./spec/input/basic/sample_invalid2_readkey.
|
1
|
+
./spec/input/basic/sample_invalid2_readkey.enc
|
@@ -1 +1 @@
|
|
1
|
-
./spec/input/basic/sample_readkey.
|
1
|
+
./spec/input/basic/sample_readkey.enc
|
@@ -0,0 +1 @@
|
|
1
|
+
hello world
|
@@ -0,0 +1 @@
|
|
1
|
+
hello world
|
@@ -0,0 +1 @@
|
|
1
|
+
hello world
|
@@ -0,0 +1 @@
|
|
1
|
+
hello world
|
@@ -0,0 +1 @@
|
|
1
|
+
f68656c6c6f20776f726c64
|
@@ -0,0 +1,2 @@
|
|
1
|
+
Can not convert from ByteArray to string without encoding. Pass the resulting string encoding as the first argument of to_s.
|
2
|
+
This does not default to UTF-8 or US-ASCII because that would hide issues until you have output that is NOT encoding as UTF-8 or US-ASCII and does not fit in those ranges.
|
@@ -0,0 +1 @@
|
|
1
|
+
unsupported encoding: 'base17'
|
@@ -0,0 +1 @@
|
|
1
|
+
hello world
|
@@ -0,0 +1 @@
|
|
1
|
+
bnbswy3dpeb3w64tmmq
|
@@ -0,0 +1 @@
|
|
1
|
+
hello world
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
hello world
|
@@ -0,0 +1 @@
|
|
1
|
+
maGVsbG8gd29ybGQ
|
@@ -0,0 +1 @@
|
|
1
|
+
f0210e9a804b2e527fd3601d2ffc0bb023cd6
|
@@ -0,0 +1 @@
|
|
1
|
+
baqqck3edwklrctjadmybphz7b3ymvtuxqnrc3jmximtlinqxrlxpmea
|
@@ -0,0 +1 @@
|
|
1
|
+
z4DNopg2o7pdNtcdYNkxYSxFazmxaFTdbBK4PKDLwYvoDg4kKAGZyBbCjCuffHAmpnLbU7DgFAhfG6Q9VUx5mPEdvAb
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
z8Vtkv2tdQ43bNGdWN9vNx9GVS9wrbXHk4ZW8kmucPmaYJwwedXir52kti9wJhcik4HehyqgLrQ1hBuirviLhxgRBNv
|
@@ -0,0 +1 @@
|
|
1
|
+
mFxzft/GMd+kou1b66y2icpG9eQvBBFzeRfMhC7bF
|
data/spec/oydid_spec.rb
CHANGED
@@ -1,26 +1,108 @@
|
|
1
1
|
require_relative 'spec_helper'
|
2
2
|
|
3
3
|
describe "OYDID handling" do
|
4
|
-
# basic functions
|
5
|
-
Dir.glob(File.expand_path("../input/basic/*
|
4
|
+
# basic functions - base58btc encoding
|
5
|
+
Dir.glob(File.expand_path("../input/basic/*_b58_enc.doc", __FILE__)).each do |input|
|
6
6
|
it "encodes #{input.split('/').last}" do
|
7
7
|
expected = File.read(input.sub('input', 'output'))
|
8
8
|
data = File.read(input)
|
9
|
-
expect(Oydid.
|
9
|
+
expect(Oydid.multi_encode(data, {}).first).to eq expected
|
10
10
|
end
|
11
11
|
end
|
12
|
+
# base16 encoding
|
13
|
+
Dir.glob(File.expand_path("../input/basic/*_b16_enc.doc", __FILE__)).each do |input|
|
14
|
+
it "encodes #{input.split('/').last}" do
|
15
|
+
expected = File.read(input.sub('input', 'output'))
|
16
|
+
data = File.read(input)
|
17
|
+
expect(Oydid.multi_encode(data, {encode: "base16"}).first).to eq expected
|
18
|
+
end
|
19
|
+
end
|
20
|
+
# base32 encoding
|
21
|
+
Dir.glob(File.expand_path("../input/basic/*_b32_enc.doc", __FILE__)).each do |input|
|
22
|
+
it "encodes #{input.split('/').last}" do
|
23
|
+
expected = File.read(input.sub('input', 'output'))
|
24
|
+
data = File.read(input)
|
25
|
+
expect(Oydid.multi_encode(data, {encode: "base32"}).first).to eq expected
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# base64 encoding
|
29
|
+
Dir.glob(File.expand_path("../input/basic/*_b64_enc.doc", __FILE__)).each do |input|
|
30
|
+
it "encodes #{input.split('/').last}" do
|
31
|
+
expected = File.read(input.sub('input', 'output'))
|
32
|
+
data = File.read(input)
|
33
|
+
expect(Oydid.multi_encode(data, {encode: "base64"}).first).to eq expected
|
34
|
+
end
|
35
|
+
end
|
36
|
+
# invalid encoding
|
37
|
+
Dir.glob(File.expand_path("../input/basic/*_b17_enc.doc", __FILE__)).each do |input|
|
38
|
+
it "encodes #{input.split('/').last}" do
|
39
|
+
expected = File.read(input.sub('input', 'output'))
|
40
|
+
data = File.read(input)
|
41
|
+
expect(Oydid.multi_encode(data, {encode: "base17"}).last).to eq expected
|
42
|
+
end
|
43
|
+
end
|
44
|
+
# decoding
|
12
45
|
Dir.glob(File.expand_path("../input/basic/*_dec.doc", __FILE__)).each do |input|
|
13
46
|
it "decodes #{input.split('/').last}" do
|
14
47
|
expected = File.read(input.sub('input', 'output'))
|
15
48
|
data = File.read(input)
|
16
|
-
expect(Oydid.
|
49
|
+
expect(Oydid.multi_decode(data).first.to_s).to eq expected
|
50
|
+
end
|
51
|
+
end
|
52
|
+
# invalid decoding
|
53
|
+
Dir.glob(File.expand_path("../input/basic/*_b17_edec.doc", __FILE__)).each do |input|
|
54
|
+
it "decodes #{input.split('/').last}" do
|
55
|
+
expected = File.read(input.sub('input', 'output'))
|
56
|
+
data = File.read(input)
|
57
|
+
expect(Oydid.multi_decode(data).last.to_s).to eq expected
|
58
|
+
end
|
59
|
+
end
|
60
|
+
# multi_hash: sha2-256, b58
|
61
|
+
Dir.glob(File.expand_path("../input/basic/*_sha2-256_b58_hash.doc", __FILE__)).each do |input|
|
62
|
+
it "hashes #{input.split('/').last}" do
|
63
|
+
expected = File.read(input.sub('input', 'output'))
|
64
|
+
data = File.read(input)
|
65
|
+
expect(Oydid.multi_hash(data, {}).first).to eq expected
|
66
|
+
end
|
67
|
+
end
|
68
|
+
# multi_hash: sha2-512, b58
|
69
|
+
Dir.glob(File.expand_path("../input/basic/*_sha2-512_b58_hash.doc", __FILE__)).each do |input|
|
70
|
+
it "hashes #{input.split('/').last}" do
|
71
|
+
expected = File.read(input.sub('input', 'output'))
|
72
|
+
data = File.read(input)
|
73
|
+
expect(Oydid.multi_hash(data, {digest: "sha2-512"}).first).to eq expected
|
74
|
+
end
|
75
|
+
end
|
76
|
+
# multi_hash: sha3-224, b64
|
77
|
+
Dir.glob(File.expand_path("../input/basic/*_sha3-224_b64_hash.doc", __FILE__)).each do |input|
|
78
|
+
it "hashes #{input.split('/').last}" do
|
79
|
+
expected = File.read(input.sub('input', 'output'))
|
80
|
+
data = File.read(input)
|
81
|
+
expect(Oydid.multi_hash(data, {digest: "sha3-224", encode: "base64"}).first).to eq expected
|
82
|
+
end
|
83
|
+
end
|
84
|
+
# multi_hash: blake2b-16, b16
|
85
|
+
Dir.glob(File.expand_path("../input/basic/*_blake2b-16_b16_hash.doc", __FILE__)).each do |input|
|
86
|
+
it "hashes #{input.split('/').last}" do
|
87
|
+
expected = File.read(input.sub('input', 'output'))
|
88
|
+
data = File.read(input)
|
89
|
+
expect(Oydid.multi_hash(data, {digest: "blake2b-16", encode: "base16"}).first).to eq expected
|
90
|
+
end
|
91
|
+
end
|
92
|
+
# multi_hash: blake2b-32, b32
|
93
|
+
Dir.glob(File.expand_path("../input/basic/*_blake2b-32_b32_hash.doc", __FILE__)).each do |input|
|
94
|
+
it "hashes #{input.split('/').last}" do
|
95
|
+
expected = File.read(input.sub('input', 'output'))
|
96
|
+
data = File.read(input)
|
97
|
+
expect(Oydid.multi_hash(data, {digest: "blake2b-32", encode: "base32"}).first).to eq expected
|
17
98
|
end
|
18
99
|
end
|
19
|
-
|
100
|
+
# multi_hash: blake2b-64, b58
|
101
|
+
Dir.glob(File.expand_path("../input/basic/*_blake2b-64_b58_hash.doc", __FILE__)).each do |input|
|
20
102
|
it "hashes #{input.split('/').last}" do
|
21
103
|
expected = File.read(input.sub('input', 'output'))
|
22
104
|
data = File.read(input)
|
23
|
-
expect(Oydid.
|
105
|
+
expect(Oydid.multi_hash(data, {digest: "blake2b-64"}).first).to eq expected
|
24
106
|
end
|
25
107
|
end
|
26
108
|
Dir.glob(File.expand_path("../input/basic/*.json", __FILE__)).each do |input|
|
@@ -41,33 +123,33 @@ describe "OYDID handling" do
|
|
41
123
|
it "generates #{input.split('/').last}" do
|
42
124
|
expected = File.read(input.sub('input', 'output'))
|
43
125
|
data = File.read(input)
|
44
|
-
expect(Oydid.generate_private_key(data).first).to eq expected
|
126
|
+
expect(Oydid.generate_private_key(data, {}).first).to eq expected
|
45
127
|
end
|
46
128
|
end
|
47
129
|
it "handles unknown key codec" do
|
48
130
|
expected = "unknown key codec"
|
49
|
-
expect(Oydid.generate_private_key("", "asdf").last).to eq expected
|
131
|
+
expect(Oydid.generate_private_key("", "asdf", {}).last).to eq expected
|
50
132
|
end
|
51
133
|
it "handles unsupported key codec" do
|
52
134
|
expected = "unsupported key codec"
|
53
|
-
expect(Oydid.generate_private_key("", "p256-pub").last).to eq expected
|
135
|
+
expect(Oydid.generate_private_key("", "p256-pub", {}).last).to eq expected
|
54
136
|
end
|
55
137
|
it "handles random key generation" do
|
56
138
|
expected_length = 48
|
57
|
-
expect(Oydid.generate_private_key("").first.length).to eq expected_length
|
139
|
+
expect(Oydid.generate_private_key("", "ed25519-priv", {}).first.length).to eq expected_length
|
58
140
|
end
|
59
141
|
Dir.glob(File.expand_path("../input/basic/*_privkey.doc", __FILE__)).each do |input|
|
60
142
|
it "public key from private key #{input.split('/').last}" do
|
61
143
|
expected = JSON.parse(File.read(input.sub('input', 'output')))
|
62
144
|
data = File.read(input)
|
63
|
-
expect(Oydid.public_key(data)).to eq expected
|
145
|
+
expect(Oydid.public_key(data, {})).to eq expected
|
64
146
|
end
|
65
147
|
end
|
66
148
|
Dir.glob(File.expand_path("../input/basic/*_sign.doc", __FILE__)).each do |input|
|
67
149
|
it "signing #{input.split('/').last}" do
|
68
150
|
expected = JSON.parse(File.read(input.sub('input', 'output')))
|
69
151
|
data = JSON.parse(File.read(input))
|
70
|
-
expect(Oydid.sign(data["message"], data["key"])).to eq expected
|
152
|
+
expect(Oydid.sign(data["message"], data["key"], {})).to eq expected
|
71
153
|
end
|
72
154
|
end
|
73
155
|
Dir.glob(File.expand_path("../input/basic/*_verify.doc", __FILE__)).each do |input|
|
@@ -81,7 +163,7 @@ describe "OYDID handling" do
|
|
81
163
|
it "reading private key from file #{input.split('/').last}" do
|
82
164
|
expected = JSON.parse(File.read(input.sub('input', 'output')))
|
83
165
|
data = File.read(input)
|
84
|
-
expect(Oydid.read_private_key(data)).to eq expected
|
166
|
+
expect(Oydid.read_private_key(data, {})).to eq expected
|
85
167
|
end
|
86
168
|
end
|
87
169
|
|
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.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christoph Fabianek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dag
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: '0.21'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: '0.21'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: multibases
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.
|
131
|
+
version: 0.3.0
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.
|
138
|
+
version: 0.3.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rspec
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,6 +164,7 @@ files:
|
|
164
164
|
- lib/oydid/basic.rb
|
165
165
|
- lib/oydid/didcomm.rb
|
166
166
|
- lib/oydid/log.rb
|
167
|
+
- lib/oydid/vc.rb
|
167
168
|
- spec/input/basic/arrays.json
|
168
169
|
- spec/input/basic/french.json
|
169
170
|
- spec/input/basic/sample2_get_location.doc
|
@@ -171,10 +172,20 @@ files:
|
|
171
172
|
- spec/input/basic/sample3_retrieve_document.doc
|
172
173
|
- spec/input/basic/sample4_retrieve_document.doc
|
173
174
|
- spec/input/basic/sample5_retrieve_document.doc
|
174
|
-
- spec/input/basic/
|
175
|
-
- spec/input/basic/
|
175
|
+
- spec/input/basic/sample_b16_dec.doc
|
176
|
+
- spec/input/basic/sample_b16_enc.doc
|
177
|
+
- spec/input/basic/sample_b17_edec.doc
|
178
|
+
- spec/input/basic/sample_b17_enc.doc
|
179
|
+
- spec/input/basic/sample_b32_dec.doc
|
180
|
+
- spec/input/basic/sample_b32_enc.doc
|
181
|
+
- spec/input/basic/sample_b58_dec.doc
|
182
|
+
- spec/input/basic/sample_b58_enc.doc
|
183
|
+
- spec/input/basic/sample_b64_dec.doc
|
184
|
+
- spec/input/basic/sample_b64_enc.doc
|
185
|
+
- spec/input/basic/sample_blake2b-16_b16_hash.doc
|
186
|
+
- spec/input/basic/sample_blake2b-32_b32_hash.doc
|
187
|
+
- spec/input/basic/sample_blake2b-64_b58_hash.doc
|
176
188
|
- spec/input/basic/sample_get_location.doc
|
177
|
-
- spec/input/basic/sample_hash.doc
|
178
189
|
- spec/input/basic/sample_invalid2_readkey.doc
|
179
190
|
- spec/input/basic/sample_invalid2_verify.doc
|
180
191
|
- spec/input/basic/sample_invalid3_readkey.doc
|
@@ -186,6 +197,9 @@ files:
|
|
186
197
|
- spec/input/basic/sample_key.doc
|
187
198
|
- spec/input/basic/sample_readkey.doc
|
188
199
|
- spec/input/basic/sample_retrieve_document.doc
|
200
|
+
- spec/input/basic/sample_sha2-256_b58_hash.doc
|
201
|
+
- spec/input/basic/sample_sha2-512_b58_hash.doc
|
202
|
+
- spec/input/basic/sample_sha3-224_b64_hash.doc
|
189
203
|
- spec/input/basic/sample_sign.doc
|
190
204
|
- spec/input/basic/sample_valid_privkey.doc
|
191
205
|
- spec/input/basic/sample_verify.doc
|
@@ -227,10 +241,20 @@ files:
|
|
227
241
|
- spec/output/basic/sample3_retrieve_document.doc
|
228
242
|
- spec/output/basic/sample4_retrieve_document.doc
|
229
243
|
- spec/output/basic/sample5_retrieve_document.doc
|
230
|
-
- spec/output/basic/
|
231
|
-
- spec/output/basic/
|
244
|
+
- spec/output/basic/sample_b16_dec.doc
|
245
|
+
- spec/output/basic/sample_b16_enc.doc
|
246
|
+
- spec/output/basic/sample_b17_edec.doc
|
247
|
+
- spec/output/basic/sample_b17_enc.doc
|
248
|
+
- spec/output/basic/sample_b32_dec.doc
|
249
|
+
- spec/output/basic/sample_b32_enc.doc
|
250
|
+
- spec/output/basic/sample_b58_dec.doc
|
251
|
+
- spec/output/basic/sample_b58_enc.doc
|
252
|
+
- spec/output/basic/sample_b64_dec.doc
|
253
|
+
- spec/output/basic/sample_b64_enc.doc
|
254
|
+
- spec/output/basic/sample_blake2b-16_b16_hash.doc
|
255
|
+
- spec/output/basic/sample_blake2b-32_b32_hash.doc
|
256
|
+
- spec/output/basic/sample_blake2b-64_b58_hash.doc
|
232
257
|
- spec/output/basic/sample_get_location.doc
|
233
|
-
- spec/output/basic/sample_hash.doc
|
234
258
|
- spec/output/basic/sample_invalid2_readkey.doc
|
235
259
|
- spec/output/basic/sample_invalid2_verify.doc
|
236
260
|
- spec/output/basic/sample_invalid3_readkey.doc
|
@@ -242,6 +266,9 @@ files:
|
|
242
266
|
- spec/output/basic/sample_key.doc
|
243
267
|
- spec/output/basic/sample_readkey.doc
|
244
268
|
- spec/output/basic/sample_retrieve_document.doc
|
269
|
+
- spec/output/basic/sample_sha2-256_b58_hash.doc
|
270
|
+
- spec/output/basic/sample_sha2-512_b58_hash.doc
|
271
|
+
- spec/output/basic/sample_sha3-224_b64_hash.doc
|
245
272
|
- spec/output/basic/sample_sign.doc
|
246
273
|
- spec/output/basic/sample_valid_privkey.doc
|
247
274
|
- spec/output/basic/sample_verify.doc
|
@@ -293,7 +320,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
293
320
|
requirements:
|
294
321
|
- - ">="
|
295
322
|
- !ruby/object:Gem::Version
|
296
|
-
version: 2.
|
323
|
+
version: 2.6.9
|
297
324
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
298
325
|
requirements:
|
299
326
|
- - ">="
|
@@ -319,30 +346,43 @@ test_files:
|
|
319
346
|
- spec/output/basic/unicode.json
|
320
347
|
- spec/output/basic/wierd.json
|
321
348
|
- spec/output/basic/values.json
|
349
|
+
- spec/input/basic/sample_b32_dec.doc
|
350
|
+
- spec/input/basic/sample_b58_enc.doc
|
322
351
|
- spec/input/basic/sample_retrieve_document.doc
|
352
|
+
- spec/input/basic/sample_b58_dec.doc
|
353
|
+
- spec/input/basic/sample_sha2-512_b58_hash.doc
|
354
|
+
- spec/input/basic/sample_b32_enc.doc
|
323
355
|
- spec/input/basic/sample_get_location.doc
|
324
356
|
- spec/input/basic/sample_invalid2_verify.doc
|
325
357
|
- spec/input/basic/sample_valid_privkey.doc
|
326
358
|
- spec/input/basic/sample2_retrieve_document.doc
|
327
359
|
- spec/input/basic/zQmaBZTghn.doc
|
360
|
+
- spec/input/basic/sample_blake2b-16_b16_hash.doc
|
328
361
|
- spec/input/basic/sample4_retrieve_document.doc
|
362
|
+
- spec/input/basic/sample_b64_enc.doc
|
329
363
|
- spec/input/basic/sample_invalid3_readkey.doc
|
364
|
+
- spec/input/basic/sample_b16_enc.doc
|
365
|
+
- spec/input/basic/sample_b17_enc.doc
|
366
|
+
- spec/input/basic/sample_blake2b-32_b32_hash.doc
|
367
|
+
- spec/input/basic/sample_b64_dec.doc
|
368
|
+
- spec/input/basic/sample_b16_dec.doc
|
330
369
|
- spec/input/basic/sample_sign.doc
|
370
|
+
- spec/input/basic/sample_blake2b-64_b58_hash.doc
|
331
371
|
- spec/input/basic/sample_invalid_privkey.doc
|
332
372
|
- spec/input/basic/sample_invalid3_verify.doc
|
333
373
|
- spec/input/basic/sample_readkey.doc
|
334
374
|
- spec/input/basic/sample_key.doc
|
335
375
|
- spec/input/basic/sample3_retrieve_document.doc
|
376
|
+
- spec/input/basic/sample_b17_edec.doc
|
336
377
|
- spec/input/basic/sample_verify.doc
|
337
378
|
- spec/input/basic/sample5_retrieve_document.doc
|
338
|
-
- spec/input/basic/
|
379
|
+
- spec/input/basic/sample_sha3-224_b64_hash.doc
|
339
380
|
- spec/input/basic/sample2_get_location.doc
|
340
381
|
- spec/input/basic/sample_invalid_readkey.doc
|
341
382
|
- spec/input/basic/sample_invalid2_readkey.doc
|
342
383
|
- spec/input/basic/sample_invalid_verify.doc
|
343
|
-
- spec/input/basic/
|
384
|
+
- spec/input/basic/sample_sha2-256_b58_hash.doc
|
344
385
|
- spec/input/basic/sample_invalid_sign.doc
|
345
|
-
- spec/input/basic/sample_enc.doc
|
346
386
|
- spec/input/log/sample4_retrieve_log.doc
|
347
387
|
- spec/input/log/sample_op1_addhash.doc
|
348
388
|
- spec/input/log/sample0_dag_did.doc
|
@@ -369,29 +409,42 @@ test_files:
|
|
369
409
|
- spec/input/log/sample2_dag_did.doc
|
370
410
|
- spec/input/log/sample3_dag_update.doc
|
371
411
|
- spec/input/main/sample0_read.doc
|
412
|
+
- spec/output/basic/sample_b32_dec.doc
|
413
|
+
- spec/output/basic/sample_b58_enc.doc
|
372
414
|
- spec/output/basic/sample_retrieve_document.doc
|
415
|
+
- spec/output/basic/sample_b58_dec.doc
|
416
|
+
- spec/output/basic/sample_sha2-512_b58_hash.doc
|
417
|
+
- spec/output/basic/sample_b32_enc.doc
|
373
418
|
- spec/output/basic/sample_get_location.doc
|
374
419
|
- spec/output/basic/sample_invalid2_verify.doc
|
375
420
|
- spec/output/basic/sample_valid_privkey.doc
|
376
421
|
- spec/output/basic/sample2_retrieve_document.doc
|
422
|
+
- spec/output/basic/sample_blake2b-16_b16_hash.doc
|
377
423
|
- spec/output/basic/sample4_retrieve_document.doc
|
424
|
+
- spec/output/basic/sample_b64_enc.doc
|
378
425
|
- spec/output/basic/sample_invalid3_readkey.doc
|
426
|
+
- spec/output/basic/sample_b16_enc.doc
|
427
|
+
- spec/output/basic/sample_b17_enc.doc
|
428
|
+
- spec/output/basic/sample_blake2b-32_b32_hash.doc
|
429
|
+
- spec/output/basic/sample_b64_dec.doc
|
430
|
+
- spec/output/basic/sample_b16_dec.doc
|
379
431
|
- spec/output/basic/sample_sign.doc
|
432
|
+
- spec/output/basic/sample_blake2b-64_b58_hash.doc
|
380
433
|
- spec/output/basic/sample_invalid_privkey.doc
|
381
434
|
- spec/output/basic/sample_invalid3_verify.doc
|
382
435
|
- spec/output/basic/sample_readkey.doc
|
383
436
|
- spec/output/basic/sample_key.doc
|
384
437
|
- spec/output/basic/sample3_retrieve_document.doc
|
438
|
+
- spec/output/basic/sample_b17_edec.doc
|
385
439
|
- spec/output/basic/sample_verify.doc
|
386
440
|
- spec/output/basic/sample5_retrieve_document.doc
|
387
|
-
- spec/output/basic/
|
441
|
+
- spec/output/basic/sample_sha3-224_b64_hash.doc
|
388
442
|
- spec/output/basic/sample2_get_location.doc
|
389
443
|
- spec/output/basic/sample_invalid_readkey.doc
|
390
444
|
- spec/output/basic/sample_invalid2_readkey.doc
|
391
445
|
- spec/output/basic/sample_invalid_verify.doc
|
392
|
-
- spec/output/basic/
|
446
|
+
- spec/output/basic/sample_sha2-256_b58_hash.doc
|
393
447
|
- spec/output/basic/sample_invalid_sign.doc
|
394
|
-
- spec/output/basic/sample_enc.doc
|
395
448
|
- spec/output/log/sample4_retrieve_log.doc
|
396
449
|
- spec/output/log/sample_op1_addhash.doc
|
397
450
|
- spec/output/log/sample0_dag_did.doc
|