Bitcoin Forum
July 04, 2024, 01:02:13 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 15 16 17 18 19 20 21 22 23 »
161  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: January 05, 2014, 03:08:38 PM
Fixed   Mymastercoins problem with transaction  Smiley
192b812c37b9f1e1940b3590b30aef8bf972dce8f4aabc5e908d556e26826506
162  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: January 05, 2014, 12:51:23 AM
Ok that is also what I have for transaction.


Peek and decode level 1.

163  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: January 04, 2014, 02:55:25 PM
For transaction
ecb77ee990de29745de949462e1f6e44584c310a0da12c9fbdf86dbe6ffabcfc

1EXoDusjGwvnjZUyKkxZ4UHEf77z6A5S4P - (Unspent) 0.0006 BTC
15a4XCuWmx2cCQVf8wZK7mqdvj5uwo1vby - (Spent) 0.0006 BTC
15efTnSCG13druGmetEp1AULCEqudtCSwq - (Unspent) 0.0006 BTC
1Q1sFqsi8S5DxV5hz6sWLamGBp9To93iG7 - (Spent) 0.0119344 BTC

If this goes to peek and decode. Is address 1Q1sFqsi8S5DxV5hz6sWLamGBp9To93iG7 Included?

If it is included there will be 2 possible recipient address which makes the transaction invalid.
164  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: January 03, 2014, 06:45:16 PM
99.54%

8 Address left to sync =)

https://masterchest.info/consensus.aspx
165  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: January 03, 2014, 12:10:35 PM
Mymastercoins is back online.  (Using blockchain.org )

Please check address
14n2uAowcMTmCKMu4k4LZsWude3CttAgQR

Received 1000 msc balance 1000

Sent 1 msc balance 999

Sending  1000 msc.  Should be invalid since he only has 999
e258bca169d90801ba9e3f0536fef04af2f26fd13af045cfb7700ba9cca9c89e

Sent 300 balance 699
3ce917299c9d8b4834df51f640e9715ef8b6201cfd494238a7b2bd17863cc724


Didn't he sent the MSC to himself? My version things he did and thus after that transaction he still has 1000 MSC.


I see.  He sent 1 msc back to himself.  My implementation sent it to the change address. Will update the codes.
166  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: January 03, 2014, 06:16:20 AM
Mymastercoins is back online.  (Using blockchain.org )

Please check address
14n2uAowcMTmCKMu4k4LZsWude3CttAgQR

Received 1000 msc balance 1000

Sent 1 msc balance 999

Sending  1000 msc.  Should be invalid since he only has 999
e258bca169d90801ba9e3f0536fef04af2f26fd13af045cfb7700ba9cca9c89e

Sent 300 balance 699
3ce917299c9d8b4834df51f640e9715ef8b6201cfd494238a7b2bd17863cc724
167  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: December 30, 2013, 09:22:10 PM
Bitoy I see that your implementation has a whole lot of different numbers all of a sudden. Any idea where these differences are coming from?

Blockexplorer.com is stuck at block 277595.  That is where I get data.

  Is there a way to get exodus trans using bitcoind?
168  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: December 24, 2013, 01:05:48 PM

I see absolutely no problem with sending coins to oneself.
A restriction on such a send is no where in the spec (and in my opinion - shouldn't be).
Also in bitcoins, one can send to himself.
Even our protocol uses bitcoin's feature of sending to one self (change).




Ok if sending to one self is the change then you can remove that address since it is a change address.
169  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: December 24, 2013, 10:41:16 AM


Why are you removing the sender address from the outputs?
There is nothing mentioning removal of such an address from the outputs of a basic simple send in the spec.
Normally there isn't any sender address among the outputs of basic simple send , e.g. (some other basic simple send):
https://blockchain.info/tx/feb9c1c2f1b274391275a2e92a6007397e087ba5d29ea896098c21d7400cd026
and if there is - it is either the recipient or the change.

Checking the sequence numbers of the outputs:
18292miT6bBoZ4d5PAkjuwyMxktDep3h7h  [77]
182osbPxCo88oaSX4ReJwUr9uAcchmJVaL  [77]
18ArFG8cPDT5P8NVdjFuSGjkybRTW8VBji  [78]

so there is ambiguity in the sequence numbers, and we have to peek.
peek and decode shows that 18292miT6bBoZ4d5PAkjuwyMxktDep3h7h is the data.

But my parsing still says the recipient is 182osbPxCo88oaSX4ReJwUr9uAcchmJVaL

EDIT:
masterchest invalidates this transaction, which is also an option.
You can see that it is not part of the list:
https://masterchest.info/lookupadd.aspx?address=182osbPxCo88oaSX4ReJwUr9uAcchmJVaL




I removed the sender's address from the output because  its not logical for a sender to send msc to himself.
(If he did then the transaction will be invalid because there will be no recipient address.). 

However your implementation looks correct also because the sequence number of the data is 77 and the so the recipient address should have a sequence of 78. Which is the sender's address.  I think we need to clarify this with Tachikoma.

170  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: December 23, 2013, 01:03:56 PM

Bitoy - this doesn't seem right to me, it seems like this approach could end up harming users.

To frame this example using slightly different values:

1. UserA has 50 MSC
(Balance 50)

2. UserA lists 30 MSC for sale
(Balance 20 available, 30 reserved)

3. UserB sends purchase offer for all 30 MSC
(Balance 20 available, 30 reserved for purchase offer)

4. UserA changes offer to 20 MSC for sale
(Balance TBC1 available, TBC2 reserved, 30 reserved for purchase offer)

5. UserC sends purchase offer for 20 MSC
(Balance TBC3 available, TBC4 reserved, TBC5 reserved for purchase offer)

So UserA has attempted to reduce the size of a listed offer, this can't be allowed to result in a scenario in which the revised offer is treated as new and unreserved (and could result in all 50 of UserA's coins being sold).

The amount remaining available to UserA should be: Unsold balance - the greater of (all reserved purchases OR the revised offer amount).

So in the example above:

1. UserA has 50 MSC
(Balance 50)

2. UserA lists 30 MSC for sale
(Balance 20 available, 30 reserved)

3. UserB sends purchase offer for all 30 MSC
(Balance 20 available, 30 reserved for purchase offer)

4. UserA changes offer to 20 MSC for sale
(Balance 20 available, 30 reserved, 30 reserved for purchase offer)

5. UserC sends purchase offer for 20 MSC
(Balance 20 available, 30 reserved, 30 reserved for purchase offer)

Now - what if UserA was actually trying to sell the other 20 MSC?  I would expect them to increase the sell offer to 50 (although we still need to be sure this interpreted as an adjustment and not another 50, which is quite possible the same problem in reverse!).

Does this make any sense? Cheers




You have a point Super T.  What if the seller accidentally entered 50 for sale but only wanted 20.

But by design a seller can only have one sell offer.  He has to immediately send a sale  offer of  20 in order to cancel his 50 (as Tachikoma pointed out) and hopes it gets confirmed first before any purchase offers.


171  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: December 23, 2013, 12:57:11 PM
c2a904dd47797736617bf5df555f029064de0fc2ff5ba71197638e469caae7f5
Is a valid Simple Send
Date:   10/14/2013 3:32:16 PM            
Sender:   182osbPxCo88oaSX4ReJwUr9uAcchmJVaL            
Amount Sent:   0.04300000 MSC            
Recipient:   18ArFG8cPDT5P8NVdjFuSGjkybRTW8VBji

I decode this tx differently:
https://masterchain.info/simplesend.html?tx=c2a904dd47797736617bf5df555f029064de0fc2ff5ba71197638e469caae7f5&currency=MSC

It was a tricky tx that I made once manually to check the different implementations.
All the outputs have the same value so it is hard to differ between change and recipient.
Is there a reason to prefer your decoding?


The transaction has the following output.
1EXoDusjGwvnjZUyKkxZ4UHEf77z6A5S4P - (Unspent) 0.0000543 BTC
18ArFG8cPDT5P8NVdjFuSGjkybRTW8VBji - (Unspent) 0.0000543 BTC
18292miT6bBoZ4d5PAkjuwyMxktDep3h7h - (Unspent) 0.0000543 BTC
182osbPxCo88oaSX4ReJwUr9uAcchmJVaL - (Unspent) 0.0000543 BTC

Removing the exodus and sender address, only 2 address is left.

18ArFG8cPDT5P8NVdjFuSGjkybRTW8VBji
18292miT6bBoZ4d5PAkjuwyMxktDep3h7h

Using peek and decode, one address is the data (simple send).  The remaining address is the recipient.


172  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: December 22, 2013, 08:08:26 AM
Quote
UserA has a balance of 50 tmsc

A: Balance 50

Quote
UserA sends a offer to sell 30 tmsc

A: Balance 20 - Reserved 30

Quote
UserB sends a purchase offer 10 tmsc (not yet paid)

A: Balance 20 - Reserved 20 - Reserved for Purchase Offer 10

Quote
UserA changes sell offer to 5 tmsc

A: Balance 35 - Reserved 5 - Reserved for Purchase Offer 10

