Bitoy
|
|
November 29, 2013, 06:47:40 AM |
|
Grats on getting that out in the wild! I was hoping to get this out next week just so that we can post tramsactions but the blockchain loading is really very slow (50 weeks to go Ouch. Did you not have too much luck running bitcoind over at AWS and making your RPC calls to bitcoind there for your initial testing? Please don't hesitate to let me know if you need help with this btw, anything to help with development speed Bitcoind in aws ran out of disk space (30 gb) so I have to buy more disk space and run it again. Once I have the full block chain ill test your codes to send multisig. If it works, next step is to release it in the wild with big disclaimer . How is your wallet implementation? I think you made a test msc purchase and it looks ok. Congrats !
|
|
|
|
|
Bitoy
|
|
December 01, 2013, 12:34:52 AM |
|
Hi Zathras, I've finished testing the wallet with your multisig encodetx and it worked. For the payment I used the sendmany api. Buy this might not work if a user has multiple MSC address (send many api requires an Account input not a specific address). So from the encodetx i'd like to make an encodepaymenttx. This is for sending payment to a Seller (after the buyer has Purchased a Sell Offer). Example Buyer wants to send 1 BTC to Seller Buyer is the fromadd Seller is the toadd SatAmount = 100000000 (Amount to send is Satoshi) txfee = 6000 (Dust to Exodus) changeamount = (fromtxamount) - (SatAmounttoPay + txfee) Is this correct (below is the code for your reference)? Thank you =) 'handle change changeamount = (fromtxamount) - (SatAmounttoPay + txfee)
'build tx hex raw txhex = "01000000" 'version txhex = txhex & "01" 'vin count txhex = txhex & txidtohex(fromtxid) 'input txid hex txhex = txhex & i32tohex(fromtxvout) 'input vout 00000000 txhex = txhex & "00" 'scriptsig length txhex = txhex & "ffffffff" 'sequence
txhex = txhex & "03" 'number of vouts,
'change output txhex = txhex & i64tohex(changeamount) 'changeamount value txhex = txhex & "19" 'length - 25 bytes txhex = txhex & "76a914" & addresstopubkey(fromadd) & "88ac" 'change scriptpubkey 'exodus output txhex = txhex & i64tohex(txfee) txhex = txhex & "19" txhex = txhex & "76a914946cb2e08075bcbaf157e47bcb67eb2b2339d24288ac" 'exodus scriptpubkey 'reference/destination output txhex = txhex & i64tohex(SatAmounttoPay) txhex = txhex & "19" txhex = txhex & "76a914" & addresstopubkey(toadd) & "88ac" 'data scriptpubkey
|
|
|
|
|
W2014
Member
Offline
Activity: 205
Merit: 10
|
|
December 01, 2013, 03:37:03 AM |
|
|
|
|
|
klee
Legendary
Offline
Activity: 1498
Merit: 1000
|
|
December 01, 2013, 05:32:01 AM |
|
Awesome!
|
|
|
|
Bitoy
|
|
December 03, 2013, 12:14:30 AM Last edit: December 03, 2013, 01:59:24 PM by Bitoy |
|
MyMastercoins Wallet http://mymastercoins.com/MyMSCWallet.aspxPlease post here if you find any bugs. Thanks to Zathras for the send multisig Edit The package folder contains the windows installer. The source code in vb.net is also included (under folder source code) You can compile it in vs 2010. There is also an easyinstall folder. This contains the database and exe files.
|
|
|
|
aTriz
|
|
December 03, 2013, 12:54:21 AM |
|
|
|
|
|
Bitoy
|
|
December 03, 2013, 01:20:50 AM |
|
Hi aTriz, If you are able to test it, please post your findings here. The contest also gives a prizes for testing
|
|
|
|
superfluouso
|
|
December 03, 2013, 07:58:47 AM |
|
MyMastercoins Wallet http://mymastercoins.com/MyMSCWallet.aspxPlease post here if you find any bugs. Thanks to Zathras for the send multisig Edit The package folder contains the windows installer. The source code in vb.net is also included (under folder source code) You can compile it in vs 2010. Hey Bitoy - great job - based on the screen shots, it looks very promising. I tried to install on a vm running windows 8.1 - installation failed during SQL Express installation. ERROR DETAILS Following errors were detected during this operation. * [12/2/2013 9:29:47 PM] System.Deployment.Application.InvalidDeploymentException (HashValidation) - Application manifest has either a different computed hash than the one specified or no hash specified at all. - Source: System.Deployment - Stack trace: at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath) at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, Uri& appSourceUri, String& appManifestPath) at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp) at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc) at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl) at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state) --- Inner Exception --- System.Deployment.Application.InvalidDeploymentException (HashValidation) - File, MyMastercoinsWallet.exe.manifest, has a different computed hash than specified in manifest. - Source: System.Deployment - Stack trace: at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, Hash hash) at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, HashCollection hashCollection) at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
Based on that and the event log, it appears that sql express 2008 is not compatible with 8.1 and its also complaining about the validation hash. I'm guessing SP3 or may be required in this case. Will need to take a closer look when I have more time. Thanks for uploading! Edit - You're call, but it may be useful to start a thread for your wallet discussion. I guess its up to you and the other devs how you'd like to organize the various topics but still make it easy to find things etc... I guess the supposed dedicated mastercoin forum should help with this..
|
|
|
|
Bebopzzz
Newbie
Offline
Activity: 53
Merit: 0
|
|
December 03, 2013, 09:16:23 AM |
|
MyMastercoins Wallet http://mymastercoins.com/MyMSCWallet.aspxPlease post here if you find any bugs. Thanks to Zathras for the send multisig Edit The package folder contains the windows installer. The source code in vb.net is also included (under folder source code) You can compile it in vs 2010. Hey Bitoy - great job - based on the screen shots, it looks very promising. I tried to install on a vm running windows 8.1 - installation failed during SQL Express installation. ERROR DETAILS Following errors were detected during this operation. * [12/2/2013 9:29:47 PM] System.Deployment.Application.InvalidDeploymentException (HashValidation) - Application manifest has either a different computed hash than the one specified or no hash specified at all. - Source: System.Deployment - Stack trace: at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath) at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, Uri& appSourceUri, String& appManifestPath) at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp) at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc) at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl) at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state) --- Inner Exception --- System.Deployment.Application.InvalidDeploymentException (HashValidation) - File, MyMastercoinsWallet.exe.manifest, has a different computed hash than specified in manifest. - Source: System.Deployment - Stack trace: at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, Hash hash) at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, HashCollection hashCollection) at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
Based on that and the event log, it appears that sql express 2008 is not compatible with 8.1 and its also complaining about the validation hash. I'm guessing SP3 or may be required in this case. Will need to take a closer look when I have more time. Thanks for uploading! Edit - You're call, but it may be useful to start a thread for your wallet discussion. I guess its up to you and the other devs how you'd like to organize the various topics but still make it easy to find things etc... I guess the supposed dedicated mastercoin forum should help with this.. The same thing happened to me aswell, only I'm running windows 7 so It probably doesn't have anything to do with the OS. I'll still leave error details here in the case that you spot something different: ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of C:\Users\Marin\Downloads\MyMastercoinsWalletBeta-master\MyMastercoinsWalletBeta-master\package\MyMastercoinsWallet.application resulted in exception. Following failure messages were detected: + Application manifest has either a different computed hash than the one specified or no hash specified at all. + File, MyMastercoinsWallet.exe.manifest, has a different computed hash than specified in manifest.
COMPONENT STORE TRANSACTION FAILURE SUMMARY No transaction error was detected.
WARNINGS There were no warnings during this operation.
OPERATION PROGRESS STATUS * [12/3/2013 10:09:28 AM] : Activation of C:\Users\Marin\Downloads\MyMastercoinsWalletBeta-master\MyMastercoinsWalletBeta-master\package\MyMastercoinsWallet.application has started. * [12/3/2013 10:09:33 AM] : Processing of deployment manifest has successfully completed. * [12/3/2013 10:09:33 AM] : Installation of the application has started.
ERROR DETAILS Following errors were detected during this operation. * [12/3/2013 10:09:33 AM] System.Deployment.Application.InvalidDeploymentException (HashValidation) - Application manifest has either a different computed hash than the one specified or no hash specified at all. - Source: System.Deployment - Stack trace: at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath) at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, Uri& appSourceUri, String& appManifestPath) at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp) at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc) at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl) at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state) --- Inner Exception --- System.Deployment.Application.InvalidDeploymentException (HashValidation) - File, MyMastercoinsWallet.exe.manifest, has a different computed hash than specified in manifest. - Source: System.Deployment - Stack trace: at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, Hash hash) at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, HashCollection hashCollection) at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
COMPONENT STORE TRANSACTION DETAILS No transaction information is available.
|
|
|
|
|
nanobit
Member
Offline
Activity: 77
Merit: 10
|
|
December 04, 2013, 01:02:05 AM |
|
Great article! I'm sure it'll bring people here to try and see when this awesome Mastercoin platform will be available. Perhaps someone could give a short summary of where we are now and what still needs to be done before Distributed Exchange is ready for use?
|
|
|
|
|
Bitoy
|
|
December 04, 2013, 12:44:44 PM |
|
The transaction below has multiple inputs 5697c55a0fb5ee61f6e9c78cb9c84cef23e11c84c68cd6e2821b8869489b808c
1BKpa19m5Xy9SvSzC5djPWtCfbuynSDwmb (0.00006 BTC - Output) n=2 1BKpa19m5Xy9SvSzC5djPWtCfbuynSDwmb (0.00006 BTC - Output) n=2 1NZC9Pk4Rt1mVe5dL8w2fShXJppyJU7Vq8 (0.00009 BTC - Output) n=1 1BKpa19m5Xy9SvSzC5djPWtCfbuynSDwmb (0.00006 BTC - Output) n=2
Which one of the address will be the reference address?
|
|
|
|
Tachikoma
|
|
December 04, 2013, 12:51:45 PM |
|
What kind of payment is this suppose to be? A payment for the distributed exchange?
I guess we need to think of a way to properly handle this case. I'm guessing that we could backtrace and see if one of these addresses did a Purchase Offer. If both of them did a purchase offer we invalidate the transaction. Could that work?
|
|
|
|
Bitoy
|
|
December 04, 2013, 01:00:08 PM |
|
What kind of payment is this suppose to be? A payment for the distributed exchange?
I guess we need to think of a way to properly handle this case. I'm guessing that we could backtrace and see if one of these addresses did a Purchase Offer. If both of them did a purchase offer we invalidate the transaction. Could that work?
It supposed to be a payment of 1NZC9Pk4Rt1mVe5dL8w2fShXJppyJU7Vq8. The wallet has 2 address 1NZC9Pk4Rt1mVe5dL8w2fShXJppyJU7Vq8 1BKpa19m5Xy9SvSzC5djPWtCfbuynSDwmb then I used sendmany api function and that was the result. My implementation also invalidated it =)
|
|
|
|
Tachikoma
|
|
December 04, 2013, 01:49:43 PM |
|
Are you always invalidating it? Or only if there are two purchase offers on both of the addresses? I think it would add flexibility if we would allow multi-input payments we just need to track which inputs have an offer open. In other news: I just posted our proposal for a reference implementation, comments/critique welcome.
|
|
|
|
Bitoy
|
|
December 04, 2013, 08:43:28 PM |
|
Are you always invalidating it? Or only if there are two purchase offers on both of the addresses? I think it would add flexibility if we would allow multi-input payments we just need to track which inputs have an offer open.
I also agree on the flexibility of allowing multi input as payment but only for one purchase offer. If there are 2 purchase offers for both address , payment transaction will be applied only to 1 purchase offer of one the of the address (lesser n value) Currently I invalidated the transaction. Will change the code if this is approved. Currently reading it. Will post comments soon.
|
|
|
|
zathras
|
|
December 05, 2013, 04:08:14 AM |
|
What use case scenarios are we enabling here? To date we have always applied the logic that the sender is the address with the largest input - I'm trying to see where the value is in deviating from that. Thanks!
|
|
|
|
|