Skip to content

Instantly share code, notes, and snippets.

View dexX7's full-sized avatar

dexX7

View GitHub Profile
--- !omap
- out_manifest: ! 'b0baae4b1666f45d39c9c20f0ba77db94c0d602f867419622cb6f0607d8d92df omnicore-0.0.9.99-dev-win32-setup.exe
0d4d9900ebf5352b67b4e07f7da6a00c1e7795bfdf4f3d02060b96db8ddfee43 omnicore-0.0.9.99-dev-win32.zip
c8f8c98d5963eaebff9ff9cc0b6750173ca6d671274bc25a8c049b1b773f4944 omnicore-0.0.9.99-dev-win64-setup.exe
5d23ba79194d6e886c76e161f7dee76b0757335c205a2db64ad111d03cc67e36 omnicore-0.0.9.99-dev-win64.zip
e223b6cf10511583a413d7abed893e58f7bceb208f4af0cb3de17183a3e95b46 src/omnicore-0.0.9.99-dev.tar.gz
'
- in_manifest: ! 'd0192624832a23fa11627811ce3685e38d4799d57c10e960d678f671e806423e omnicore-win-0.10-desc.yml
git:01d49a6845a05dc5a356e09f9878f6c3e8dd3c7a omnicore'
- base_manifests: !omap
--- Building for precise amd64 ---
Stopping target if it is up
Making a new image copy
lxc-start: unrecognized option '--version'
Usage: lxc-start --name=NAME -- COMMAND
lxc-start start COMMAND in specified container NAME
Options :
-n, --name=NAME NAME for name of the container
@dexX7
dexX7 / Mastercoin dust collector
Created February 22, 2014 00:43
An inefficient way to collect dust from Mastercoin mutlisig transactions.
// 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
@dexX7
dexX7 / 1KHfLixa2idRnZXMUfEisBati1vpywaH6E.csv
Created April 25, 2014 01:36
Display transactions which send Bitcoin to a specific address
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 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
@dexX7
dexX7 / internal-p2sh-multisig-txs.java
Created October 5, 2014 00:03
Using Master Core to create a P2SH multisig wallet and send some tokens
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
@dexX7
dexX7 / 20141116-InvalidMetaDexTransactionsTest
Created November 16, 2014 14:48
mastercore-rpc-tests: InvalidMetaDexTransactionsTest
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
@dexX7
dexX7 / 20141119-MetaDexPlanTest
Created November 19, 2014 02:16
mastercore-rpc-tests: MetaDexPlanTest
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