yoti 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +17 -0
- data/Gemfile +1 -0
- data/README.md +4 -1
- data/lib/generators/yoti/install/install_generator.rb +1 -1
- data/lib/yoti/activity_details.rb +46 -22
- data/lib/yoti/data_type/anchor.rb +5 -5
- data/lib/yoti/data_type/attribute.rb +16 -15
- data/lib/yoti/data_type/image.rb +19 -0
- data/lib/yoti/data_type/image_jpeg.rb +7 -0
- data/lib/yoti/data_type/image_png.rb +7 -0
- data/lib/yoti/data_type/multi_value.rb +48 -0
- data/lib/yoti/data_type/profile.rb +34 -30
- data/lib/yoti/data_type/signed_time_stamp.rb +7 -7
- data/lib/yoti/http/request.rb +2 -0
- data/lib/yoti/protobuf/attrpubapi/Attribute_pb.rb +40 -0
- data/lib/yoti/protobuf/attrpubapi/ContentType_pb.rb +25 -0
- data/lib/yoti/protobuf/attrpubapi/List_pb.rb +28 -0
- data/lib/yoti/protobuf/{v3/attrpubapi/signing_pb.rb → attrpubapi/Signing_pb.rb} +6 -6
- data/lib/yoti/protobuf/{v3/compubapi/encrypted_data_pb.rb → compubapi/EncryptedData_pb.rb} +4 -4
- data/lib/yoti/protobuf/{v3/compubapi/signed_time_stamp_pb.rb → compubapi/SignedTimestamp_pb.rb} +4 -4
- data/lib/yoti/protobuf/main.rb +41 -16
- data/lib/yoti/ssl.rb +6 -6
- data/lib/yoti/util/age_processor.rb +3 -3
- data/lib/yoti/util/anchor_processor.rb +67 -66
- data/lib/yoti/util/log.rb +23 -0
- data/lib/yoti/version.rb +1 -1
- data/lib/yoti.rb +5 -0
- data/rubocop.yml +17 -1
- data/yoti.gemspec +3 -3
- metadata +23 -22
- data/lib/yoti/protobuf/definitions/attrpubapi/attribute.proto +0 -52
- data/lib/yoti/protobuf/definitions/attrpubapi/list.proto +0 -27
- data/lib/yoti/protobuf/definitions/attrpubapi/signing.proto +0 -23
- data/lib/yoti/protobuf/definitions/compubapi/encrypted_data.proto +0 -15
- data/lib/yoti/protobuf/definitions/compubapi/signed_time_stamp.proto +0 -43
- data/lib/yoti/protobuf/v3/attrpubapi/attribute_pb.rb +0 -39
- data/lib/yoti/protobuf/v3/attrpubapi/list_pb.rb +0 -28
@@ -1,43 +0,0 @@
|
|
1
|
-
syntax = "proto3";
|
2
|
-
|
3
|
-
package Yoti.Protobuf.compubapi_v3;
|
4
|
-
|
5
|
-
option java_package = "com.yoti.compubapi_v3";
|
6
|
-
option java_outer_classname = "SignedTimestampProto";
|
7
|
-
|
8
|
-
// SignedTimestamp is a timestamp associated with a message that has a
|
9
|
-
// cryptographic signature proving that it was issued by the correct authority.
|
10
|
-
message SignedTimestamp {
|
11
|
-
// Version indicates how the digests within this object are calculated.
|
12
|
-
int32 version = 1;
|
13
|
-
|
14
|
-
// Timestamp is the time this SignedTimestamp was issued. It is in UTC,
|
15
|
-
// as µseconds elapsed since the epoch (µs from 1970-01-01T00:00:00Z).
|
16
|
-
uint64 timestamp = 2;
|
17
|
-
|
18
|
-
// MessageDigest is the digest of the message this timestamp is
|
19
|
-
// associated with. The first step in verifying the timestamp is
|
20
|
-
// ensuring the MessageDigest matches the original message data.
|
21
|
-
//
|
22
|
-
// For version 1 objects, the message digest algorithm is SHA-512/224.
|
23
|
-
bytes message_digest = 3;
|
24
|
-
|
25
|
-
// ChainDigest is the digest of the previous SignedTimestamp message
|
26
|
-
// in the chain. The second step in verifying the timestamp is walking
|
27
|
-
// back over the chain and checking each SignedTimestamp's ChainDigest
|
28
|
-
// field. The SignedTimestamp at the beginning of the chain has this
|
29
|
-
// field set to a specific, publish value.
|
30
|
-
//
|
31
|
-
// For version 1 objects, the chain digest algorithm is HMAC-SHA-512/224,
|
32
|
-
// with the secret being equal to the MessageDigest field.
|
33
|
-
bytes chain_digest = 4;
|
34
|
-
|
35
|
-
// ChainDigestSkip1 is only populated once every 500 nodes. It is the
|
36
|
-
// ChainDigest value of the timestamp 500 nodes previously.
|
37
|
-
bytes chain_digest_skip1 = 5;
|
38
|
-
|
39
|
-
// ChainDigestSkip2 is only populated once every 250000 nodes (or once
|
40
|
-
// every 500 nodes that have ChainDigestSkip1 populated). It is the
|
41
|
-
// ChainDigest value of the timestamp 250000 nodes previously.
|
42
|
-
bytes chain_digest_skip2 = 6;
|
43
|
-
}
|
@@ -1,39 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: attribute.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
-
add_message "Yoti.Protobuf.attrpubapi_v3.Attribute" do
|
8
|
-
optional :name, :string, 1
|
9
|
-
optional :value, :bytes, 2
|
10
|
-
optional :content_type, :enum, 3, "Yoti.Protobuf.attrpubapi_v3.ContentType"
|
11
|
-
repeated :anchors, :message, 4, "Yoti.Protobuf.attrpubapi_v3.Anchor"
|
12
|
-
end
|
13
|
-
add_message "Yoti.Protobuf.attrpubapi_v3.Anchor" do
|
14
|
-
optional :artifact_link, :bytes, 1
|
15
|
-
repeated :origin_server_certs, :bytes, 2
|
16
|
-
optional :artifact_signature, :bytes, 3
|
17
|
-
optional :sub_type, :string, 4
|
18
|
-
optional :signature, :bytes, 5
|
19
|
-
optional :signed_time_stamp, :bytes, 6
|
20
|
-
end
|
21
|
-
add_enum "Yoti.Protobuf.attrpubapi_v3.ContentType" do
|
22
|
-
value :UNDEFINED, 0
|
23
|
-
value :STRING, 1
|
24
|
-
value :JPEG, 2
|
25
|
-
value :DATE, 3
|
26
|
-
value :PNG, 4
|
27
|
-
value :JSON, 5
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
module Yoti
|
32
|
-
module Protobuf
|
33
|
-
module AttrpubapiV3
|
34
|
-
Attribute = Google::Protobuf::DescriptorPool.generated_pool.lookup("Yoti.Protobuf.attrpubapi_v3.Attribute").msgclass
|
35
|
-
Anchor = Google::Protobuf::DescriptorPool.generated_pool.lookup("Yoti.Protobuf.attrpubapi_v3.Anchor").msgclass
|
36
|
-
ContentType = Google::Protobuf::DescriptorPool.generated_pool.lookup("Yoti.Protobuf.attrpubapi_v3.ContentType").enummodule
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: list.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
require_relative 'attribute_pb'
|
7
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
-
add_message "Yoti.Protobuf.attrpubapi_v3.AttributeAndId" do
|
9
|
-
optional :attribute, :message, 1, "Yoti.Protobuf.attrpubapi_v3.Attribute"
|
10
|
-
optional :attribute_id, :bytes, 2
|
11
|
-
end
|
12
|
-
add_message "Yoti.Protobuf.attrpubapi_v3.AttributeAndIdList" do
|
13
|
-
repeated :attribute_and_id_list, :message, 1, "Yoti.Protobuf.attrpubapi_v3.AttributeAndId"
|
14
|
-
end
|
15
|
-
add_message "Yoti.Protobuf.attrpubapi_v3.AttributeList" do
|
16
|
-
repeated :attributes, :message, 1, "Yoti.Protobuf.attrpubapi_v3.Attribute"
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
module Yoti
|
21
|
-
module Protobuf
|
22
|
-
module AttrpubapiV3
|
23
|
-
AttributeAndId = Google::Protobuf::DescriptorPool.generated_pool.lookup("Yoti.Protobuf.attrpubapi_v3.AttributeAndId").msgclass
|
24
|
-
AttributeAndIdList = Google::Protobuf::DescriptorPool.generated_pool.lookup("Yoti.Protobuf.attrpubapi_v3.AttributeAndIdList").msgclass
|
25
|
-
AttributeList = Google::Protobuf::DescriptorPool.generated_pool.lookup("Yoti.Protobuf.attrpubapi_v3.AttributeList").msgclass
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|