Hot answers tagged

1

The contents of tickets is completely transparent and can't be used in this way. In general, you cannot assume that on-chain data is unreadable by users. You can add encrypted data on chain, but to to decrypt it you will have to supply the key -- effectively making the data public. You could use an off-chain oracle that feeds the hidden data to the contract. ...


1

Internally, tickets are represented as triples (the address of ticketer, the wrapped piece of data, and the amount) but Michelson type system guarantees that tickets can only be produced by smart contracts. The instruction to create a ticket is TICKET.


Only top voted, non community-wiki answers of a minimum length are eligible