Bitcoin Forum
June 17, 2024, 08:23:43 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can someone help with python or SAGE code ?  (Read 215 times)
COBRAS (OP)
Member
**
Offline Offline

Activity: 883
Merit: 22


View Profile
August 31, 2021, 08:41:05 AM
 #1

Help me please with bitcoin address transaction count in SAGE ?

I have a coordinates (x,y) for example X: (xe34a65a26877b80299ea0efe5d801cf30e09c2894b1100f5f2509e926739eef5 Y: 0x15c393ff61a2036b4d54ef9286c99f00ca580a6b6aed5c5778dca83a7d9fa280) of public key bitcoin and need check does public key has a transaction ?

Help me please with code ?

I very need this asap.

Thank you very mach

[
BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1554
Merit: 7555


Protocols over bureaucrats


View Profile
August 31, 2021, 10:32:53 AM
 #2

What is SAGE? I assume you mean the transactions related with its legacy addresses. Well, the public key with these coordinates is:
Code:
04e34a65a26877b80299ea0efe5d801cf30e09c2894b1100f5f2509e926739eef515c393ff61a2036b4d54ef9286c99f00ca580a6b6aed5c5778dca83a7d9fa280

These are its addresses:
Code:
16YUtotH4Dsp9teiVevjVnLJfZjgQJQtPH (uncompressed)
1CsgVKvxJ4QwVwwPUTpSJ3qKhuDvepeVaa (compressed)

Both of them have never received any funds. Could you explain us more properly what you want?

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
COBRAS (OP)
Member
**
Offline Offline

Activity: 883
Merit: 22


View Profile
August 31, 2021, 11:37:53 AM
 #3

What is SAGE? I assume you mean the transactions related with its legacy addresses. Well, the public key with these coordinates is:
Code:
04e34a65a26877b80299ea0efe5d801cf30e09c2894b1100f5f2509e926739eef515c393ff61a2036b4d54ef9286c99f00ca580a6b6aed5c5778dca83a7d9fa280

These are its addresses:
Code:
16YUtotH4Dsp9teiVevjVnLJfZjgQJQtPH (uncompressed)
1CsgVKvxJ4QwVwwPUTpSJ3qKhuDvepeVaa (compressed)

Both of them have never received any funds. Could you explain us more properly what you want?

Im generate private keys what Im use after, but I need I have a coordinates (x,y) for example X: (xe34a65a26877b80299ea0efe5d801cf30e09c2894b1100f5f2509e926739eef5 Y: 0x15c393ff61a2036b4d54ef9286c99f00ca580a6b6aed5c5778dca83a7d9fa280) of public key bitcoin and need check does public key has a transaction ?

Help me please with code ?

I very need this asap.

Thank you very mach  priv+pub what have a transaction, empty or not empty this does not meter. Then I find a sach address I check sites like keys.lol and search privy for them , after I get privkey I will continue use this privkey in my formula.....

Understand now ?

If someone make code for me, I will give him my old wallet dat with 2BTC inside with lost password.

[
NotATether
Legendary
*
Offline Offline

Activity: 1638
Merit: 6898


bitcoincleanup.com / bitmixlist.org


View Profile WWW
September 02, 2021, 01:22:10 PM
 #4

What is SAGE?

https://en.wikipedia.org/wiki/SageMath

He is asking for help with some script he made with this programming language.



COBRAS, I'm assuming your code is either not working or doesn't exist at all? I'm inclining more to the second possibility.

I didn't finish this as I have other work to do now, but I'll complete it at a later date.

Code:
# Some python code
# Create compressed public key from points
def point2compressed(x, y):
    if (y % 2 == 0):
        prefix = "02"
    else:
        prefix = "03"
    hx = hex(x)[2:].zfill(64)
    return prefix + hx

# create uncompressed public key from points
def point2uncompressed(x, y):
    hx = hex(x)[2:].zfill(64)
    hy = hex(y)[2:].zfill(64)
    return "04" + hx

#NOTE: code after this line is untested and probably broken

# public key to HASH160
from hashlib import sha256
import bytearray
def hash160(pubkey):
    #TODO This currently doesn't add the required prefix/suffix at the hash.
    hexkey = bytearray.fromhex(pubkey)
    h = sha256()
    h.update(hexkey)
    hash160 = h.digest()
    return hash160
   
#pip install base58
def legacy_address(hash160):
    #TODO

def nested_segwit_address(hash160):
    #TODO

#pip install bech32
def native_segwit_address(hash160):
    #TODO


#pip install requests
import requests
def has_balance(address):
    r = requests.get("https://api.blockchair.com/bitcoin/addresses?address={}".format(address))
    if r.status != 200:
       throw Exception("Got Status {} from Blockchair".format(r.status))
    return r.json()



.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
NotATether
Legendary
*
Offline Offline

Activity: 1638
Merit: 6898


bitcoincleanup.com / bitmixlist.org


View Profile WWW
September 03, 2021, 03:38:27 PM
 #5

Bro !!! Thank you very mach for your help. I was temporally basy, so I well come back to my fake base point generator and script some time late.

Fake base point generator?

Wait a minute. How would a fake base point generator help you find points any faster than a random brute-force?

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
COBRAS (OP)
Member
**
Offline Offline

Activity: 883
Merit: 22


View Profile
September 03, 2021, 04:00:04 PM
 #6

Bro !!! Thank you very mach for your help. I was temporally basy, so I well come back to my fake base point generator and script some time late.

Fake base point generator?

Wait a minute. How would a fake base point generator help you find points any faster than a random brute-force?

If sites like keys.lol know privkey from equel to my fake bsae poit - very easy help..... Remember example then Brainless find privkey to my fake base point...

[
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!