示例#1
0
def exportStewardGenTxn(baseDir, displayTxn, name):
    verkey = getLocalVerKey(name, baseDir)
    txn = 'add genesis transaction {nym} with data  {"'.format(nym=PlenumTransactions.NYM.name) + name + '": {' \
        '"verkey": "' + verkey + '"} role={role}'.format(
        role=Roles.STEWARD.name)
    storeExportedTxns(baseDir, txn)
    printGenTxn(txn, displayTxn)
示例#2
0
def getVerKeyFromName(baseDir, roleName):
    return getLocalVerKey(roleName, baseDir)
示例#3
0
def getStewardKeyFromName(baseDir, name):
    return getLocalVerKey(name, baseDir)