Changes between Initial Version and Version 1 of Ticket #2
- Timestamp:
- 04/09/2022 08:51:21 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2 – Description
initial v1 1 1 Have been trying to use the library and created shares of a 32-bytes key as follows: 2 shares = generate_raw(encoded_public_key, 3, 5) 2 `shares = generate_raw(encoded_public_key, 3, 5)` 3 3 4 4 When reconstructing using - reconstruct_raw(shares) - getting the following error: 5 5 6 {{{ 6 7 key = reconstruct_raw(shares) 7 8 File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/shamira/core.py", line 49, in reconstruct_raw … … 10 11 if len({x for (x, _) in shares}) < len(shares): 11 12 ValueError: too many values to unpack (expected 2) 13 }}} 12 14 13 15 ------ 14 16 Also tried: 17 18 {{{ 15 19 shares = generate(encoded_public_key, 3, 5) 16 20 key = reconstruct(shares, encoding="b32", raw=False) 21 }}} 22 17 23 18 24 But the following error appears: 19 25 26 {{{ 20 27 key = reconstruct(shares, encoding="b32", raw=False) 21 28 File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/shamira/core.py", line 95, in reconstruct … … 26 33 (*_, i, share_str) = share.split(".") 27 34 AttributeError: 'list' object has no attribute 'split' 35 }}} 28 36 29 37 ------