Author

Topic: [ANN][XCP] Counterparty - Pioneering Peer-to-Peer Finance - Official Thread - page 107. (Read 1276789 times)

sr. member
Activity: 335
Merit: 255
Counterparty Developer
Global consensus is fragile, so I'm wondering: what is the security model behind this? How could I know whether the data provider for the light mode is honest?

The data provider is used for:
1) generate unsigned transactions
2) querying the Counterparty database, to get balances, orders, etc..

For the 1) all transactions generated by a server are checked client side, to be sure that the transaction contains exactly what the user asked (see https://github.com/CounterpartyXCP/counterpartyd/pull/728)

For the 2), (a lot less critical for all transactions except btcpay), an option will be available to query several servers, if all results are not the same an error will be raised (see https://github.com/CounterpartyXCP/counterparty-cli/issues/35).
sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
Beta version of the Counterparty Desktop wallet has been released! Read about it in our latest community update http://counterparty.io/news/counterparty-update-mar-13/

Quote
The GUI comes with a standalone installer for Windows and a MacOS installer coming soon, and will be configured to run in ‘light’ mode by default, meaning that users will no longer have to run a local instance of bitcoin/counterparty clients or download the blockchain to get started.

Global consensus is fragile, so I'm wondering: what is the security model behind this? How could I know whether the data provider for the light mode is honest?

You can parse cilent-side the transaction that the server (with access to the Bitcoin UTXO pool) tells you to sign. Make 100% certain that it sends the right funds to the right place, e.g.
legendary
Activity: 1106
Merit: 1026
Beta version of the Counterparty Desktop wallet has been released! Read about it in our latest community update http://counterparty.io/news/counterparty-update-mar-13/

Quote
The GUI comes with a standalone installer for Windows and a MacOS installer coming soon, and will be configured to run in ‘light’ mode by default, meaning that users will no longer have to run a local instance of bitcoin/counterparty clients or download the blockchain to get started.

Global consensus is fragile, so I'm wondering: what is the security model behind this? How could I know whether the data provider for the light mode is honest?
sr. member
Activity: 441
Merit: 250
What is the revenue model for symbiont?

Great news btw... (the cooperation with Mark Smith)!!
sr. member
Activity: 465
Merit: 250
For anyone who has the time to hack around a little bit,
this is the way I created a valid XCP transaction in python with python-trezor library installed.

The process is a pain in the ass right now,
a) create transaction unsigned with counterwallet-cli
b) copy the raw transaction into http://brainwallet.org to decode the raw transaction
c) Copy prevout, previndex and the OP_RETURN data into the python script
d) Set the correct BIP path and receipient in the python file, and launch it to sign the transaction with trezor
e) Now push the transaction with bitcoin core using "sendrawtransaction" api.

If anyone has fun making this thing more comfortable or maybe even integrating this workflow into Counterwallet GUI,
feel free to take my code:

Code:
#!/usr/bin/python
import binascii

import trezorlib.types_pb2 as proto_types

from trezorlib.client import TrezorClient, TrezorClientDebug
from trezorlib.tx_api import TXAPITestnet
from trezorlib.tx_api import TXAPIBitcoin
from trezorlib.transport_hid import HidTransport

FROM_BIP="44'/0'/0'/0/0"
PREVHASH='67ca16b97014a56189f50f1a30b4db68e8ea314b33473bd0553916078f6a8250'
N=2
TO='1H6w1CUk8cmSeaoGJ363LY9LWe57FPrCeA'
OPRETURN_DATA=binascii.unhexlify("6f6bf889b4e439735d37c3611b0942d26df866aaf773c825208fbb6a")
TOTAL=22853000
FEE=10000
DUST=5430

def main():
    # List all connected TREZORs on USB
    devices = HidTransport.enumerate()

    # Check whether we found any
    if len(devices) == 0:
        print 'No TREZOR found'
        return

    # Use first connected device
    transport = HidTransport(devices[0])

    # Creates object for manipulating TREZOR
    client = TrezorClient(transport)
    client.set_tx_api(TXAPIBitcoin())

    # The list of inputs.
    inputs = [
        proto_types.TxInputType(
            address_n=client.expand_path(FROM_BIP),
            prev_hash=binascii.unhexlify(PREVHASH),
            prev_index=N,
        ),
    ]

    outputs = [
        proto_types.TxOutputType(
            amount=DUST,
            script_type=proto_types.PAYTOADDRESS,
            address=TO,
        ),
        proto_types.TxOutputType(
            amount=0,
            script_type=proto_types.PAYTOOPRETURN,
            op_return_data=OPRETURN_DATA,
        ),

        proto_types.TxOutputType(
            amount=TOTAL-FEE-DUST,
            script_type=proto_types.PAYTOADDRESS,
            address_n=client.expand_path(FROM_BIP),
        ),
    ]
 
    (signatures, serialized_tx) = client.sign_tx('Bitcoin', inputs, outputs)
    print 'Transaction:', binascii.hexlify(serialized_tx)

    client.close()

