Treasure trove reveals origins of 800-year-old shipwreck