pyelliptic/arithmetic.py does not work expected #55

Closed
opened 2013-02-25 18:16:07 +01:00 by fcicq · 2 comments
fcicq commented 2013-02-25 18:16:07 +01:00 (Migrated from github.com)

fixes:

def hash_160(string):
   intermed = hashlib.sha256(string).digest()
   ripemd160 = hashlib.new('ripemd160')
   ripemd160.update(intermed)
   return ripemd160.digest()

and

def hex_to_point(h): return (decode(h[2:66],16),decode(h[66:],16))
fixes: ``` def hash_160(string): intermed = hashlib.sha256(string).digest() ripemd160 = hashlib.new('ripemd160') ripemd160.update(intermed) return ripemd160.digest() ``` and ``` def hex_to_point(h): return (decode(h[2:66],16),decode(h[66:],16)) ```
Atheros1 commented 2013-02-26 22:02:21 +01:00 (Migrated from github.com)

You are quite right. Thank you for submitting the change.

You are quite right. Thank you for submitting the change.
Atheros1 commented 2013-02-27 18:40:22 +01:00 (Migrated from github.com)

This is fixed in v0.2.6 and onward.

This is fixed in v0.2.6 and onward.
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Bitmessage/PyBitmessage-2024-08-21#55
No description provided.