myceworld / myce

A digital currency.
MIT License
9 stars 8 forks source link

[wallet upgrade] OP_RETURN output #19

Closed bitcoinsfacil closed 4 years ago

bitcoinsfacil commented 4 years ago

Describe the solution Integrate this into next release @ComputerCraftr added an RPC command that allows users and bots to easily put text comments or other information on the blockchain along with the ability to burn coins

Describe reference or alternative examples https://oldexplorer.myce.world/api/getrawtransaction?txid=f421434cd3f3b6bee2fa31f5a8f992047e5f82f5e653e7dabcadbe7fea89d81a&decrypt=1

Decode OP_RETURN output, this is what you get
~$ echo 59434520746f20746865206d6f6f6e | xxd -p -r
YCE to the moon

Additional context https://learnmeabitcoin.com/guide/nulldata

bitcoinsfacil commented 4 years ago

References for peer to peer messaging: An ecies-based solution (not using OP_RETURN) for Slimcoin: https://github.com/slimcoin-project/Slimcoin/commit/2ec75acf5c1289425822040bc99969bb04dcc5de

Another reference on Verge: https://github.com/vergecurrency/VERGE/blob/master/src/wallet/wallet.cpp#L3575 And one on old crave : https://github.com/CooleRRSA/crave/blob/master/src/wallet.cpp#L3044