Abstract representation of logistics contracts and digital security