Most of the time, in medieval and earlier, farmers and peasants would trade with eachother by using debt/favors.
https://en.wikipedia.org/wiki/Tally_stick
Of course they often also traded in goods and coins.
One thing you need to do is standardize how much a bar/coin weighs, its size, and...