Gold is sold by weight, with a surcharge for workmanship (gold prices are posted daily in the bazaar); genuine sterling silver should carry a hallmark.
When selling gold, they calculate weight and workmanship.