def chk(): retrievedVerkey = trustAnchorWallet.getIdentity(abbrevIdr).verkey assertEquality(retrievedVerkey, wallet.getVerkey(abbrevIdr)) checkAbbrVerkeySize(retrievedVerkey)
def testDefaultVerkeyIsAbbreviated(abbrevVerkey): # A base58 encoding of 32 bytes string can be either 44 bytes or 43 bytes, # since the did takes first 22 bytes, abbreviated verkey will take # remaining 22 or 21 characters checkAbbrVerkeySize(abbrevVerkey) assert abbrevVerkey[0] == '~'