Quote
What is the maximum tmsc can  UserA simple send to UserC?

The maximal amount user A can send is 20 tMSC. Once the Purchase Offer expires the amount will be changed to 30.


The maximum amount  userA can send is 35 (since 5 and 10 are withheld from the 50 balance).  When the purchase offer expires it max is 45.
173  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: December 19, 2013, 02:27:54 AM

UserA has a balance of 50 tmsc
UserA sends a offer to sell 30 tmsc
UserB sends a purchase offer 10 tmsc (not yet paid)
UserA changes sell offer to 5 tmsc

What is the maximum tmsc can  UserA simple send to UserC?

35  = 50 - 10 - 5
40  = 50 - 10
174  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: December 18, 2013, 06:21:29 AM
Tested the following

UserA Post a sell offer 50 tmsc @ .001 each
15f7d532d988e4982ca2d9c5e99ee74810284939604adf772f59a75f7ecd9870


UserB post a purchase offer 1 tmsc @.001  waiting for payment
10c3c04b85b4d44372ce74ca8e25264626f15d5ce426487652d55e61221aa01a

UserA post a new offer 50 tmsc @ 0.1 each
5e7280c2abbbf8323ec0238a551f3da7fbf538c0a47c154b142eee6dbcd5a0aa

UserB pays UserA .0.001
ff9a479866950e7917ee98fd28291a22af9c9b7855228d3fe243fa87660a13ff

Result UserB gets 1 tmsc UserA is deducted 1 tmsc.


175  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: MasterCoin Buyer/Seller Thread on: December 18, 2013, 03:32:38 AM

Does it work for real mastercoins?

The wallet works only in test mastercoins.  (Waiting for the mastercoin foundation to set the starting block for  msc trading)
176  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: MasterCoin Buyer/Seller Thread on: December 18, 2013, 02:16:34 AM
Is there anyway to get test-mastercoins?
Maybe one of the original investors that has no interest in using them is willing to send them? :-)




You can buy (or sell ) test mastercoins at the distributed exchange using Mymastercoins wallet (I wrote the program Smiley

http://mymastercoins.com/MyMSCWallet.aspx
https://github.com/Bitoy88/MyMastercoinsWalletBeta
177  Alternate cryptocurrencies / Altcoin Discussion / Re: MyMastercoins Wallet on: December 17, 2013, 01:15:13 PM
Hi aTiz,

I tried to buy your 1 tsmc but it failed. I think your transaction fee is too small.  Try changing it to 0.0001.


http://mymastercoins.com/Orders.aspx?CurrencyID=2


My mistake I didn't have enough funds.

Payment confirmsed for tx I'd
227834a2151a18c1ca3c0007118cb4f12d72ad9c263a97a6f303bf7502d00c57
178  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: December 17, 2013, 05:33:55 AM


For tx a497e4fd11d2223e2129828e44b0d2110b2bb0ec3cb8a0f36bbd28f37a15ceef would that not fall to peek & decode?  I'm reading things as basically seqnums should be correct & outputs should be the same, but if they're not and thus there is packet ambiguity we can then fall back to p&d.  This is why Masterchest thinks it's valid.  Thoughts?

EDIT:  There have been quite a few questions around when p&d is allowed, perhaps that's in need of some clarification in the spec?


Mymastercoins also see a497e4fd11d2223e2129828e44b0d2110b2bb0ec3cb8a0f36bbd28f37a15ceef as  a valid simple send.  

The way I read is  "if all things failed" use "peek and decode".  

Valid "Peek and decode"
1. A data address is found (after removing the exodus address and the sender address from the list of output address)
2. There is one recipient address

 If there are more than one recipient address,
    1.  Get the data address sequence no.
    2.  Look for an address with a sequence number that is 1 less than the data address sequence no.
    3.  If the address is not found the transaction is invalid.



179  Alternate cryptocurrencies / Altcoin Discussion / Re: MyMastercoins Wallet on: December 16, 2013, 04:29:17 PM
Hi aTiz,

I tried to buy your 1 tsmc but it failed. I think your transaction fee is too small.  Try changing it to 0.0001.


http://mymastercoins.com/Orders.aspx?CurrencyID=2
180  Alternate cryptocurrencies / Altcoin Discussion / Re: MyMastercoins Wallet on: December 16, 2013, 02:59:06 PM
Downloaded on Win 7 PC. Requires 4 files for download. Disabled antivirus and firewall that gets in the way. Pretty big files to download. Will update later.

Hi ninjaboon,

Looking forward to your feedback.  Thanks  Smiley
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 15 16 17 18 19 20 21 22 23 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!