Trainspotting star Kelly Macdonald is to star in BBC One legal drama The Victim, created by The Man In The High Castle writer Rob Williams. Macdonald will be joined in the British thriller by Four Weddings and a Funeral star John Hannah and rising actor James Harkness.

Macdonald, who has also previously appeared in TV series including Black Mirror and Boardwalk Empire, will play Anna Dean, a Scottish mother whose nine-year old boy was murdered fifteen years ago by a 13 year old. Years later, having campaigned to be told of the killer’s new identity she is accused of revealing his new name online.

Harkness, who had small roles in Rogue One: A Star Wars Story, Darkest Hour and Phantom Thread, plays Craig Myers, who is attacked after Macdonald’s Dean accuses him of being the child killer. Misfits and The Level star Karla Crome plays his wife Rebecca.

Meanwhile, Hannah, who has starred in BBC America’s Dirk Gently’s Holistic Detective Agency and ABC’s Agents of S.H.I.E.L.D, plays D.I. Steven Grover, the detective in charge of the case.

The drama is set in Edinburgh and Greenock, within Scotland’s unique legal system and is told through the eyes of the plaintiff and the accused, offering a surprising and twisting perspective on who is really ‘the victim’. Filming commenced this week on the four-part series, which is produced by STV Productions. It will be directed by Niall MacCormick (The Long Walk to Finchley, Complicit), produced by Jenny Frayn and executive produced by STV’s Sarah Brown and Rob Williams and Elizabeth Kilgarriff and Gaynor Holmes for the BBC.

Creator Williams says, “It’s incredibly exciting for me to see the story being brought to life by such a talented cast and crew.  I’m really grateful – and fortunate – to be working with people who care about the material as much as I do.”

Macdonald is repped by ICM and Independent Talent Group, Hannah is repped by Artist Rights Group and Harkness by Curtis Brown.