From Stock Markets to Ledgers, Part I: Fairness