confium 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +126 -0
  3. data/Cargo.lock +2534 -0
  4. data/Cargo.toml +9 -0
  5. data/README.adoc +114 -14
  6. data/Rakefile +8 -3
  7. data/confium.gemspec +42 -21
  8. data/ext/confium_native/Cargo.toml +62 -0
  9. data/ext/confium_native/build.rs +72 -0
  10. data/ext/confium_native/extconf.rb +10 -0
  11. data/ext/confium_native/src/attributes.rs +88 -0
  12. data/ext/confium_native/src/audit.rs +169 -0
  13. data/ext/confium_native/src/composite.rs +302 -0
  14. data/ext/confium_native/src/deployment.rs +176 -0
  15. data/ext/confium_native/src/ers.rs +93 -0
  16. data/ext/confium_native/src/lib.rs +56 -0
  17. data/ext/confium_native/src/openpgp.rs +55 -0
  18. data/ext/confium_native/src/path.rs +118 -0
  19. data/ext/confium_native/src/pki.rs +431 -0
  20. data/ext/confium_native/src/tc.rs +420 -0
  21. data/ext/confium_native/src/transparency.rs +341 -0
  22. data/ext/confium_native/src/util.rs +196 -0
  23. data/lib/confium/audit.rb +125 -0
  24. data/lib/confium/cfm.rb +2 -4
  25. data/lib/confium/crypto.rb +50 -0
  26. data/lib/confium/digest.rb +7 -7
  27. data/lib/confium/errors/coerce.rb +49 -0
  28. data/lib/confium/errors/crypto_error.rb +13 -0
  29. data/lib/confium/errors/index_error.rb +13 -0
  30. data/lib/confium/errors/not_found_error.rb +13 -0
  31. data/lib/confium/errors/parse_error.rb +13 -0
  32. data/lib/confium/errors/policy_violation_error.rb +13 -0
  33. data/lib/confium/errors/threshold_error.rb +14 -0
  34. data/lib/confium/errors/unresolved_signer_error.rb +12 -0
  35. data/lib/confium/errors/validation_error.rb +15 -0
  36. data/lib/confium/errors/verification_error.rb +13 -0
  37. data/lib/confium/errors.rb +26 -0
  38. data/lib/confium/ffi.rb +23 -0
  39. data/lib/confium/lib.rb +2 -39
  40. data/lib/confium/openpgp.rb +34 -0
  41. data/lib/confium/pki/certificate_builder.rb +60 -0
  42. data/lib/confium/pki/cms/signed_data_builder.rb +92 -0
  43. data/lib/confium/pki/cms.rb +15 -0
  44. data/lib/confium/pki/cnml.rb +80 -0
  45. data/lib/confium/pki.rb +13 -0
  46. data/lib/confium/policy.rb +138 -0
  47. data/lib/confium/secure_bytes.rb +124 -0
  48. data/lib/confium/tc/coordinator.rb +67 -0
  49. data/lib/confium/tc/session.rb +49 -0
  50. data/lib/confium/tc/session_stub.rb +43 -0
  51. data/lib/confium/tc/share_file.rb +87 -0
  52. data/lib/confium/tc.rb +17 -0
  53. data/lib/confium/transparency/ots.rb +63 -0
  54. data/lib/confium/version.rb +1 -1
  55. data/lib/confium.rb +50 -20
  56. metadata +142 -25
  57. data/CODE_OF_CONDUCT.md +0 -84
  58. data/Gemfile +0 -10
  59. data/sig/confium.rbs +0 -4
metadata CHANGED
@@ -1,69 +1,187 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: confium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Open
8
- autorequire:
9
- bindir: exe
8
+ bindir: bin
10
9
  cert_chain: []
11
- date: 2022-11-02 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
- name: ffi
13
+ name: rb_sys
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - ">="
16
+ - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '0'
18
+ version: 0.9.39
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
- - - ">="
23
+ - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: '0'
25
+ version: 0.9.39
26
+ - !ruby/object:Gem::Dependency
27
+ name: rake
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '13.0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '13.0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: rake-compiler
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: 1.2.0
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: 1.2.0
54
+ - !ruby/object:Gem::Dependency
55
+ name: rake-compiler-dock
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '1.3'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '1.3'
27
68
  - !ruby/object:Gem::Dependency
