http://download.virtualbox.org/virtualbox/4.3.14/VirtualBox-4.3.14-95030-Win.exe
In particular:
- Create a new VirtualBox VM
// Uses BitcoinRpcSharp | |
// https://github.com/BitKoot/BitcoinRpcSharp | |
public struct TxOutput | |
{ | |
public string Address; | |
public string TxId; | |
public string Type; | |
public int N; | |
public double Value; |
Say, you want to buy some Mastercoins, but you are not sure, if the seller wants to scam you. | |
Step 1: The Seller prepares a signed "send" transaction and tells the buyer the transaction hash. | |
Step 2: The Buyer prepares a signed transaction for the payment and uses the "send" transaction's hash as input. | |
The buyer then sends the seller the raw transaction and the seller broadcasts both. | |
If the seller invalidates the "send" transaction, his payment is also invalidated. |
[{ | |
"txid": "98419d8b3056ce50aa63d1f464555e038ae517996ac6ec13bfd8c26689f5bece", | |
"data": [{ | |
"datahex": "000000000001000000012a05f200", | |
"version": 0, | |
"type": "Simple Send (0)", | |
"input": "1NqkqJkGCA7HJkBQqJrRvJCDCLAnQndw7", | |
"reference": "1MaStErt4XsYHPwfrN9TpgdURLhHTdMenH", | |
"currency": "Mastercoin (1)", | |
"amount": 50.0 |
blocktime;blockheight;position;txid;vout;amount;sender | |
1398115251;297047;94;70ddc412ccae8c8c1659e71597f3971240b0e03d195799ed83235e2f52a3cf25;0;0.007;13KQXZwHFk3DCqDZG45qqaJzn6uuJPGAZS | |
1398155998;297117;1;b8ef7515dd6d29243f544766876934216e302e78732f44df9e5fef4cbc0739bc;1;15;186y2sHKTzmTaAvbM543Vqw9zw9dtaneiN | |
1398155998;297117;18;a165174f5876eb43bf5ef0c6961d99420979fc7919eda9863dea9745ae33fac9;0;118;1DjAmmS6iSg5Xe6wYz37CAMAdvGTQoijiK | |
1398155998;297117;24;e489cad48a8473f496bbcb17a503118a682804a90a11a06304e9b004d8b66310;0;6.3;1EB6Nm4JmS7mbeJ8Yv7bycbMDvgpWq9uvN | |
1398155998;297117;36;cf54e2b39f28e2cf12bce49db8de81c32584ab5aab00a14f39f5580eccf65409;0;1;1KJwKxZ4U8PnaoGgGBTBZZ4GkM3ACyL3oq | |
... | |
Full data: | |
http://www.bitwatch.co/msc/1KHfLixa2idRnZXMUfEisBati1vpywaH6E.csv |
Embedded proof of verification | |
Current situation: | |
- Mastercoin is balance based | |
- Advanced system states exist (ongoing crowdsales, accepted orders, ...) | |
- Clients reconstruct the view of system by verifying all transactions | |
starting at Exodus according to a client side set of rules | |
- Mastercoin transactions are a subset of all Bitcoin transactions |
http://download.virtualbox.org/virtualbox/4.3.14/VirtualBox-4.3.14-95030-Win.exe
In particular:
goals: | |
- create a 1-of-3 script hash wallet with wallet keys | |
- send some tokens to the p2sh wallet | |
- send some tokens back | |
--- | |
// let's see which addresses are availabel at all: | |
mastercore-cli listaddressgroupings |
#!/usr/bin/env python | |
import binascii | |
import sys | |
import leveldb | |
def b2x(b): | |
"""Convert bytes to a hex string""" | |
if sys.version > '3': | |
return binascii.hexlify(b).decode('utf8') |
Tested with: | |
https://github.com/mastercoin-MSC/mastercore/tree/94b65c2d55eebb3663ae129552b94176d16967fa | |
Note: | |
Amounts in "offering ..." info is shown as divisible amount, even if it's indivisible. | |
~/mastercore/qa/mastercore-rpc-tests$ python test_invalid_dex_txs.py --omitstdout --verbose | |
Initializing test directory /tmp/testnZvutM | |
Sending 0E-8 BTC from muNn3rHPfxtxiwiGvdk7wZeRVYSQP1Wize to muNn3rHPfxtxiwiGvdk7wZeRVYSQP1Wize with a fee of 0.00010000 BTC | |
Sending 50.00000000 BTC from muNn3rHPfxtxiwiGvdk7wZeRVYSQP1Wize to mkbWxtzhJzPRUrZ8ZfdQtLS6ARDPb2Gce2 with a fee of 0.00010000 BTC |
Tested with: | |
https://github.com/mastercoin-MSC/mastercore/tree/4ff017f95e2a6d419d47e2fbd06d55b2fea47e35 | |
Note: | |
Amounts in "offering ..." info is shown as divisible amount, even if it's indivisible. | |
~/mastercore/qa/mastercore-rpc-tests$ python test_meta_dex_plan.py --omitstdout --verbose | |
Initializing test directory /tmp/test_cHgB7 | |
Sending 0E-8 BTC from msnGTKSNLSqBwRz655bqsbUeELfStzSEa2 to msnGTKSNLSqBwRz655bqsbUeELfStzSEa2 with a fee of 0.00010000 BTC | |
Sending 50.00000000 BTC from msnGTKSNLSqBwRz655bqsbUeELfStzSEa2 to msoeKwK1pHYsxTomiSw843fR8AdPmskaGc with a fee of 0.00010000 BTC |