def testNonStewardCannotCreateATrustAnchor(nodeSet, client1, wallet1, looper): with whitelistextras("UnknownIdentifier"): seed = b'a secret trust anchor seed......' trustAnchorSigner = SimpleSigner(seed=seed) trustAnchorNym = trustAnchorSigner.identifier op = {TARGET_NYM: trustAnchorNym, TXN_TYPE: NYM, ROLE: TRUST_ANCHOR} submitAndCheckNacks(looper=looper, client=client1, wallet=wallet1, op=op, identifier=wallet1.defaultId, contains="UnknownIdentifier")
def testNonTrustAnchorCannotCreateAUser(nodeSet, looper, nonTrustAnchor): with whitelistextras("UnknownIdentifier"): client, wallet = nonTrustAnchor useed = b'this is a secret apricot seed...' userSigner = SimpleSigner(seed=useed) userNym = userSigner.identifier op = {TARGET_NYM: userNym, TXN_TYPE: NYM} submitAndCheckNacks(looper, client, wallet, op, identifier=wallet.defaultId, contains="UnknownIdentifier")
def testNonStewardCannotCreateASponsor(nodeSet, client1, wallet1, looper): with whitelistextras("UnknownIdentifier"): seed = b'this is a secret sponsor seed...' sponsorSigner = SimpleSigner(seed=seed) sponsorNym = sponsorSigner.identifier op = {TARGET_NYM: sponsorNym, TXN_TYPE: NYM, ROLE: SPONSOR} submitAndCheckNacks(looper=looper, client=client1, wallet=wallet1, op=op, identifier=wallet1.defaultId, contains="UnknownIdentifier")