WIP: decode master secret