struct CAT721State { bytes ownerAddr; int localId; } library CAT721Proto { static function stateHash(CAT721State _state) : bytes { require(len(_state.ownerAddr) == 20); return hash160(_state.ownerAddr + pack(_state.localId)); } }