Usually a term used to confirm the truth of a statement.
The origins of this term are disputed but a plausible one is that it came from the Victorian Goldfields where Chinese workers used the term Ding kum so confirm a deal that is honest and true.
Originates from when Captain Cook first landed in Australia. When they used to drink the toast would be "Fair Drinking" and the saying has evolved from there.