Skip to content

Instantly share code, notes, and snippets.

@mastercyb
Created March 21, 2016 11:46
Show Gist options
  • Save mastercyb/42cbb8316ec1396a6f16 to your computer and use it in GitHub Desktop.
Save mastercyb/42cbb8316ec1396a6f16 to your computer and use it in GitHub Desktop.
> pip install pybitcointools
> pybtctool random_key
9924f6581b3bf84de9e85eec5c00d05769dea3804fe0cb2963a1a78b7491bf34
> privkey_to_pubkey 9924f6581b3bf84de9e85eec5c00d05769dea3804fe0cb2963a1a78b7491bf34
04ab993e97c7100ac98724fc0830ab9fbc95d716f9d692a89cbefd6248ac69d8e2bcb111e98f7a612206282c75ca6f7b59f5232e4dfa9590886dbf362cce515e51
> pybtctool privkey_to_address 9924f6581b3bf84de9e85eec5c00d05769dea3804fe0cb2963a1a78b7491bf34
1MGJy8cLSqaXLmK1R6Ph6NT2sXNkhMmrHE
> pybtctool ecdsa_sign ‘Hereby I claim that the address 1MGJy8cLSqaXLmK1R6Ph6NT2sXNkhMmrHE is under control of https://keybase.io/21xhipster PGP F69E43438E994ACC3819EE434EC744652CAA89D4’ 9924f6581b3bf84de9e85eec5c00d05769dea3804fe0cb2963a1a78b7491bf34
G/BgYXVy3aJPs12iomSxeprygelr9kFtg+jZx7e8iTSbK51CslfIc//1yIOravvMl2N74vYo/B3lZEkOuH4gz/0=
> pubtctool ecdsa_verify ‘Hereby I claim that the address 1MGJy8cLSqaXLmK1R6Ph6NT2sXNkhMmrHE is under control of https://keybase.io/21xhipster PGP F69E43438E994ACC3819EE434EC744652CAA89D4’ G/BgYXVy3aJPs12iomSxeprygelr9kFtg+jZx7e8iTSbK51CslfIc//1yIOravvMl2N74vYo/B3lZEkOuH4gz/0= 04ab993e97c7100ac98724fc0830ab9fbc95d716f9d692a89cbefd6248ac69d8e2bcb111e98f7a612206282c75ca6f7b59f5232e4dfa9590886dbf362cce515e51
True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment