def test_public_key_message_amino(self, wallet): pkm = PubKeyMsg(wallet) type_bytes = binascii.unhexlify(PubKeyMsg.AMINO_MESSAGE_TYPE) len_bytes = varint_encode(len(wallet.public_key)) assert pkm.to_amino() == type_bytes + len_bytes + wallet.public_key
def test_public_key_message_protobuf(self, wallet): pkm = PubKeyMsg(wallet) assert pkm.to_protobuf() == wallet.public_key