What are some valid ways to obfuscate the scriptPubKey?

0

Is it possible to hide the balance of an address from standard clients who may be watching blockchain?

I'm thinking about using script to modify the the key that is to be verified, but am having trouble concocting such a script.

Is there any prior work that does obfuscate the RIPE160 address?

goodguys_activate

Posted 2014-03-13T19:14:21.877

Reputation: 11 898

2Why? I don't see why this is preferable to simply not reusing addresses.Tim S. 2014-03-13T19:20:15.453

It's a thought experiment, perhaps it's useful to someone. Perhaps not.goodguys_activate 2014-03-13T19:23:58.853

Answers

1

You can insert two OP_HASH160 after the OP_DUP and then push the hash of your pubKeyHash. Nobody can tell the recipient address this way.

Example:

OP_DUP OP_HASH160 OP_HASH160 double_double_hash OP_EQUALVERIFY OP_CHECKSIG 

Where

double_double_hash = RIPEMD160(SHA256(RIPEMD160(SHA256(pubKey))))

uminatsu

Posted 2014-03-13T19:14:21.877

Reputation: 1 061

Of course, this only works once. When you use the same trick to send more coins to the same address, it will be obvious that they are going to the same place.Nate Eldredge 2014-03-14T01:26:13.077

You can always use fancier opcodes, for example add a random constant and an 'OP_ADD' between two OP_HASH160 opcodes. Of cource it is still very obvious that nobody else is using such crazy scripts.uminatsu 2014-03-14T02:47:36.867