Skip to content

Instantly share code, notes, and snippets.

TDevD SamouraiDev

Block or report user

Report or block SamouraiDev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:6aad669604c5930864bd

##BIP47 Reusable Payment Codes Test Vectors

Results obtained upon implementing BIP47. Payment codes are calculated assuming v1 specification without use of BitMessage.

###Alice's wallet:

Mnemonic (BIP39): [response seminar brave tip suit recall often sound stick owner lottery motion]

Raw entropy (BIP39): b7b8706d714d9166e66e7ed5b3c61048


Keybase proof

I hereby claim:

  • I am samouraidev on github.
  • I am samouraidev ( on keybase.
  • I have a public key ASD47EnOwxhGjQfBqrbx9n4LLsAPkhdU0pAH10b3RxlSUAo

To claim this, I am signing this object:

View gist:f4ce0f423fc09fea307be81b3dfafe48
- Your private keys are stored on your device and are never communicated with any server
- Sweep funds from private keys
- Standard BIP44 avoids address reuse
- Put Samourai into stealth mode to hide it on the device
- May use separate PIN code for stealth mode launch
- Enable remote SMS commands to regain access to your funds if you lose your phone
- Obtain new phone number if SIM card swapped out following loss or theft
- Custom fiat currency prices from popular exchanges
- Segwit/UASF block explorer support
View gist:c544903aa59434a946a3949e53beef39
import urllib2
import json
addr = [ "12t9YDPgwueZ9NyMgw519p7AA8isjr6SMw",
total = 0;
View gist:264b52e5fcf97cd1ce75419265e2e06e
import urllib2
import json
addr = [ "1Mz7153HMuxXTuR2R1t78mGSdzaAtNbBWX" ]
total = 0;
for i in range(len(addr)):
url = '' + addr[i] + '?format=json'
response = urllib2.urlopen(url)
html =
View gist:4ced85a29996dd56781e2bf319b93aaf
Utxos are grouped by address type (P2PKH, P2SH-P2WPKH, or P2WPKH).
The group with the same address type as the address being spent to is selected if it is >= twice the spend amount.
If the above condition is not met, then a group with a different address type and a total value >= twice the spend amount is selected.
If the above condition is not met, then 2 groups with total amounts >= the spend amount are chosen.
Transaction composition is arranged by “sets”.
For each set:
The utxos are processed in randomised order.
SamouraiDev /
Created Aug 10, 2018
samouraidev's mastodon ID proof

Signed ID:

Hash: SHA512

I'm @samouraidev on
Comment: GPGTools -
You can’t perform that action at this time.