Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Verify a Stellar keypair
from stellar_base.keypair import Keypair
from sys import argv
if len(argv) < 3:
print('Usage: verify_keypair.py <ADDRESS> <SECRET>')
exit()
try:
k = Keypair.from_seed(argv[2])
except Exception as e:
print(str(e))
exit()
print('keypair verification: {}'.format('OK' if str(k.address().decode()) == argv[1] else 'FAIL'))
@fabiux

This comment has been minimized.

Copy link
Owner Author

fabiux commented Apr 13, 2019

Original post here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.