-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mark A. Greenslade
committed
Aug 10, 2020
1 parent
1117cc7
commit f36cbff
Showing
4 changed files
with
36 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import argparse | ||
|
||
from stests.core import crypto | ||
from stests.core.utils import cli as utils | ||
|
||
|
||
# CLI argument parser. | ||
ARGS = argparse.ArgumentParser("Displays derived account identifier.") | ||
|
||
# CLI argument: network name. | ||
ARGS.add_argument( | ||
"public_key", | ||
help="Hexadecimal representation of a public key associated with an account.", | ||
type=str | ||
) | ||
|
||
|
||
def main(args): | ||
"""Entry point. | ||
:param args: Parsed CLI arguments. | ||
""" | ||
account_id = crypto.get_account_id(crypto.KeyAlgorithm.ED25519, args.public_key) | ||
utils.log(account_id) | ||
|
||
|
||
if __name__ == '__main__': | ||
main(ARGS.parse_args()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,3 @@ | ||
""" | ||
.. module:: stests.core.utils.env.py | ||
:copyright: Copyright "December 01, 2016", IPSL | ||
:license: GPL/CeCIL | ||
:platform: Unix, Windows | ||
:synopsis: System test environment access utility functions. | ||
.. moduleauthor:: Mark Conway-Greenslade <[email protected]> | ||
""" | ||
import os | ||
import typing | ||
|
||
|