CRYPTO NEWS

Why this witness doesn’t seems to contain a public key?

I am learning how transactions are coded in the blockchain, so I used a python script to compute bitcoin address from public key. This works with the public key: 03416fe9ba17be8fe3f88011923135e83c6a0666fcb575de6ab337c7d6c8f41a5f

within the sigscript if this transaction: https://www.blockchain.com/btc/tx/56beef8afe5a4b5b41225211e62c3e7bce5747c4c8dcdd982173e8496687794b I correctly get the corresponding address:

15nrxBDLts1tEbowH1dLm5z84RVas7USmP

I tried with the same python code to check where is the public key of the first input of this transaction: https://www.blockchain.com/btc/tx/01e7c525a5759cde1d04d2e9a363424053ace3ff1d2dde9cd1b368493254bd0d

I tried to check if I get the address of this input: 34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo Unfortunately, I didn’t manage to end with this address when I use the second field of the witness of this input, which should be the public key of the address I am trying to get (the one starting with 34xp): 02a720e54e39b28434a4c55462718b4584db973331a834141b8cad7e52c317f695

SHA256+RIPEMD160+b58encode on this data doesn’t correspond to the address above (the one starting with 34xp), and I didn’t figured out why, and where is the public key of this address in this transaction input. Could anyone please give me a clue about it?

Crypto Hats, Crypto Shirts, Crypto Socks, Crypto Clothing

Binance Spot Test Network. Error when trying to reach Testnet account balances

I am trying to test a bot on the Spot Test Network but when I try to do acc = client.get_account() to access some account info that is needed it raises the following error APIError(code=-2015): Invalid API-key, IP, or permissions for action. I have tried finding a solution but can’t find anything besides a step::Listen

I am trying to test a bot on the Spot Test Network but when I try to do acc = client.get_account() to access some account info that is needed it raises the following error APIError(code=-2015): Invalid API-key, IP, or permissions for action. I have tried finding a solution but can’t find anything besides a step i dindn’t do from the tutorial on the Binance Spot Test Network

the step says:

Follow the official Spot API Key documentation to replace the API endpoint URLs with the following values:

https://api.binance.com/api –> https://testnet.binance.vision/api

wss://stream.binance.com:9443/ws –> wss://testnet.binance.vision/ws

wss://stream.binance.com:9443/stream –> wss://testnet.binance.vision/stream

When I look in the documentation I cant find anything that would help with this problem.
I am not sure this is the solution but it is the only thing I could find on it.

Why this witness doesn’t seems to contain a public key?

Shopping cart
There are no products in the cart!
Continue shopping
0