mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
13 lines
266 B
Python
13 lines
266 B
Python
from modp import *
|
|
from test import test
|
|
|
|
mod7 = IntegersModP(7)
|
|
|
|
test(mod7(5), mod7(5)) # Sanity check
|
|
test(mod7(5), 1 / mod7(3))
|
|
test(mod7(1), mod7(3) * mod7(5))
|
|
test(mod7(3), mod7(3) * 1)
|
|
test(mod7(2), mod7(5) + mod7(4))
|
|
|
|
test(True, mod7(0) == mod7(3) + mod7(4))
|