28
69
  name: rspec
29
70
  requirement: !ruby/object:Gem::Requirement
30
71
  requirements:
31
- - - ">="
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '3.0'
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '3.0'
82
+ - !ruby/object:Gem::Dependency
83
+ name: rubocop
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '1.0'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '1.0'
96
+ - !ruby/object:Gem::Dependency
97
+ name: steep
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
32
101
  - !ruby/object:Gem::Version
33
- version: '0'
102
+ version: '1.5'
34
103
  type: :development
35
104
  prerelease: false
36
105
  version_requirements: !ruby/object:Gem::Requirement
37
106
  requirements:
38
- - - ">="
107
+ - - "~>"
39
108
  - !ruby/object:Gem::Version
40
- version: '0'
41
- description:
109
+ version: '1.5'
110
+ description: 'Confium provides threshold cryptography for Ruby: FROST / CMP20 / GG18
111
+ signing sessions, X.509 certificate issuance (CNML-ready), composite PQ-migration
112
+ signatures, and transparency-log anchoring. Powered by a Rust native extension (magnus
113
+ + rb_sys) — no separate C ABI to install.'
42
114
  email:
43
115
  - open.source@ribose.com
44
116
  executables: []
45
- extensions: []
117
+ extensions:
118
+ - ext/confium_native/extconf.rb
46
119
  extra_rdoc_files: []
47
120
  files:
48
- - CODE_OF_CONDUCT.md
49
- - Gemfile
121
+ - CHANGELOG.md
122
+ - Cargo.lock
123
+ - Cargo.toml
50
124
  - LICENSE.txt
51
125
  - README.adoc
52
126
  - Rakefile
53
127
  - confium.gemspec
128
+ - ext/confium_native/Cargo.toml
129
+ - ext/confium_native/build.rs
130
+ - ext/confium_native/extconf.rb
131
+ - ext/confium_native/src/attributes.rs
132
+ - ext/confium_native/src/audit.rs
133
+ - ext/confium_native/src/composite.rs
134
+ - ext/confium_native/src/deployment.rs
135
+ - ext/confium_native/src/ers.rs
136
+ - ext/confium_native/src/lib.rs
137
+ - ext/confium_native/src/openpgp.rs
138
+ - ext/confium_native/src/path.rs
139
+ - ext/confium_native/src/pki.rs
140
+ - ext/confium_native/src/tc.rs
141
+ - ext/confium_native/src/transparency.rs
142
+ - ext/confium_native/src/util.rs
54
143
  - lib/confium.rb
144
+ - lib/confium/audit.rb
55
145
  - lib/confium/cfm.rb
146
+ - lib/confium/crypto.rb
56
147
  - lib/confium/digest.rb
148
+ - lib/confium/errors.rb
149
+ - lib/confium/errors/coerce.rb
150
+ - lib/confium/errors/crypto_error.rb
151
+ - lib/confium/errors/index_error.rb
152
+ - lib/confium/errors/not_found_error.rb
153
+ - lib/confium/errors/parse_error.rb
154
+ - lib/confium/errors/policy_violation_error.rb
155
+ - lib/confium/errors/threshold_error.rb
156
+ - lib/confium/errors/unresolved_signer_error.rb
157
+ - lib/confium/errors/validation_error.rb
158
+ - lib/confium/errors/verification_error.rb
159
+ - lib/confium/ffi.rb
57
160
  - lib/confium/lib.rb
161
+ - lib/confium/openpgp.rb
162
+ - lib/confium/pki.rb
163
+ - lib/confium/pki/certificate_builder.rb
164
+ - lib/confium/pki/cms.rb
165
+ - lib/confium/pki/cms/signed_data_builder.rb
166
+ - lib/confium/pki/cnml.rb
167
+ - lib/confium/policy.rb
168
+ - lib/confium/secure_bytes.rb
169
+ - lib/confium/tc.rb
170
+ - lib/confium/tc/coordinator.rb
171
+ - lib/confium/tc/session.rb
172
+ - lib/confium/tc/session_stub.rb
173
+ - lib/confium/tc/share_file.rb
174
+ - lib/confium/transparency/ots.rb
58
175
  - lib/confium/version.rb
