Turn sorted signDoc object into uint8array