Skip to content

Instantly share code, notes, and snippets.

@Bobalot
Created January 16, 2014 16:47
Show Gist options
  • Save Bobalot/8458443 to your computer and use it in GitHub Desktop.
Save Bobalot/8458443 to your computer and use it in GitHub Desktop.
Stealth without nonces. As long as bob and alice know each other then can each create the shared secret and check that branch for a payment, using a gap limit to decide when to stop checking.
In [1]: %run examples/stealth.py
Bob secret e8f32e723decf4051aefac8e2c93c9c5b214313817cdb01a1494b917c8436b35
Alice secret 4b03d6fc340455b363f51020ad3ecca4f0850280cf436c70c727923f6db46c3e
Bob mpk (compressed) 0339a36013301597daef41fbe593a02cc513d0b55527ec2df1050e2e8ff49c85c2
Alice mpk (compressed) 03cbcaa9c98c877a26977d00825c956a238e8dddfbd322cce4f74b0b5bd6ace4a7
Bob chain 873dff81c02f525623fd1fe5167eac3a55a049de3d314bb42ee227ffed37d508
Alice chain 60499f801b896d83179a4374aeb7822aaeaceaa0db1f85ee3e904c4defbd9689
Bob Shared secret 03c29039dc533e5d22dee8efdaf87f1379a461d94b243e594ddc7bae79d1f7bdaf
Alice Shared secret 03c29039dc533e5d22dee8efdaf87f1379a461d94b243e594ddc7bae79d1f7bdaf
shared secret sequence [962L, 36921L, 56403L, 15965L, 8926L, 59631L, 56056L, 32531L, 31140L, 25049L]
Alice sends to Bob (Only Bob knows the private keys)
Alice sends to 1JAhF1MfSW2LSuTe31gt4ZyuE7PebsTy88
Bob receives to 1JAhF1MfSW2LSuTe31gt4ZyuE7PebsTy88
Alice sends to 18eLh37hX174MHf9EZhG5HRBVi9BVRKyaH
Bob receives to 18eLh37hX174MHf9EZhG5HRBVi9BVRKyaH
Alice sends to 1N7SoAsmLgZioc2W8JefUFPNpb9XGNa5vF
Bob receives to 1N7SoAsmLgZioc2W8JefUFPNpb9XGNa5vF
Alice sends to 1CoxVMvuBKAeJmrB5EHG873xQsgmHxHnoe
Bob receives to 1CoxVMvuBKAeJmrB5EHG873xQsgmHxHnoe
Alice sends to 15EZtjgyNGgZthk6R14xxGeuJWYKYwSSpk
Bob receives to 15EZtjgyNGgZthk6R14xxGeuJWYKYwSSpk
Alice sends to 17qbCFx7B2KPoJrJpQuW9dcy9GN29wWx8L
Bob receives to 17qbCFx7B2KPoJrJpQuW9dcy9GN29wWx8L
Alice sends to 1PwQfV89mKBrv6Bhp2czNUwb3Gpjf2as8G
Bob receives to 1PwQfV89mKBrv6Bhp2czNUwb3Gpjf2as8G
Alice sends to 1LYjhB8Q49uTrcU1qt9ULvpPyZ2Zkxisix
Bob receives to 1LYjhB8Q49uTrcU1qt9ULvpPyZ2Zkxisix
Alice sends to 1GtNJk9Y3CUBz1erR1Qg1ZBe4FUAcAFC3g
Bob receives to 1GtNJk9Y3CUBz1erR1Qg1ZBe4FUAcAFC3g
Alice sends to 1ZtExL4HZzFxoU4fVNhNHKCYyCmxp7VXz
Bob receives to 1ZtExL4HZzFxoU4fVNhNHKCYyCmxp7VXz
Bob sends to Alice (Only Alice knows the private keys)
Bob sends to 1K3HsniD4838BpceY55zdXDKbxxQq73sph
Alice receives to 1K3HsniD4838BpceY55zdXDKbxxQq73sph
Bob sends to 19a939BmnPwCgxaZZL7AUNJAzcm3SvcNU1
Alice receives to 19a939BmnPwCgxaZZL7AUNJAzcm3SvcNU1
Bob sends to 1E6rkgQkM7vjGvk1mUyvrhp8QyiXxNgZsH
Alice receives to 1E6rkgQkM7vjGvk1mUyvrhp8QyiXxNgZsH
Bob sends to 147UetZb4PFxUcGxz1j6pSujJ6PsL6B2rP
Alice receives to 147UetZb4PFxUcGxz1j6pSujJ6PsL6B2rP
Bob sends to 13dHWZrPbC3Q6qKVPcXHDPwqYbovaucYfH
Alice receives to 13dHWZrPbC3Q6qKVPcXHDPwqYbovaucYfH
Bob sends to 1NKC4Fa3Qf37i7B3igdoLctD8hskkcqCiE
Alice receives to 1NKC4Fa3Qf37i7B3igdoLctD8hskkcqCiE
Bob sends to 1KitHQVJEQUGvt8RL4fXiGRaCuRcVZSuBT
Alice receives to 1KitHQVJEQUGvt8RL4fXiGRaCuRcVZSuBT
Bob sends to 1FrRx5eyqerxTb7JRQsvXBnLatSmjcuQMa
Alice receives to 1FrRx5eyqerxTb7JRQsvXBnLatSmjcuQMa
Bob sends to 1L25QBxwXdZCzVhpCeThVwcdJFYDuJSC1
Alice receives to 1L25QBxwXdZCzVhpCeThVwcdJFYDuJSC1
Bob sends to 1HJAACK6LEDoMVqanrBx6e38VjYKmV3NEV
Alice receives to 1HJAACK6LEDoMVqanrBx6e38VjYKmV3NEV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment