async-matrix 2.0.1-aarch64-linux → 2.1.0-aarch64-linux
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a9c3c54abfc055998f71b4b0167a49fe3d2011b4a4f827ed523d8b64c0788b7
|
|
4
|
+
data.tar.gz: eab1e31140487a2df265f6806c7f18656cf37cb74780d4084521c6d72a7b7bea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36658ee6a1c388baed909205f9d0f42f823b5f8de14b8aa7ee920d65e781d534fb0b0a51f5a43df727b792a2328c8fbae0722aba00dec5dc83e65402dcdcfe21
|
|
7
|
+
data.tar.gz: abd92f0846e306dbc955bd3ce0b65bccb8617c3acefa908952615abb23731d7f3d4b4cfc5f73590c6dafb9241e5a2934d01f267fa82d079b2eb6de5af126fbce
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/async/matrix/e2ee.rb
CHANGED
|
@@ -56,6 +56,43 @@ __END__
|
|
|
56
56
|
inbound.session_id.should == group.session_id
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
+
it "imports an exported session key" do
|
|
60
|
+
# The path room keys take out of server-side key backup and out of
|
|
61
|
+
# m.forwarded_room_key. Without .import these are unusable, and a client
|
|
62
|
+
# can never read history it did not get a live m.room_key for.
|
|
63
|
+
group = Async::Matrix::E2EE::GroupSession.new
|
|
64
|
+
inbound = Async::Matrix::E2EE::InboundGroupSession.new(group.session_key)
|
|
65
|
+
message = group.encrypt("restored from backup")
|
|
66
|
+
|
|
67
|
+
exported = inbound.export_at_first_known_index
|
|
68
|
+
restored = Async::Matrix::E2EE::InboundGroupSession.import(exported)
|
|
69
|
+
|
|
70
|
+
restored.session_id.should == group.session_id
|
|
71
|
+
restored.decrypt(message).first.should == "restored from backup"
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
it "rejects an exported key passed to .new, which requires a signature" do
|
|
75
|
+
# .new takes a version-2 SessionKey and verifies its signature; an exported
|
|
76
|
+
# key is version 1 and unsigned, so it must go through .import instead.
|
|
77
|
+
group = Async::Matrix::E2EE::GroupSession.new
|
|
78
|
+
inbound = Async::Matrix::E2EE::InboundGroupSession.new(group.session_key)
|
|
79
|
+
exported = inbound.export_at_first_known_index
|
|
80
|
+
|
|
81
|
+
lambda {
|
|
82
|
+
Async::Matrix::E2EE::InboundGroupSession.new(exported)
|
|
83
|
+
}.should.raise(RuntimeError)
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
it "exports at a given message index" do
|
|
87
|
+
group = Async::Matrix::E2EE::GroupSession.new
|
|
88
|
+
inbound = Async::Matrix::E2EE::InboundGroupSession.new(group.session_key)
|
|
89
|
+
3.times { |i| group.encrypt("msg #{i}") }
|
|
90
|
+
|
|
91
|
+
Async::Matrix::E2EE::InboundGroupSession
|
|
92
|
+
.import(inbound.export_at(0))
|
|
93
|
+
.first_known_index.should == 0
|
|
94
|
+
end
|
|
95
|
+
|
|
59
96
|
it "round-trips an olm 1:1 message" do
|
|
60
97
|
alice = Async::Matrix::E2EE::Account.new
|
|
61
98
|
bob = Async::Matrix::E2EE::Account.new
|
data/lib/async/matrix/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: async-matrix
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan Kidd
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-08-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: async
|
|
@@ -178,6 +178,20 @@ dependencies:
|
|
|
178
178
|
- - "~>"
|
|
179
179
|
- !ruby/object:Gem::Version
|
|
180
180
|
version: '1.2'
|
|
181
|
+
- !ruby/object:Gem::Dependency
|
|
182
|
+
name: lefthook
|
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
|
184
|
+
requirements:
|
|
185
|
+
- - "~>"
|
|
186
|
+
- !ruby/object:Gem::Version
|
|
187
|
+
version: '2.1'
|
|
188
|
+
type: :development
|
|
189
|
+
prerelease: false
|
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
191
|
+
requirements:
|
|
192
|
+
- - "~>"
|
|
193
|
+
- !ruby/object:Gem::Version
|
|
194
|
+
version: '2.1'
|
|
181
195
|
description: Async-native Matrix protocol primitives built on the Socketry async ecosystem.
|
|
182
196
|
Provides well-known discovery, event notification, and application service models.
|
|
183
197
|
email:
|