Skip to main content
. 2019 Sep 19;19(18):4049. doi: 10.3390/s19184049
Algorithm 2: Reward Spending
[Participant wants to spend the reward]
Decrypt rs using aKO*
[OrderBook operation]
//Verify that the associated validation token’s signature is a valid one from the service provider.
Verify signature of TV (identified by iV entry in rs)
if verification passes then
    Check that iS is not already recorded as spent
    if iS is not recorded as spent then
        Permit spending
        Record iS as spent
    end if
end if