The Foundation of Onchain Credit