A DAML library is a collection of DAML contract templates. DAML contracts encode the rights of the parties as choices that they can exercise.