async def index_for_pubkey(self, pubkey: G1Element) -> Optional[uint32]:
    '\n        Returns derivation paths for the given pubkey.\n        Returns None if not present.\n        '
    cursor = (await self.db_connection.execute('SELECT * from derivation_paths WHERE pubkey=?', (bytes(pubkey).hex(),)))
    row = (await cursor.fetchone())
    (await cursor.close())
    if (row is not None):
        return uint32(row[0])
    return None
Returns derivation paths for the given pubkey.
Returns None if not present.
async def index_for_pubkey(self, pubkey: G1Element) -> Optional[uint32]:
    '\n        Returns derivation paths for the given pubkey.\n        Returns None if not present.\n        '
    cursor = (await self.db_connection.execute('SELECT * from derivation_paths WHERE pubkey=?', (bytes(pubkey).hex(),)))
    row = (await cursor.fetchone())
    (await cursor.close())
    if (row is not None):
        return uint32(row[0])
    return None