Module Mavryk_raw_protocol_001_PtAtLas.Ticket_balance_key

This module exposes a function for generating a ticket-balance key-hash given an owner and a ticket-token. The key-hash is used for populating the global ticket-balance table that tracks ownership of tickets for different tokens.

make ~owner ~ticketer ~contents_type ~contents returns key_hash of the given owner, ticketer, contents_type and contents. Note that the location of the Script.node values contents_type and contents are irrelevant since Ticket_hash.make will strip the locations before calculating the hash.

of_ex_token ctxt ~owner ex_token returns the key_hash of the given owner and ex_token.