Bitcoin Forum

Bitcoin => Project Development => Topic started by: spndr7 on July 31, 2015, 07:32:28 AM



Title: base32LGT - Embed 60 % more text data in blockchain
Post by: spndr7 on July 31, 2015, 07:32:28 AM

base32LGT - Javascript Encoder/Decoder (https://github.com/viharinnovations/base32LGT)


https://i.imgur.com/yrXiZ39.png?1 (https://viharinnovations.com/base32LGT/)



Github (https://github.com/viharinnovations/base32LGT)

base32LGT (https://viharinnovations.com/base32LGT/base32LGT.pdf)

Live Demo (https://viharinnovations.com/base32LGT/)

64 byte lowercase general text data could be converted to 40 byte hexadecimal using base32LGT.

This could be used for OP_RETURN operand as null data, in a transaction. Thus, effectively carrying 64 byte lowercase general text data.




Title: Re: base32LGT - Embed 60 % more text data in blockchain
Post by: melisande on July 31, 2015, 05:26:02 PM
No doubt we are all here to learn but spndr7, please explain a little more about this your project because it seems technically too high for me and I know it might be the same to some people here also.


Title: Re: base32LGT - Embed 60 % more text data in blockchain
Post by: hexafraction on July 31, 2015, 05:27:30 PM
No doubt we are all here to learn but spndr7, please explain a little more about this your project because it seems technically too high for me and I know it might be the same to some people here also.

This is a character encoding that increases the data that can be stored in a 40 byte OP_RETURN transaction. It only works with a limited set of input characters (lowercase)


Title: Re: base32LGT - Embed 60 % more text data in blockchain
Post by: melisande on July 31, 2015, 05:30:03 PM
Please where can 40 byte OP_RETURN transaction be used?


Title: Re: base32LGT - Embed 60 % more text data in blockchain
Post by: hexafraction on July 31, 2015, 05:35:36 PM
Please where can 40 byte OP_RETURN transaction be used?

All you need to do is make a txn with an OP_RETURN script. Just create a raw txn, sign, and broadcast. The spec can be found by searching around; I don't have a link at the moment.


Title: Re: base32LGT - Embed 60 % more text data in blockchain
Post by: melisande on July 31, 2015, 05:41:02 PM
Please where can 40 byte OP_RETURN transaction be used?

All you need to do is make a txn with an OP_RETURN script. Just create a raw txn, sign, and broadcast. The spec can be found by searching around; I don't have a link at the moment.
I am sorry for all my questions it is because I don't understand even right now I don't get it still but I will wait for other people to comment on this whether I might learn and pick up from it.


Title: Re: base32LGT - Embed 60 % more text data in blockchain
Post by: spndr7 on July 31, 2015, 08:42:55 PM
Please where can 40 byte OP_RETURN transaction be used?

All you need to do is make a txn with an OP_RETURN script. Just create a raw txn, sign, and broadcast. The spec can be found by searching around; I don't have a link at the moment.


The easiest way to create OP_RETURN transaction is through coinb.in, The steps are -

1. Go to https://coinb.in/#newTransaction or download it from github (https://github.com/OutCast3k/coinbin/) for off-line usage.

2. Paste in your address, then click load to fetch received transactions/unspent outputs. (Internet connection needed)

3. Check the INPUTS you want to use.

4. Click on advance options, check Null Data field
    - Allow data to be sent within the transaction and stored in the blockchain by using OP_RETURN.

5. Open the OUTPUTS tab, create a transaction, probably to your own address. In amount field, subtract fees (0.0001 BTC).

6. Create another transaction, this time write hex data in place of address. Fill-in 0 in the amount field.

7. Carefully check fees, then click submit to CREATE TRANSACTION.

8. Copy this transaction,  in the SIGN tab, and use your private key to sign.

9. Copy the signed transaction, VERIFY everything is correct, then BROADCAST it.


https://bitcoin.org/en/developer-guide#standard-transactions
Quote
Null data pubkey scripts let you add a small amount of arbitrary data to the block chain in exchange for paying a transaction fee, but doing so is discouraged. (Null data is a standard pubkey script type only because some people were adding data to the block chain in more harmful ways.)

Pubkey Script: OP_RETURN <0 to 40 bytes of data>
(Null data scripts cannot be spent, so there's no signature script.)

Note -

1. Currently coinb.in supports maximum of 39 bytes of Null Data (https://bitcointalk.org/index.php?topic=390046.msg11984873#msg11984873).

2. No. of Hex alphabets (0-9,a-f) must be even.



Title: Re: base32LGT - Embed 60 % more text data in blockchain
Post by: melisande on August 01, 2015, 07:36:00 AM
Please where can 40 byte OP_RETURN transaction be used?

All you need to do is make a txn with an OP_RETURN script. Just create a raw txn, sign, and broadcast. The spec can be found by searching around; I don't have a link at the moment.


The easiest way to create OP_RETURN transaction is through coinb.in, The steps are -

1. Go to https://coinb.in/#newTransaction or download it from github (https://github.com/OutCast3k/coinbin/) for off-line usage.

2. Paste in your address, then click load to fetch received transactions/unspent outputs. (Internet connection needed)

3. Check the INPUTS you want to use.

4. Click on advance options, check Null Data field
    - Allow data to be sent within the transaction and stored in the blockchain by using OP_RETURN.

5. Open the OUTPUTS tab, create a transaction, probably to your own address. In amount field, subtract fees (0.0001 BTC).

6. Create another transaction, this time write hex data in place of address. Fill-in 0 in the amount field.

7. Carefully check fees, then click submit to CREATE TRANSACTION.

8. Copy this transaction,  in the SIGN tab, and use your private key to sign.

9. Copy the signed transaction, VERIFY everything is correct, then BROADCAST it.


https://bitcoin.org/en/developer-guide#standard-transactions
Quote
Null data pubkey scripts let you add a small amount of arbitrary data to the block chain in exchange for paying a transaction fee, but doing so is discouraged. (Null data is a standard pubkey script type only because some people were adding data to the block chain in more harmful ways.)

Pubkey Script: OP_RETURN <0 to 40 bytes of data>
(Null data scripts cannot be spent, so there's no signature script.)

Note -

1. Currently coinb.in supports maximum of 39 bytes of Null Data (https://bitcointalk.org/index.php?topic=390046.msg11984873#msg11984873).

2. No. of Hex alphabets (0-9,a-f) must be even.


This is used to create pubkey signature for transactions?


Title: Re: base32LGT - Embed 60 % more text data in blockchain
Post by: spndr7 on August 01, 2015, 11:21:53 AM

This is used to create pubkey signature for transactions?

Null data is also a public key script, which means, it can be used in place of address.

https://en.bitcoin.it/wiki/Script#Provably_Unspendable.2FPrunable_Outputs

This is used to add a small amount of arbitrary data to the block chain.


Title: Re: base32LGT - Embed 60 % more text data in blockchain
Post by: melisande on August 01, 2015, 11:33:58 AM

This is used to create pubkey signature for transactions?

Null data is also a public key script, which means, it can be used in place of address.

https://en.bitcoin.it/wiki/Script#Provably_Unspendable.2FPrunable_Outputs

This used to add a small amount of arbitrary data to the block chain.

I am very close to this thread because I understand that I have a lot to learn besides your scripts seems to me to be very useful.