Skip to content

Instantly share code, notes, and snippets.

Avatar

TDevD SamouraiDev

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

View keybase.md

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:

View gist:f4ce0f423fc09fea307be81b3dfafe48
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
View gist:c544903aa59434a946a3949e53beef39
import urllib2
import json
addr = [ "12t9YDPgwueZ9NyMgw519p7AA8isjr6SMw",
"1QAc9S5EmycqjzzWDc1yiWzr9jJLC8sLiY",
"115p7UMMngoj1pMvkpHijcRdfJNXj6LrLn",
"13AM4VW2dhxYgXeQepoHkHSQuy6NgaEb94",
"15zGqZCTcys6eCjDkE3DypCjXi6QWRV6V1"]
total = 0;
View gist:264b52e5fcf97cd1ce75419265e2e06e
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()
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
SamouraiDev / mastodon-proof.md
Created Aug 10, 2018
samouraidev's mastodon ID proof
View mastodon-proof.md

Signed ID:

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

I'm @samouraidev on https://mastodon.social
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org
You can’t perform that action at this time.