def __init__(self):
        field = Field(2**255 - 19)
        ed25519 = TwistedEdwardsCurve(-1, field.div(-121665, 121666), field)

        base_point = (15112221349535400772501151409588531511454012693041857206046113283949847762202L,
                      46316835694926478169428394003475163141307993866256225615783033603165251855960L)

        self.curve = ed25519
        self.bp = base_point
    def setUp(self):
        # Test with Ed25519
        field = Field(2**255 - 19)
        ed25519 = TwistedEdwardsCurve(-1, field.div(-121665, 121666), field)

        base_point = (15112221349535400772501151409588531511454012693041857206046113283949847762202L,
                      46316835694926478169428394003475163141307993866256225615783033603165251855960L)

        self.curve = ed25519
        self.bp = base_point
        self.bp_order = 2**252 + 27742317777372353535851937790883648493
Esempio n. 3
0
    def __init__(self):
        field = Field(2**255 - 19)
        ed25519 = TwistedEdwardsCurve(-1, field.div(-121665, 121666), field)

        base_point = (
            15112221349535400772501151409588531511454012693041857206046113283949847762202L,
            46316835694926478169428394003475163141307993866256225615783033603165251855960L
        )

        self.curve = ed25519
        self.bp = base_point
Esempio n. 4
0
    def setUp(self):
        # Test with Ed25519
        field = Field(2**255 - 19)
        ed25519 = TwistedEdwardsCurve(-1, field.div(-121665, 121666), field)

        base_point = (
            15112221349535400772501151409588531511454012693041857206046113283949847762202L,
            46316835694926478169428394003475163141307993866256225615783033603165251855960L
        )

        self.curve = ed25519
        self.bp = base_point
        self.bp_order = 2**252 + 27742317777372353535851937790883648493