Hello community,
here is the log from the commit of package python-autobahn for openSUSE:Factory
checked in at 2020-07-21 15:48:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-autobahn (Old)
and /work/SRC/openSUSE:Factory/.python-autobahn.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-autobahn"
Tue Jul 21 15:48:49 2020 rev:11 rq:821997 version:20.7.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-autobahn/python-autobahn.changes
2020-07-08 19:13:44.043263055 +0200
+++
/work/SRC/openSUSE:Factory/.python-autobahn.new.3592/python-autobahn.changes
2020-07-21 15:50:28.448301880 +0200
@@ -1,0 +2,6 @@
+Tue Jul 21 05:51:09 UTC 2020 - Steve Kowalik <[email protected]>
+
+- Update to 20.7.1:
+ * new: add market login eip. expose helpers
+
+-------------------------------------------------------------------
Old:
----
autobahn-20.6.2.tar.gz
New:
----
autobahn-20.7.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-autobahn.spec ++++++
--- /var/tmp/diff_new_pack.tVuLCD/_old 2020-07-21 15:50:29.624303334 +0200
+++ /var/tmp/diff_new_pack.tVuLCD/_new 2020-07-21 15:50:29.628303339 +0200
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**}
%{!?skip_python3:python3-%{**}}}
%define skip_python2 1
Name: python-autobahn
-Version: 20.6.2
+Version: 20.7.1
Release: 0
Summary: WebSocket and WAMP in Python for Twisted and asyncio
License: MIT
++++++ autobahn-20.6.2.tar.gz -> autobahn-20.7.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/autobahn-20.6.2/PKG-INFO new/autobahn-20.7.1/PKG-INFO
--- old/autobahn-20.6.2/PKG-INFO 2020-06-29 09:33:05.876791000 +0200
+++ new/autobahn-20.7.1/PKG-INFO 2020-07-18 01:09:48.359207000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: autobahn
-Version: 20.6.2
+Version: 20.7.1
Summary: WebSocket client & server library, WAMP real-time framework
Home-page: http://crossbar.io/autobahn
Author: Crossbar.io Technologies GmbH
@@ -312,14 +312,14 @@
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Object Brokering
Requires-Python: >=3.5
+Provides-Extra: encryption
+Provides-Extra: nvx
+Provides-Extra: dev
+Provides-Extra: asyncio
+Provides-Extra: xbr
+Provides-Extra: scram
Provides-Extra: compress
Provides-Extra: serialization
Provides-Extra: all
-Provides-Extra: asyncio
-Provides-Extra: dev
Provides-Extra: twisted
-Provides-Extra: nvx
-Provides-Extra: scram
-Provides-Extra: xbr
-Provides-Extra: encryption
Provides-Extra: accelerate
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/autobahn-20.6.2/autobahn/_version.py
new/autobahn-20.7.1/autobahn/_version.py
--- old/autobahn-20.6.2/autobahn/_version.py 2020-06-29 09:31:57.000000000
+0200
+++ new/autobahn-20.7.1/autobahn/_version.py 2020-07-18 01:09:06.000000000
+0200
@@ -24,4 +24,4 @@
#
###############################################################################
-__version__ = '20.6.2'
+__version__ = '20.7.1'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/autobahn-20.6.2/autobahn/xbr/__init__.py
new/autobahn-20.7.1/autobahn/xbr/__init__.py
--- old/autobahn-20.6.2/autobahn/xbr/__init__.py 2020-06-23
22:25:34.000000000 +0200
+++ new/autobahn-20.7.1/autobahn/xbr/__init__.py 2020-07-13
22:48:27.000000000 +0200
@@ -48,6 +48,10 @@
from autobahn.xbr._eip712_consent import sign_eip712_consent,
recover_eip712_consent # noqa
from autobahn.xbr._eip712_channel_open import sign_eip712_channel_open,
recover_eip712_channel_open # noqa
from autobahn.xbr._eip712_channel_close import sign_eip712_channel_close,
recover_eip712_channel_close # noqa
+ from autobahn.xbr._eip712_market_member_login import
sign_eip712_market_member_login, \
+ recover_eip712_market_member_login # noqa
+ from autobahn.xbr._eip712_base import is_address, is_chain_id,
is_block_number, is_signature, \
+ is_cs_pubkey, is_bytes16, is_eth_privkey # noqa
from autobahn.xbr._blockchain import SimpleBlockchain # noqa
from autobahn.xbr._seller import SimpleSeller, KeySeries # noqa
@@ -296,6 +300,16 @@
'recover_eip712_channel_open',
'sign_eip712_channel_close',
'recover_eip712_channel_close',
+ 'sign_eip712_market_member_login',
+ 'recover_eip712_market_member_login',
+
+ 'is_bytes16',
+ 'is_cs_pubkey',
+ 'is_signature',
+ 'is_chain_id',
+ 'is_eth_privkey',
+ 'is_block_number',
+ 'is_address',
'load_or_create_profile',
'UserConfig',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/autobahn-20.6.2/autobahn/xbr/_eip712_market_member_login.py
new/autobahn-20.7.1/autobahn/xbr/_eip712_market_member_login.py
--- old/autobahn-20.6.2/autobahn/xbr/_eip712_market_member_login.py
1970-01-01 01:00:00.000000000 +0100
+++ new/autobahn-20.7.1/autobahn/xbr/_eip712_market_member_login.py
2020-07-13 22:48:27.000000000 +0200
@@ -0,0 +1,85 @@
+###############################################################################
+#
+# The MIT License (MIT)
+#
+# Copyright (c) Crossbar.io Technologies GmbH
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+#
+###############################################################################
+
+from ._eip712_base import sign, recover, is_address, is_eth_privkey, \
+ is_signature, is_cs_pubkey
+
+
+def _create_eip712_market_member_login(member: bytes, client_pubkey: bytes) ->
dict:
+ assert is_address(member)
+ assert is_cs_pubkey(client_pubkey)
+
+ data = {
+ 'types': {
+ 'EIP712Domain': [
+ {
+ 'name': 'name',
+ 'type': 'string'
+ },
+ {
+ 'name': 'version',
+ 'type': 'string'
+ },
+ ],
+ 'EIP712MarketMemberLogin': [
+ {
+ 'name': 'member',
+ 'type': 'address'
+ },
+ {
+ 'name': 'client_pubkey',
+ 'type': 'bytes32',
+ },
+ ]
+ },
+ 'primaryType': 'EIP712MarketMemberLogin',
+ 'domain': {
+ 'name': 'XBR',
+ 'version': '1',
+ },
+ 'message': {
+ 'member': member,
+ 'client_pubkey': client_pubkey,
+ }
+ }
+
+ return data
+
+
+def sign_eip712_market_member_login(eth_privkey: bytes, member: bytes,
client_pubkey: bytes) -> bytes:
+ assert is_eth_privkey(eth_privkey)
+
+ data = _create_eip712_market_member_login(member, client_pubkey)
+
+ return sign(eth_privkey, data)
+
+
+def recover_eip712_market_member_login(member: bytes, client_pubkey: bytes,
signature: bytes) -> bytes:
+ assert is_signature(signature)
+
+ data = _create_eip712_market_member_login(member, client_pubkey)
+
+ return recover(data, signature)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/autobahn-20.6.2/autobahn.egg-info/PKG-INFO
new/autobahn-20.7.1/autobahn.egg-info/PKG-INFO
--- old/autobahn-20.6.2/autobahn.egg-info/PKG-INFO 2020-06-29
09:33:05.000000000 +0200
+++ new/autobahn-20.7.1/autobahn.egg-info/PKG-INFO 2020-07-18
01:09:48.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: autobahn
-Version: 20.6.2
+Version: 20.7.1
Summary: WebSocket client & server library, WAMP real-time framework
Home-page: http://crossbar.io/autobahn
Author: Crossbar.io Technologies GmbH
@@ -312,14 +312,14 @@
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Object Brokering
Requires-Python: >=3.5
+Provides-Extra: encryption
+Provides-Extra: nvx
+Provides-Extra: dev
+Provides-Extra: asyncio
+Provides-Extra: xbr
+Provides-Extra: scram
Provides-Extra: compress
Provides-Extra: serialization
Provides-Extra: all
-Provides-Extra: asyncio
-Provides-Extra: dev
Provides-Extra: twisted
-Provides-Extra: nvx
-Provides-Extra: scram
-Provides-Extra: xbr
-Provides-Extra: encryption
Provides-Extra: accelerate
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/autobahn-20.6.2/autobahn.egg-info/SOURCES.txt
new/autobahn-20.7.1/autobahn.egg-info/SOURCES.txt
--- old/autobahn-20.6.2/autobahn.egg-info/SOURCES.txt 2020-06-29
09:33:05.000000000 +0200
+++ new/autobahn-20.7.1/autobahn.egg-info/SOURCES.txt 2020-07-18
01:09:48.000000000 +0200
@@ -181,6 +181,7 @@
autobahn/xbr/_eip712_market_create.py
autobahn/xbr/_eip712_market_join.py
autobahn/xbr/_eip712_market_leave.py
+autobahn/xbr/_eip712_market_member_login.py
autobahn/xbr/_eip712_member_login.py
autobahn/xbr/_eip712_member_register.py
autobahn/xbr/_eip712_member_unregister.py