Skip to content

secYOUre/pyelligator

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

pyelligator - Python binding for libelligator

Alfonso De Gregorio (adg at secYOUre dot com)

What?

pyelligator is a Python binding for libelligator. Based on the code authored by agl in the ed25519/extra25519, libelligator is a C++ implementation of "Elligator: Elliptic-curve points indistinguishable from uniform random strings" for Curve25519.

Usage

import elligator

from os import urandom

# Generate keys
while True:
    private = urandom(32)
    (valid, public, representative) = elligator.scalarbasemult(private)
    if valid:
        break


# Convert a uniform representative value for Curve25519 public key, 
# as produced by scalarbasemult, to a Curve25519 public key
public = elligator.representativetopublic(representative)

Installation

make
make install
make test

About

Python binding for libelligator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published