Skip to content

Instantly share code, notes, and snippets.

View SamouraiDev's full-sized avatar

TDevD SamouraiDev

View GitHub Profile
@SamouraiDev
SamouraiDev / mastodon-proof.md
Created August 10, 2018 17:47
samouraidev's mastodon ID proof

Signed ID:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

I'm @samouraidev on https://mastodon.social
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org
@SamouraiDev
SamouraiDev / gist:4ced85a29996dd56781e2bf319b93aaf
Last active April 5, 2023 07:41
STONEWALL spend description
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.
import urllib2
import json
addr = [ "1Mz7153HMuxXTuR2R1t78mGSdzaAtNbBWX" ]
total = 0;
for i in range(len(addr)):
url = 'https://blockchain.info/address/' + addr[i] + '?format=json'
response = urllib2.urlopen(url)
html = response.read()
import urllib2
import json
addr = [ "12t9YDPgwueZ9NyMgw519p7AA8isjr6SMw",
"1QAc9S5EmycqjzzWDc1yiWzr9jJLC8sLiY",
"115p7UMMngoj1pMvkpHijcRdfJNXj6LrLn",
"13AM4VW2dhxYgXeQepoHkHSQuy6NgaEb94",
"15zGqZCTcys6eCjDkE3DypCjXi6QWRV6V1"]
total = 0;
@SamouraiDev
SamouraiDev / gist:f4ce0f423fc09fea307be81b3dfafe48
Last active July 27, 2018 13:46
Samourai Wallet feature list
Wallet:
- 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

Keybase proof

I hereby claim:

  • I am samouraidev on github.
  • I am samouraidev (https://keybase.io/samouraidev) on keybase.
  • I have a public key ASD47EnOwxhGjQfBqrbx9n4LLsAPkhdU0pAH10b3RxlSUAo

To claim this, I am signing this object:

@SamouraiDev
SamouraiDev / gist:6aad669604c5930864bd
Last active April 5, 2023 07:41
BIP47 test vectors

##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