The Sword law existed on the world of Telerath (a planet) in the time period known as the Rise of the Empire era.
This legal code mandated that disagreements be resolved through single combat utilizing a bladed weapon. The law largely forbade the use of blasters, making an exception only if an opponent initially broke the law by using a blaster, and in this way the planet was able to maintain a degree of peace and honor. Travelers to the planet were expected to adhere to the Sword Law, although a short grace period was often given to those who broke the law without knowing of it.