Использование HMAC с SHA-256
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
# This is a sample Python script.
|
||||
|
||||
# Press Shift+F10 to execute it or replace it with your code.
|
||||
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
|
||||
import sys
|
||||
from Block import Block
|
||||
|
||||
|
||||
def print_hi(name):
|
||||
# Use a breakpoint in the code line below to debug your script.
|
||||
print(f'Hi, {name}') # Press Ctrl+F8 to toggle the breakpoint.
|
||||
def main():
|
||||
if len(sys.argv) == 4:
|
||||
block = Block(sys.argv[1], sys.argv[2], sys.argv[3])
|
||||
else:
|
||||
block = Block('from', 100, 'to_whom')
|
||||
block.block_creator()
|
||||
block.blockchain_checker()
|
||||
|
||||
|
||||
# Press the green button in the gutter to run the script.
|
||||
if __name__ == '__main__':
|
||||
print_hi('PyCharm')
|
||||
|
||||
# See PyCharm help at https://www.jetbrains.com/help/pycharm/
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user