The master of the treasury[1] or treasurer[2][3] (German: Königlicher Ober-Schatzmeister[4] or Tarnackmeister, Hungarian: tárnokmester,[4][5] Latin: magister tavarnicorum, magister tavernocorum regalium or summus camerarius,[4][5] Slovak: taverník[2] Croatian: tavernik)[6] was a royal official in the Kingdom of Hungary from the 12th century. Although treasurers were initially responsible for collecting and administering royal revenues, they adopted more and more judiciary functions and turned into the highest judges of the realm. From the 14th century, treasurers presided over the court of appeals for a group of the free royal cities, including Buda, Bártfa, Eperjes, Kassa, Nagyszombat and Pressburg (Pozsony) (today Bardejov, Prešov, Košice, Trnava and Bratislava in Slovakia).
The name is derived from the Slavic word tovor ("casket", "strong-box").[dubious – discuss]