Ejemplo n.º 1
0
def testRetrieveAbbrvVerkey(didAddedWithAbbrvVerkey, looper, sponsor,
                            sponsorWallet, wallet, abbrevIdr):
    """{ type: GET_NYM, dest: <id1> }"""
    identity = Identity(identifier=abbrevIdr)
    req = sponsorWallet.requestIdentity(identity,
                                        sender=sponsorWallet.defaultId)
    sponsor.submitReqs(req)

    def chk():
        retrievedVerkey = sponsorWallet.getIdentity(abbrevIdr).verkey
        assertEquality(retrievedVerkey, wallet.getVerkey(abbrevIdr))
        checkAbbrVerkeySize(retrievedVerkey)
    looper.run(eventually(chk, retryWait=1, timeout=5))
    chkVerifyForRetrievedIdentity(wallet, sponsorWallet, abbrevIdr)
Ejemplo n.º 2
0
def testVerifySigWithChangedVerkey(didUpdatedWithVerkey, verkeyFetched,
                                   sponsorWallet, noKeyIdr, wallet):
    chkVerifyForRetrievedIdentity(wallet, sponsorWallet, noKeyIdr)
Ejemplo n.º 3
0
def testVerifySigWithChangedVerkey(didUpdatedWithFullVerkey, newVerkeyFetched,
                                   sponsorWallet, abbrevIdr, wallet):
    chkVerifyForRetrievedIdentity(wallet, sponsorWallet, abbrevIdr)