59
- - sig/confium.rbs
60
176
  homepage: https://www.confium.org
61
- licenses: []
177
+ licenses:
178
+ - BSD-2-Clause
62
179
  metadata:
180
+ bug_tracker_uri: https://github.com/confium/confium-ruby/issues
181
+ changelog_uri: https://github.com/confium/confium-ruby/blob/main/CHANGELOG.md
63
182
  homepage_uri: https://www.confium.org
64
183
  source_code_uri: https://github.com/confium/confium-ruby
65
- changelog_uri: https://github.com/confium/confium-ruby
66
- post_install_message:
184
+ rubygems_mfa_required: 'true'
67
185
  rdoc_options: []
68
186
  require_paths:
69
187
  - lib
@@ -71,15 +189,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
189
  requirements:
72
190
  - - ">="
73
191
  - !ruby/object:Gem::Version
74
- version: 2.7.0
192
+ version: 3.1.0
75
193
  required_rubygems_version: !ruby/object:Gem::Requirement
76
194
  requirements:
77
195
  - - ">="
78
196
  - !ruby/object:Gem::Version
79
197
  version: '0'
80
198
  requirements: []
81
- rubygems_version: 3.3.7
82
- signing_key:
199
+ rubygems_version: 4.0.16
83
200
  specification_version: 4
84
- summary: FFI bindings for Confium.
201
+ summary: Ruby bindings for the Confium multi-stakeholder threshold cryptography framework.
85
202
  test_files: []
data/CODE_OF_CONDUCT.md DELETED
@@ -1,84 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
-
9
- ## Our Standards
10
-
11
- Examples of behavior that contributes to a positive environment for our community include:
12
-
13
- * Demonstrating empathy and kindness toward other people
14
- * Being respectful of differing opinions, viewpoints, and experiences
15
- * Giving and gracefully accepting constructive feedback
16
- * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
- * Focusing on what is best not just for us as individuals, but for the overall community
18
-
19
- Examples of unacceptable behavior include:
20
-
21
- * The use of sexualized language or imagery, and sexual attention or
22
- advances of any kind
23
- * Trolling, insulting or derogatory comments, and personal or political attacks
24
- * Public or private harassment
25
- * Publishing others' private information, such as a physical or email
26
- address, without their explicit permission
27
- * Other conduct which could reasonably be considered inappropriate in a
28
- professional setting
29
-
30
- ## Enforcement Responsibilities
31
-
32
- Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
-
34
- Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
-
36
- ## Scope
37
-
38
- This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
-
40
- ## Enforcement
41
-
42
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at ronald.tse@ribose.com. All complaints will be reviewed and investigated promptly and fairly.
43
-
44
- All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
-
46
- ## Enforcement Guidelines
47
-
48
- Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
-
50
- ### 1. Correction
51
-
52
- **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
-
54
- **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
-
56
- ### 2. Warning
57
-
58
- **Community Impact**: A violation through a single incident or series of actions.
59
-
60
- **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
-
62
- ### 3. Temporary Ban
63
-
64
- **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
-
66
- **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
-
68
- ### 4. Permanent Ban
69
-
70
- **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
-
72
- **Consequence**: A permanent ban from any sort of public interaction within the community.
73
-
74
- ## Attribution
75
-
76
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
- available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
-
79
- Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
-
81
- [homepage]: https://www.contributor-covenant.org
82
-
83
- For answers to common questions about this code of conduct, see the FAQ at
84
- https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile DELETED
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Specify your gem's dependencies in confium.gemspec
6
- gemspec
7
-
8
- gem "rake", "~> 13.0"
9
-
10
- gem "rubocop", "~> 1.21"
data/sig/confium.rbs DELETED
@@ -1,4 +0,0 @@
1
- module Confium
2
- VERSION: String
3
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
- end