if __name__ == '__main__':
    main()



Did you try to move XCP funds successfully with 0 tx fee?

It has always been the tx fee that stops me from using the XCP online wallet
full member
Activity: 121
Merit: 100
Counterparty General Manager
Beta version of the Counterparty Desktop wallet has been released! Read about it in our latest community update http://counterparty.io/news/counterparty-update-mar-13/
sr. member
Activity: 390
Merit: 254
Counterparty Developer
https://www.counterwallet.co   SSL cert has expired for a week now..  any ETA on a fix ?

That's an old domain and support for it will not be continued. Please use counterwallet.io instead.

Trying counterwallet.io. Getting this error:
No counterparty servers are currently available. Please try again later. ERROR: %s

I'm getting the same error, it's saying servers are down.

It's back up now (I just logged in).
full member
Activity: 176
Merit: 100
Ain't no party like a Counterparty!
https://www.counterwallet.co   SSL cert has expired for a week now..  any ETA on a fix ?

That's an old domain and support for it will not be continued. Please use counterwallet.io instead.

Trying counterwallet.io. Getting this error:
No counterparty servers are currently available. Please try again later. ERROR: %s

I'm getting the same error, it's saying servers are down.
sr. member
Activity: 386
Merit: 250
https://www.counterwallet.co   SSL cert has expired for a week now..  any ETA on a fix ?

That's an old domain and support for it will not be continued. Please use counterwallet.io instead.

Trying counterwallet.io. Getting this error:
No counterparty servers are currently available. Please try again later. ERROR: %s
sr. member
Activity: 390
Merit: 254
Counterparty Developer
https://www.counterwallet.co   SSL cert has expired for a week now..  any ETA on a fix ?

That's an old domain and support for it will not be continued. Please use counterwallet.io instead.

Regarding counterwallet, we're sorry about the downtime. There is a bug we're trying to hunt down and might have resolved. It should be back up now.
full member
Activity: 176
Merit: 100
Ain't no party like a Counterparty!
Why is counterwallet down? I just tried to log in since BTER finally is allowing xcp withdrawals again I need to get my xcp off that exchange and into my counterwallet but now that bter is back up counterwallet is down!?
legendary
Activity: 1260
Merit: 1168
This message was too old and has been purged
legendary
Activity: 1148
Merit: 1000
When will XCP online wallet open again?

what's the current problems of that wallet?

thanks!
legendary
Activity: 2898
Merit: 1017
https://www.counterwallet.co   SSL cert has expired for a week now..  any ETA on a fix ?
legendary
Activity: 1260
Merit: 1168
This message was too old and has been purged
hero member
Activity: 742
Merit: 500
this ship is moving in the right direction. I dunno if all works out or not, but the ambition by the core team Xnova Cityglut and Phantomfreak is outstanding and inspiring.

Keeping a close eye on this specific project is probably not the worst idea Wink
newbie
Activity: 16
Merit: 0
What kind of packet you send mouse pads from foundation shop because delivery fee is $18?

Shipping and Handling    International Delivery: $17.99


Nice work with new project and with Counterparty. Hope we see new high price soon and bitcoin peoples adopt XCP finally.
full member
Activity: 176
Merit: 100
Ain't no party like a Counterparty!
Grats on the creation of the new company Symbiont. I just have one question out of curiosity, could we perhaps receive some info on how XCP specifically might be used or integrated? Sometimes I do find it slightly difficult to remember how counterparty the open source protocol makes use of xcp and thus increases it's value.
sr. member
Activity: 462
Merit: 250
Nope, the Trezor is constructed in a way that private keys never leave the device.
Maybe we should set up a bounty campaign to implement support for Trezor signing in the counterwalletd?
Trezor's new firmware has a 'Smart property' feature that looks like an API to sign arbitrary transactions.
Jump to: