Skip to content

Commit

Permalink
fix module name in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tomato42 authored and warner committed Jan 22, 2016
1 parent fbcc710 commit 4db8244
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ bytes of entropy, and then use one of the helper functions in ecdsa.util to
convert it into an integer in the correct range, and then finally pass it
into `SigningKey.from_secret_exponent()`, like this:

from pyecdsa import NIST384p, SigningKey
from pyecdsa.util import randrange_from_seed__trytryagain
from ecdsa import NIST384p, SigningKey
from ecdsa.util import randrange_from_seed__trytryagain

def make_key(seed):
secexp = randrange_from_seed__trytryagain(seed, NIST384p.order)
Expand Down Expand Up @@ -295,8 +295,8 @@ Create a NIST521p keypair

Create three independent signing keys from a master seed:

from pyecdsa import NIST192p, SigningKey
from pyecdsa.util import randrange_from_seed__trytryagain
from ecdsa import NIST192p, SigningKey
from ecdsa.util import randrange_from_seed__trytryagain

def make_key_from_seed(seed, curve=NIST192p):
secexp = randrange_from_seed__trytryagain(seed, curve.order)
Expand Down

0 comments on commit 4db8244

Please sign in to comment.