Bitcoin Forum
May 17, 2024, 03:10:04 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Just multiply the point by 2^-1 (mod n)  (Read 158 times)
posion (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
March 18, 2020, 08:22:05 AM
 #1

x =  f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9
y =  388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672
 how to get x coordinate x how to code in python
 

x = c62c910e502cb615a27c58512b6cc2c94f5742f76cb3d12ec993400a3695d413
y = 17f3dadd767275ddd3b23f46723631778bf01dadaebb9a953cf068712457c010
BrewMaster
Legendary
*
Offline Offline

Activity: 2114
Merit: 1292


There is trouble abrewing


View Profile
March 18, 2020, 05:09:23 PM
 #2

check out python-ecdsa code on GitHub: https://github.com/warner/python-ecdsa i believe this is also what Electrum used for a long time.
it has all the functions you want including an inverse_mod(a, m) in its numbertheory.py file.

There is a FOMO brewing...
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!