/
arkham.py
executable file
·22 lines (18 loc) · 1.86 KB
/
arkham.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python2
import random
import secretsharing
shares = [
(1, 151648841525131405667174586591517337090635368623348815925544815009261895198612, 107794757594075833151238056001942203657877423915508846053340735546290486113897),
(2, 958204585244686918376203180719394266331775242362334022404102915553381908226511, 107794757594075833151238056001942203657877423915508846053340735546290486113897),
(3, 2981312351830224720808537086863046098839794493644779563793561253534406006848448, 107794757594075833151238056001942203657877423915508846053340735546290486113897),
(4, 6782617261953302803764205708453060848119139347916508481271617769412703832857109, 107794757594075833151238056001942203657877423915508846053340735546290486113897),
(5, 12923764436285479158043238448920026527674256030623343816015970403648645028045180, 107794757594075833151238056001942203657877423915508846053340735546290486113897),
(6, 21966398995498311774445664711694531151009590767211108609204317096702599234205347, 107794757594075833151238056001942203657877423915508846053340735546290486113897),
(7, 34472166060263358643771513900207162731629589783125625902014355789034936093130296, 107794757594075833151238056001942203657877423915508846053340735546290486113897),
(8, 51002710751252177756820815417888509283038699303812718735623784421106025246612713, 107794757594075833151238056001942203657877423915508846053340735546290486113897),
(9, 72119678189136327104393598668169158818741365554718210151210300933376236336445284, 107794757594075833151238056001942203657877423915508846053340735546290486113897),
(10, 98384713494587364677289893054479699352242034761287923189951603266305939004420695, 107794757594075833151238056001942203657877423915508846053340735546290486113897),
]
shares = [tuple(share[:2]) for share in shares]
secret_int = secretsharing.points_to_secret_int(shares)
print secret_int