Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [encoding]

The tag has no usage guidance.

3
votes
3answers
116 views

allowed DER encoding format violations for signatures in bitcoin: implications for libraries?

I have recently changed verification code in python-bitcointx to use libsecp256k1 library. In the python-bitcoinlib code (that python-bitcointx is a derivative of), openssl functions were used for ...
2
votes
1answer
35 views

ScriptSig Conversion in Python

I'm trying to convert a scriptsig into bytes so that I can better extract R & S values, but when I try and convert, I'm missing some of elements that should be there, like x30 for example. ...
2
votes
1answer
85 views

Why does P2SH-P2WPKH use DER encoded signatures?

If we simply assumed 32 bytes of r and s each, then signatures can be 64 bytes. Now they are on average 71 bytes in DER plus an additional byte to declare their size, effectively making them use 72 ...
0
votes
2answers
41 views

what are private keys (essentially) how can i make them using any given data?

private keys decode pub keys so how can they reveal other things? can i reveal a web address from a private key? I should be able to unpack anything from a private key seen as I can unpack something ...
0
votes
0answers
24 views

Legally shuttering miners and full nodes by adding illegal information to blockchain [duplicate]

In many jurisdictions possession or distribution of certain information or content is illegal. Illegal primes, classified information, magnet links to copyrighted torrents, hate speech, outlawed ...
0
votes
1answer
135 views

What python code is necessary to convert the integers of a bitcoin public key into the proper hex version thereof?

If I get a public key of two integers, x and y values what code is necessary to convert them into their hex versions without any additional letters, or numbers? This is half a Python programming ...
3
votes
2answers
406 views

CVarint serialization format

Recently I started analyzing the UTXO set data that every full node stores in chainstate folder (a LevelDB database). By looking into the code you can learn more or less how the data entries are ...
2
votes
1answer
369 views

from b58check to hex and back

I am manipulating (with pybitcointools) some regular addresses as well as some P2SH and stumbled upon the following: Case 1: >>> b58check_to_hex('17rq8m5SW8XoZ9dHEkQyBfc5w2XQnQvznz') '...
7
votes
1answer
4k views

How to decode raw tx hex programmatically

createrawtransaction(...) in testnet returns this hex: ...
4
votes
3answers
410 views

Compact integer in Scripts

I've been looking at the compact representation of integers for integer operations in the Script language. It seems that most operations produce or push byte arrays, but when integer operations are ...
2
votes
1answer
322 views

Signature: encoding a message - transaction to a point of curve y^2=x^3+7 and Bitcoin Core

Where should I look at in Bitcoin Core source code to figure out how the signature process trasform a message in a curve point? To sign a transaction (message) in Bitcoin system, you need to encode ...
0
votes
1answer
2k views

What version byte will produce a Base58 encoding starting with X?

What is the Value of X in Base58? The Problem is when I referred to this table: https://en.bitcoin.it/wiki/Base58Check_encoding I in the end come up with D when I used 30, but I want X, so what will ...
7
votes
1answer
1k views

Why is Ripple's base58 alphabet so weird?

In this answer I found out that Ripple uses a different base58 alphabet from Bitcoin. There aren't many materials on what that alphabet is, but I managed to find this reference: The base58 ...
5
votes
1answer
1k views

Was Base58 invented for Bitcoin?

Base58 is very useful whenever data needs to be written down, but I've never seen it mentioned in any context other than Bitcoin. Was it invented by Satoshi specifically for use in Bitcoin?
0
votes
1answer
500 views

Base58Check encoding: Using for Version 4 UUID?

Can Base58Check encoding be used to encode a Version 4 UUID? This would be handy for the same reasons as encoding Bitcoin public keys in Base58Check instead of Base64. I've read the Bitcoin wiki ...
3
votes
2answers
768 views

In which Block was Len Sassaman memorialised?

It has been mentioned a couple times here and there that Len Sassaman was memorialised somewhere in the Block Chain. I was able to find a dump of of the tribute to him, but I can't seem to find where ...
15
votes
2answers
8k views

What is a 130 hex character public key?

I went onto https://www.bitaddress.org and the last tab there is a place to enter a private key and it shows the various formats of public and private keys. It is strange to me that the public key can ...
38
votes
1answer
10k views

How are transaction hashes calculated?

I'm trying to calculate the hash of transactions in bitcoin blocks, but I'm not getting the right answers. For example, the genesis block has a single transaction. Here's how I'm attempting to ...
2
votes
1answer
161 views

What is the “wallet export format”?

The "wallet export format" is mentioned at the Wiki page for Mini private key format, but it doesn't seem to be explained on the Wiki. How does one convert the export format to and from corresponding ...
9
votes
1answer
496 views

Different ways to encode Bitcoin Address

What are the different ways to encode a Bitcoin Address (both private and public) and how are they calculated? I've heard of things like firstbits, mini private key format, and I`d like to know how ...