move digest generation forward. Make sure comaster amberId is generated ...

...correctly