BitShares Forum

Main => General Discussion => Topic started by: bytemaster on October 19, 2015, 10:00:18 pm

Title: Stealth Transfers - HOW TO
Post by: bytemaster on October 19, 2015, 10:00:18 pm
Those of you who wish to keep your balances and transfers private and have the ability to use the CLI wallet:

https://github.com/cryptonomex/graphene/wiki/StealthTransfers

Have Fun!
Title: Re: Stealth Transfers - HOW TO
Post by: clayop on October 19, 2015, 10:08:16 pm
I found some null transactions with 15 fees on the blockchain. (e.g. #177905). It was obviously stealth transfer test :)
Title: Re: Stealth Transfers - HOW TO
Post by: bytemaster on October 19, 2015, 10:46:50 pm
I found some null transactions with 15 fees on the blockchain. (e.g. #177905). It was obviously stealth transfer test :)

Code: [Select]
get_block 177905
{
  "previous": "0002b6f084f2385f83dbbf707e00effb114734d2",
  "timestamp": "2015-10-19T21:58:33",
  "witness": "1.6.14",
  "transaction_merkle_root": "62250cb777fe77e0d7cf9edcb6b70b81ed97daef",
  "extensions": [],
  "witness_signature": "2031966f1d1955a6e2fec7636b8705a88291fd7f2d178fab1044ff46ec64fd91aa40e493e6397a958a17af2e2e5f299dab2d58f7b25c45caebc0768f8436c46d9d",
  "transactions": [{
      "ref_block_num": 46831,
      "ref_block_prefix": 4073589982,
      "expiration": "2015-10-19T21:58:57",
      "operations": [[
          40,{
            "fee": {
              "amount": 1500000,
              "asset_id": "1.3.0"
            },
            "inputs": [{
                "commitment": "02ffb1c70cd8478278635d0ec6a758ef406919ef7409629fd7045989a62508299b",
                "owner": {
                  "weight_threshold": 1,
                  "account_auths": [],
                  "key_auths": [[
                      "BTS7aU6Tq1QE1C4speNrHF3DD6UoFASXzYdcWsusKKrpGHC3MJty9",
                      1
                    ]
                  ],
                  "address_auths": []
                }
              }
            ],
            "outputs": [{
                "commitment": "02ca4735d4f1b238bb4c758fdcd187eee6f9114e5f20ad4478dc11a1f58d557ba9",
                "range_proof": "",
                "owner": {
                  "weight_threshold": 0,
                  "account_auths": [],
                  "key_auths": [],
                  "address_auths": []
                }
              }
            ]
          }
        ],[
          41,{
            "fee": {
              "amount": 500000,
              "asset_id": "1.3.0"
            },
            "amount": {
              "amount": 25000000,
              "asset_id": "1.3.0"
            },
            "to": "1.2.1090",
            "blinding_factor": "561d17c8bbd311d3cb2706df173aac76281024cdc86edac52b2e20c885fb0709",
            "inputs": [{
                "commitment": "02ca4735d4f1b238bb4c758fdcd187eee6f9114e5f20ad4478dc11a1f58d557ba9",
                "owner": {
                  "weight_threshold": 0,
                  "account_auths": [],
                  "key_auths": [],
                  "address_auths": []
                }
              }
            ]
          }
        ]
      ],
      "extensions": [],
      "signatures": [
        "1f35f73d5bf40d5267161ba431b29c15b05c348e13d8f4357b81e3bdb0ed370cc058226c70dd932b6b146cc7aaad908dc869882bc96376981c988a1e22cd0c9827"
      ],
      "operation_results": [[
          0,{}
        ],[
          0,{}
        ]
      ]
    }
  ],
  "block_id": "0002b6f1f93eb132f1e995716be82a5eb82d2901",
  "signing_key": "BTS73UhnE6uD8Axdp3cU8EmvjjaFuiAAPRwARqrgRY1vZkJLFYo4u"
}
Title: Re: Stealth Transfers - HOW TO
Post by: bytemaster on October 19, 2015, 10:49:01 pm
That transaction was going from BLIND to PUBLIC... so not particularly interesting :)

The GUI doesn't know how to represent the blind operations at the moment.
Title: Re: Stealth Transfers - HOW TO
Post by: cube on October 20, 2015, 04:08:58 am
really nice. bts2 is gearing up for the real-world txs.   +5%
Title: Re: Stealth Transfers - HOW TO
Post by: Chronos on October 20, 2015, 04:36:16 am
Is it possible to place stealth bid/ask orders on the DEX? If not, what portion of balances become declared when an order is placed by the receiver of a stealth transfer?
Title: Re: Stealth Transfers - HOW TO
Post by: xeroc on October 20, 2015, 05:29:12 am
@bytemaster, if you want, you can have write access to docs.bitshares.eu. It uses restructure text (similar to markdown).
If you don't want to waste time for that, would it be ok for you that I copy&paste (reformat) your howtos over there?
Title: Re: Stealth Transfers - HOW TO
Post by: karnal on October 20, 2015, 09:59:25 am
Much needed info, thanks BM! +5%
Title: Re: Stealth Transfers - HOW TO
Post by: bytemaster on October 20, 2015, 01:10:06 pm
@bytemaster, if you want, you can have write access to docs.bitshares.eu. It uses restructure text (similar to markdown).
If you don't want to waste time for that, would it be ok for you that I copy&paste (reformat) your howtos over there?

Copy and paste at will!
Title: Re: Stealth Transfers - HOW TO
Post by: bytemaster on October 20, 2015, 01:12:48 pm
Is it possible to place stealth bid/ask orders on the DEX? If not, what portion of balances become declared when an order is placed by the receiver of a stealth transfer?

Nope.   The best you can do is this:

1. Transfer From Blind to temp-account
2. Register new Account with temp-account
3. Transfer From Blind to new account
4.  Place orders from new account that isn't tied to any other account.

Title: Re: Stealth Transfers - HOW TO
Post by: karnal on October 20, 2015, 05:10:46 pm
Is it possible to place stealth bid/ask orders on the DEX? If not, what portion of balances become declared when an order is placed by the receiver of a stealth transfer?

Nope.   The best you can do is this:

1. Transfer From Blind to temp-account
2. Register new Account with temp-account
3. Transfer From Blind to new account
4.  Place orders from new account that isn't tied to any other account.

Why is 3) needed when it's public info which account registered new-account ? (i.e, why not fund new-account from the stealth funds sent to temp-account on step 1))

Title: Re: Stealth Transfers - HOW TO
Post by: bytemaster on October 20, 2015, 05:27:00 pm
Is it possible to place stealth bid/ask orders on the DEX? If not, what portion of balances become declared when an order is placed by the receiver of a stealth transfer?

Nope.   The best you can do is this:

1. Transfer From Blind to temp-account
2. Register new Account with temp-account
3. Transfer From Blind to new account
4.  Place orders from new account that isn't tied to any other account.

Why is 3) needed when it's public info which account registered new-account ? (i.e, why not fund new-account from the stealth funds sent to temp-account on step 1))

"temp-account" is a special account built into the blockchain that EVERYONE has permissions on, but whose balance must always be 0 at the end of every transaction.

Steps 1 and 2 must be in the same transaction.