Checks a Transaction Code presented with a pre-authorized code, counting
wrong ones across the cluster and spending the code when its attempts run
out.
Parameters
code: string
the pre-authorized code, as presented (its digest keys
the record)
record: any
its record in preAuthorizedCodes
presented: unknown
the Transaction Code the wallet sent, compared by its
digest with the record's txCodeDigest
Checks a Transaction Code presented with a pre-authorized code, counting wrong ones across the cluster and spending the code when its attempts run out.